AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
GetEventRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchmemory/OpenSearchMemoryRequest.h>
9#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace OpenSearchMemory {
15namespace Model {
16
20 public:
21 AWS_OPENSEARCHMEMORY_API GetEventRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetEvent"; }
28
29 AWS_OPENSEARCHMEMORY_API Aws::String SerializePayload() const override;
30
31 AWS_OPENSEARCHMEMORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
36 AWS_OPENSEARCHMEMORY_API EndpointParameters GetEndpointContextParams() const override;
37
39
42 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
43 inline bool SpaceIdHasBeenSet() const { return m_spaceIdHasBeenSet; }
44 template <typename SpaceIdT = Aws::String>
45 void SetSpaceId(SpaceIdT&& value) {
46 m_spaceIdHasBeenSet = true;
47 m_spaceId = std::forward<SpaceIdT>(value);
48 }
49 template <typename SpaceIdT = Aws::String>
50 GetEventRequest& WithSpaceId(SpaceIdT&& value) {
51 SetSpaceId(std::forward<SpaceIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetEventId() const { return m_eventId; }
62 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
63 template <typename EventIdT = Aws::String>
64 void SetEventId(EventIdT&& value) {
65 m_eventIdHasBeenSet = true;
66 m_eventId = std::forward<EventIdT>(value);
67 }
68 template <typename EventIdT = Aws::String>
69 GetEventRequest& WithEventId(EventIdT&& value) {
70 SetEventId(std::forward<EventIdT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetActorId() const { return m_actorId; }
82 inline bool ActorIdHasBeenSet() const { return m_actorIdHasBeenSet; }
83 template <typename ActorIdT = Aws::String>
84 void SetActorId(ActorIdT&& value) {
85 m_actorIdHasBeenSet = true;
86 m_actorId = std::forward<ActorIdT>(value);
87 }
88 template <typename ActorIdT = Aws::String>
89 GetEventRequest& WithActorId(ActorIdT&& value) {
90 SetActorId(std::forward<ActorIdT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetSessionId() const { return m_sessionId; }
102 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
103 template <typename SessionIdT = Aws::String>
104 void SetSessionId(SessionIdT&& value) {
105 m_sessionIdHasBeenSet = true;
106 m_sessionId = std::forward<SessionIdT>(value);
107 }
108 template <typename SessionIdT = Aws::String>
109 GetEventRequest& WithSessionId(SessionIdT&& value) {
110 SetSessionId(std::forward<SessionIdT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_spaceId;
116
117 Aws::String m_eventId;
118
119 Aws::String m_actorId;
120
121 Aws::String m_sessionId;
122 bool m_spaceIdHasBeenSet = false;
123 bool m_eventIdHasBeenSet = false;
124 bool m_actorIdHasBeenSet = false;
125 bool m_sessionIdHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace OpenSearchMemory
130} // namespace Aws
AWS_OPENSEARCHMEMORY_API GetEventRequest()=default
GetEventRequest & WithEventId(EventIdT &&value)
GetEventRequest & WithActorId(ActorIdT &&value)
GetEventRequest & WithSpaceId(SpaceIdT &&value)
AWS_OPENSEARCHMEMORY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetEventRequest & WithSessionId(SessionIdT &&value)
AWS_OPENSEARCHMEMORY_API EndpointParameters GetEndpointContextParams() const override
AWS_OPENSEARCHMEMORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String