AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-security-manager/NetworkSecurityManagerRequest.h>
12#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
13#include <aws/network-security-manager/model/DeploymentConfiguration.h>
14#include <aws/network-security-manager/model/PolicyReference.h>
15#include <aws/network-security-manager/model/ScopeReference.h>
16
17#include <utility>
18
19namespace Aws {
20namespace NetworkSecurityManager {
21namespace Model {
22
26 public:
27 AWS_NETWORKSECURITYMANAGER_API CreateDeploymentRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
34
35 AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override;
36
38
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
63 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
64 template <typename DeploymentNameT = Aws::String>
65 void SetDeploymentName(DeploymentNameT&& value) {
66 m_deploymentNameHasBeenSet = true;
67 m_deploymentName = std::forward<DeploymentNameT>(value);
68 }
69 template <typename DeploymentNameT = Aws::String>
70 CreateDeploymentRequest& WithDeploymentName(DeploymentNameT&& value) {
71 SetDeploymentName(std::forward<DeploymentNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDeploymentDescription() const { return m_deploymentDescription; }
81 inline bool DeploymentDescriptionHasBeenSet() const { return m_deploymentDescriptionHasBeenSet; }
82 template <typename DeploymentDescriptionT = Aws::String>
83 void SetDeploymentDescription(DeploymentDescriptionT&& value) {
84 m_deploymentDescriptionHasBeenSet = true;
85 m_deploymentDescription = std::forward<DeploymentDescriptionT>(value);
86 }
87 template <typename DeploymentDescriptionT = Aws::String>
88 CreateDeploymentRequest& WithDeploymentDescription(DeploymentDescriptionT&& value) {
89 SetDeploymentDescription(std::forward<DeploymentDescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
99 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
100 template <typename DeploymentConfigurationT = DeploymentConfiguration>
101 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) {
102 m_deploymentConfigurationHasBeenSet = true;
103 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
104 }
105 template <typename DeploymentConfigurationT = DeploymentConfiguration>
106 CreateDeploymentRequest& WithDeploymentConfiguration(DeploymentConfigurationT&& value) {
107 SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<PolicyReference>& GetAssociatedPolicyList() const { return m_associatedPolicyList; }
117 inline bool AssociatedPolicyListHasBeenSet() const { return m_associatedPolicyListHasBeenSet; }
118 template <typename AssociatedPolicyListT = Aws::Vector<PolicyReference>>
119 void SetAssociatedPolicyList(AssociatedPolicyListT&& value) {
120 m_associatedPolicyListHasBeenSet = true;
121 m_associatedPolicyList = std::forward<AssociatedPolicyListT>(value);
122 }
123 template <typename AssociatedPolicyListT = Aws::Vector<PolicyReference>>
124 CreateDeploymentRequest& WithAssociatedPolicyList(AssociatedPolicyListT&& value) {
125 SetAssociatedPolicyList(std::forward<AssociatedPolicyListT>(value));
126 return *this;
127 }
128 template <typename AssociatedPolicyListT = PolicyReference>
129 CreateDeploymentRequest& AddAssociatedPolicyList(AssociatedPolicyListT&& value) {
130 m_associatedPolicyListHasBeenSet = true;
131 m_associatedPolicyList.emplace_back(std::forward<AssociatedPolicyListT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Vector<ScopeReference>& GetAssociatedScopeList() const { return m_associatedScopeList; }
142 inline bool AssociatedScopeListHasBeenSet() const { return m_associatedScopeListHasBeenSet; }
143 template <typename AssociatedScopeListT = Aws::Vector<ScopeReference>>
144 void SetAssociatedScopeList(AssociatedScopeListT&& value) {
145 m_associatedScopeListHasBeenSet = true;
146 m_associatedScopeList = std::forward<AssociatedScopeListT>(value);
147 }
148 template <typename AssociatedScopeListT = Aws::Vector<ScopeReference>>
149 CreateDeploymentRequest& WithAssociatedScopeList(AssociatedScopeListT&& value) {
150 SetAssociatedScopeList(std::forward<AssociatedScopeListT>(value));
151 return *this;
152 }
153 template <typename AssociatedScopeListT = ScopeReference>
154 CreateDeploymentRequest& AddAssociatedScopeList(AssociatedScopeListT&& value) {
155 m_associatedScopeListHasBeenSet = true;
156 m_associatedScopeList.emplace_back(std::forward<AssociatedScopeListT>(value));
157 return *this;
158 }
160
162
168 inline bool GetIsPublished() const { return m_isPublished; }
169 inline bool IsPublishedHasBeenSet() const { return m_isPublishedHasBeenSet; }
170 inline void SetIsPublished(bool value) {
171 m_isPublishedHasBeenSet = true;
172 m_isPublished = value;
173 }
175 SetIsPublished(value);
176 return *this;
177 }
179
181
184 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 void SetTags(TagsT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags = std::forward<TagsT>(value);
190 }
191 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
193 SetTags(std::forward<TagsT>(value));
194 return *this;
195 }
196 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
197 CreateDeploymentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
198 m_tagsHasBeenSet = true;
199 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
200 return *this;
201 }
203 private:
205
206 Aws::String m_deploymentName;
207
208 Aws::String m_deploymentDescription;
209
210 DeploymentConfiguration m_deploymentConfiguration;
211
212 Aws::Vector<PolicyReference> m_associatedPolicyList;
213
214 Aws::Vector<ScopeReference> m_associatedScopeList;
215
216 bool m_isPublished{false};
217
219 bool m_clientTokenHasBeenSet = true;
220 bool m_deploymentNameHasBeenSet = false;
221 bool m_deploymentDescriptionHasBeenSet = false;
222 bool m_deploymentConfigurationHasBeenSet = false;
223 bool m_associatedPolicyListHasBeenSet = false;
224 bool m_associatedScopeListHasBeenSet = false;
225 bool m_isPublishedHasBeenSet = false;
226 bool m_tagsHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace NetworkSecurityManager
231} // namespace Aws
CreateDeploymentRequest & AddAssociatedScopeList(AssociatedScopeListT &&value)
CreateDeploymentRequest & WithAssociatedPolicyList(AssociatedPolicyListT &&value)
CreateDeploymentRequest & WithDeploymentConfiguration(DeploymentConfigurationT &&value)
const Aws::Vector< ScopeReference > & GetAssociatedScopeList() const
CreateDeploymentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< PolicyReference > & GetAssociatedPolicyList() const
CreateDeploymentRequest & WithDeploymentName(DeploymentNameT &&value)
CreateDeploymentRequest & WithAssociatedScopeList(AssociatedScopeListT &&value)
CreateDeploymentRequest & WithDeploymentDescription(DeploymentDescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDeploymentRequest & AddAssociatedPolicyList(AssociatedPolicyListT &&value)
CreateDeploymentRequest & WithClientToken(ClientTokenT &&value)
AWS_NETWORKSECURITYMANAGER_API CreateDeploymentRequest()=default
const DeploymentConfiguration & GetDeploymentConfiguration() const
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector