AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateDeploymentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/network-security-manager/NetworkSecurityManagerRequest.h>
11#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
12#include <aws/network-security-manager/model/DeploymentConfiguration.h>
13#include <aws/network-security-manager/model/PolicyReference.h>
14#include <aws/network-security-manager/model/ScopeReference.h>
15
16#include <utility>
17
18namespace Aws {
19namespace NetworkSecurityManager {
20namespace Model {
21
25 public:
26 AWS_NETWORKSECURITYMANAGER_API UpdateDeploymentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateDeployment"; }
33
34 AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetDeploymentIdentifier() const { return m_deploymentIdentifier; }
42 inline bool DeploymentIdentifierHasBeenSet() const { return m_deploymentIdentifierHasBeenSet; }
43 template <typename DeploymentIdentifierT = Aws::String>
44 void SetDeploymentIdentifier(DeploymentIdentifierT&& value) {
45 m_deploymentIdentifierHasBeenSet = true;
46 m_deploymentIdentifier = std::forward<DeploymentIdentifierT>(value);
47 }
48 template <typename DeploymentIdentifierT = Aws::String>
49 UpdateDeploymentRequest& WithDeploymentIdentifier(DeploymentIdentifierT&& value) {
50 SetDeploymentIdentifier(std::forward<DeploymentIdentifierT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
62 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
63 template <typename UpdateTokenT = Aws::String>
64 void SetUpdateToken(UpdateTokenT&& value) {
65 m_updateTokenHasBeenSet = true;
66 m_updateToken = std::forward<UpdateTokenT>(value);
67 }
68 template <typename UpdateTokenT = Aws::String>
70 SetUpdateToken(std::forward<UpdateTokenT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDeploymentDescription() const { return m_deploymentDescription; }
80 inline bool DeploymentDescriptionHasBeenSet() const { return m_deploymentDescriptionHasBeenSet; }
81 template <typename DeploymentDescriptionT = Aws::String>
82 void SetDeploymentDescription(DeploymentDescriptionT&& value) {
83 m_deploymentDescriptionHasBeenSet = true;
84 m_deploymentDescription = std::forward<DeploymentDescriptionT>(value);
85 }
86 template <typename DeploymentDescriptionT = Aws::String>
87 UpdateDeploymentRequest& WithDeploymentDescription(DeploymentDescriptionT&& value) {
88 SetDeploymentDescription(std::forward<DeploymentDescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
98 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
99 template <typename DeploymentConfigurationT = DeploymentConfiguration>
100 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) {
101 m_deploymentConfigurationHasBeenSet = true;
102 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
103 }
104 template <typename DeploymentConfigurationT = DeploymentConfiguration>
105 UpdateDeploymentRequest& WithDeploymentConfiguration(DeploymentConfigurationT&& value) {
106 SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<PolicyReference>& GetAssociatedPolicyList() const { return m_associatedPolicyList; }
116 inline bool AssociatedPolicyListHasBeenSet() const { return m_associatedPolicyListHasBeenSet; }
117 template <typename AssociatedPolicyListT = Aws::Vector<PolicyReference>>
118 void SetAssociatedPolicyList(AssociatedPolicyListT&& value) {
119 m_associatedPolicyListHasBeenSet = true;
120 m_associatedPolicyList = std::forward<AssociatedPolicyListT>(value);
121 }
122 template <typename AssociatedPolicyListT = Aws::Vector<PolicyReference>>
123 UpdateDeploymentRequest& WithAssociatedPolicyList(AssociatedPolicyListT&& value) {
124 SetAssociatedPolicyList(std::forward<AssociatedPolicyListT>(value));
125 return *this;
126 }
127 template <typename AssociatedPolicyListT = PolicyReference>
128 UpdateDeploymentRequest& AddAssociatedPolicyList(AssociatedPolicyListT&& value) {
129 m_associatedPolicyListHasBeenSet = true;
130 m_associatedPolicyList.emplace_back(std::forward<AssociatedPolicyListT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Vector<ScopeReference>& GetAssociatedScopeList() const { return m_associatedScopeList; }
141 inline bool AssociatedScopeListHasBeenSet() const { return m_associatedScopeListHasBeenSet; }
142 template <typename AssociatedScopeListT = Aws::Vector<ScopeReference>>
143 void SetAssociatedScopeList(AssociatedScopeListT&& value) {
144 m_associatedScopeListHasBeenSet = true;
145 m_associatedScopeList = std::forward<AssociatedScopeListT>(value);
146 }
147 template <typename AssociatedScopeListT = Aws::Vector<ScopeReference>>
148 UpdateDeploymentRequest& WithAssociatedScopeList(AssociatedScopeListT&& value) {
149 SetAssociatedScopeList(std::forward<AssociatedScopeListT>(value));
150 return *this;
151 }
152 template <typename AssociatedScopeListT = ScopeReference>
153 UpdateDeploymentRequest& AddAssociatedScopeList(AssociatedScopeListT&& value) {
154 m_associatedScopeListHasBeenSet = true;
155 m_associatedScopeList.emplace_back(std::forward<AssociatedScopeListT>(value));
156 return *this;
157 }
159
161
166 inline bool GetIsPublished() const { return m_isPublished; }
167 inline bool IsPublishedHasBeenSet() const { return m_isPublishedHasBeenSet; }
168 inline void SetIsPublished(bool value) {
169 m_isPublishedHasBeenSet = true;
170 m_isPublished = value;
171 }
173 SetIsPublished(value);
174 return *this;
175 }
177
179
185 inline const Aws::String& GetClientToken() const { return m_clientToken; }
186 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
187 template <typename ClientTokenT = Aws::String>
188 void SetClientToken(ClientTokenT&& value) {
189 m_clientTokenHasBeenSet = true;
190 m_clientToken = std::forward<ClientTokenT>(value);
191 }
192 template <typename ClientTokenT = Aws::String>
194 SetClientToken(std::forward<ClientTokenT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_deploymentIdentifier;
200
201 Aws::String m_updateToken;
202
203 Aws::String m_deploymentDescription;
204
205 DeploymentConfiguration m_deploymentConfiguration;
206
207 Aws::Vector<PolicyReference> m_associatedPolicyList;
208
209 Aws::Vector<ScopeReference> m_associatedScopeList;
210
211 bool m_isPublished{false};
212
214 bool m_deploymentIdentifierHasBeenSet = false;
215 bool m_updateTokenHasBeenSet = false;
216 bool m_deploymentDescriptionHasBeenSet = false;
217 bool m_deploymentConfigurationHasBeenSet = false;
218 bool m_associatedPolicyListHasBeenSet = false;
219 bool m_associatedScopeListHasBeenSet = false;
220 bool m_isPublishedHasBeenSet = false;
221 bool m_clientTokenHasBeenSet = true;
222};
223
224} // namespace Model
225} // namespace NetworkSecurityManager
226} // namespace Aws
const Aws::Vector< PolicyReference > & GetAssociatedPolicyList() const
UpdateDeploymentRequest & WithClientToken(ClientTokenT &&value)
const DeploymentConfiguration & GetDeploymentConfiguration() const
AWS_NETWORKSECURITYMANAGER_API UpdateDeploymentRequest()=default
UpdateDeploymentRequest & WithDeploymentDescription(DeploymentDescriptionT &&value)
UpdateDeploymentRequest & WithDeploymentConfiguration(DeploymentConfigurationT &&value)
UpdateDeploymentRequest & AddAssociatedPolicyList(AssociatedPolicyListT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
UpdateDeploymentRequest & WithDeploymentIdentifier(DeploymentIdentifierT &&value)
UpdateDeploymentRequest & WithAssociatedPolicyList(AssociatedPolicyListT &&value)
UpdateDeploymentRequest & WithUpdateToken(UpdateTokenT &&value)
UpdateDeploymentRequest & AddAssociatedScopeList(AssociatedScopeListT &&value)
const Aws::Vector< ScopeReference > & GetAssociatedScopeList() const
UpdateDeploymentRequest & WithAssociatedScopeList(AssociatedScopeListT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector