AWS SDK for C++

AWS SDK for C++ Version 1.11.930

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