AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateChangeSetRequest.h
1
6#pragma once
7#include <aws/context/ContextRequest.h>
8#include <aws/context/Context_EXPORTS.h>
9#include <aws/context/model/ChangeSetOperation.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Context {
18namespace Model {
19
23 public:
24 AWS_CONTEXT_API UpdateChangeSetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateChangeSet"; }
31
32 AWS_CONTEXT_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetChangeSetId() const { return m_changeSetId; }
42 inline bool ChangeSetIdHasBeenSet() const { return m_changeSetIdHasBeenSet; }
43 template <typename ChangeSetIdT = Aws::String>
44 void SetChangeSetId(ChangeSetIdT&& value) {
45 m_changeSetIdHasBeenSet = true;
46 m_changeSetId = std::forward<ChangeSetIdT>(value);
47 }
48 template <typename ChangeSetIdT = Aws::String>
49 UpdateChangeSetRequest& WithChangeSetId(ChangeSetIdT&& value) {
50 SetChangeSetId(std::forward<ChangeSetIdT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetAgentContextId() const { return m_agentContextId; }
63 inline bool AgentContextIdHasBeenSet() const { return m_agentContextIdHasBeenSet; }
64 template <typename AgentContextIdT = Aws::String>
65 void SetAgentContextId(AgentContextIdT&& value) {
66 m_agentContextIdHasBeenSet = true;
67 m_agentContextId = std::forward<AgentContextIdT>(value);
68 }
69 template <typename AgentContextIdT = Aws::String>
70 UpdateChangeSetRequest& WithAgentContextId(AgentContextIdT&& value) {
71 SetAgentContextId(std::forward<AgentContextIdT>(value));
72 return *this;
73 }
75
77
82 inline int GetChangeSetVersion() const { return m_changeSetVersion; }
83 inline bool ChangeSetVersionHasBeenSet() const { return m_changeSetVersionHasBeenSet; }
84 inline void SetChangeSetVersion(int value) {
85 m_changeSetVersionHasBeenSet = true;
86 m_changeSetVersion = value;
87 }
90 return *this;
91 }
93
95
102 inline const Aws::String& GetClientToken() const { return m_clientToken; }
103 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 template <typename ClientTokenT = Aws::String>
105 void SetClientToken(ClientTokenT&& value) {
106 m_clientTokenHasBeenSet = true;
107 m_clientToken = std::forward<ClientTokenT>(value);
108 }
109 template <typename ClientTokenT = Aws::String>
111 SetClientToken(std::forward<ClientTokenT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::Vector<ChangeSetOperation>& GetOperationsToRemove() const { return m_operationsToRemove; }
123 inline bool OperationsToRemoveHasBeenSet() const { return m_operationsToRemoveHasBeenSet; }
124 template <typename OperationsToRemoveT = Aws::Vector<ChangeSetOperation>>
125 void SetOperationsToRemove(OperationsToRemoveT&& value) {
126 m_operationsToRemoveHasBeenSet = true;
127 m_operationsToRemove = std::forward<OperationsToRemoveT>(value);
128 }
129 template <typename OperationsToRemoveT = Aws::Vector<ChangeSetOperation>>
130 UpdateChangeSetRequest& WithOperationsToRemove(OperationsToRemoveT&& value) {
131 SetOperationsToRemove(std::forward<OperationsToRemoveT>(value));
132 return *this;
133 }
134 template <typename OperationsToRemoveT = ChangeSetOperation>
135 UpdateChangeSetRequest& AddOperationsToRemove(OperationsToRemoveT&& value) {
136 m_operationsToRemoveHasBeenSet = true;
137 m_operationsToRemove.emplace_back(std::forward<OperationsToRemoveT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_changeSetId;
143
144 Aws::String m_agentContextId;
145
146 int m_changeSetVersion{0};
147
149
150 Aws::Vector<ChangeSetOperation> m_operationsToRemove;
151 bool m_changeSetIdHasBeenSet = false;
152 bool m_agentContextIdHasBeenSet = false;
153 bool m_changeSetVersionHasBeenSet = false;
154 bool m_clientTokenHasBeenSet = true;
155 bool m_operationsToRemoveHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace Context
160} // namespace Aws
const Aws::Vector< ChangeSetOperation > & GetOperationsToRemove() const
UpdateChangeSetRequest & WithOperationsToRemove(OperationsToRemoveT &&value)
AWS_CONTEXT_API Aws::String SerializePayload() const override
UpdateChangeSetRequest & WithClientToken(ClientTokenT &&value)
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdateChangeSetRequest & WithChangeSetId(ChangeSetIdT &&value)
AWS_CONTEXT_API UpdateChangeSetRequest()=default
UpdateChangeSetRequest & WithAgentContextId(AgentContextIdT &&value)
UpdateChangeSetRequest & WithChangeSetVersion(int value)
void SetOperationsToRemove(OperationsToRemoveT &&value)
UpdateChangeSetRequest & AddOperationsToRemove(OperationsToRemoveT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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