AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
GetMemoryRequest.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 GetMemoryRequest() = 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 "GetMemory"; }
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 GetMemoryRequest& WithSpaceId(SpaceIdT&& value) {
51 SetSpaceId(std::forward<SpaceIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetMemoryId() const { return m_memoryId; }
62 inline bool MemoryIdHasBeenSet() const { return m_memoryIdHasBeenSet; }
63 template <typename MemoryIdT = Aws::String>
64 void SetMemoryId(MemoryIdT&& value) {
65 m_memoryIdHasBeenSet = true;
66 m_memoryId = std::forward<MemoryIdT>(value);
67 }
68 template <typename MemoryIdT = Aws::String>
69 GetMemoryRequest& WithMemoryId(MemoryIdT&& value) {
70 SetMemoryId(std::forward<MemoryIdT>(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 GetMemoryRequest& WithActorId(ActorIdT&& value) {
90 SetActorId(std::forward<ActorIdT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetStrategyName() const { return m_strategyName; }
102 inline bool StrategyNameHasBeenSet() const { return m_strategyNameHasBeenSet; }
103 template <typename StrategyNameT = Aws::String>
104 void SetStrategyName(StrategyNameT&& value) {
105 m_strategyNameHasBeenSet = true;
106 m_strategyName = std::forward<StrategyNameT>(value);
107 }
108 template <typename StrategyNameT = Aws::String>
109 GetMemoryRequest& WithStrategyName(StrategyNameT&& value) {
110 SetStrategyName(std::forward<StrategyNameT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_spaceId;
116
117 Aws::String m_memoryId;
118
119 Aws::String m_actorId;
120
121 Aws::String m_strategyName;
122 bool m_spaceIdHasBeenSet = false;
123 bool m_memoryIdHasBeenSet = false;
124 bool m_actorIdHasBeenSet = false;
125 bool m_strategyNameHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace OpenSearchMemory
130} // namespace Aws
AWS_OPENSEARCHMEMORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetMemoryRequest & WithMemoryId(MemoryIdT &&value)
virtual const char * GetServiceRequestName() const override
GetMemoryRequest & WithSpaceId(SpaceIdT &&value)
AWS_OPENSEARCHMEMORY_API EndpointParameters GetEndpointContextParams() const override
GetMemoryRequest & WithStrategyName(StrategyNameT &&value)
AWS_OPENSEARCHMEMORY_API Aws::String SerializePayload() const override
GetMemoryRequest & WithActorId(ActorIdT &&value)
AWS_OPENSEARCHMEMORY_API GetMemoryRequest()=default
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String