AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/launch-wizard/LaunchWizardRequest.h>
10#include <aws/launch-wizard/LaunchWizard_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace LaunchWizard {
16namespace Model {
17
21 public:
22 AWS_LAUNCHWIZARD_API CreateDeploymentRequest() = 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 "CreateDeployment"; }
29
30 AWS_LAUNCHWIZARD_API Aws::String SerializePayload() const override;
31
33
39 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
40 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
41 template <typename WorkloadNameT = Aws::String>
42 void SetWorkloadName(WorkloadNameT&& value) {
43 m_workloadNameHasBeenSet = true;
44 m_workloadName = std::forward<WorkloadNameT>(value);
45 }
46 template <typename WorkloadNameT = Aws::String>
47 CreateDeploymentRequest& WithWorkloadName(WorkloadNameT&& value) {
48 SetWorkloadName(std::forward<WorkloadNameT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::String& GetDeploymentPatternName() const { return m_deploymentPatternName; }
62 inline bool DeploymentPatternNameHasBeenSet() const { return m_deploymentPatternNameHasBeenSet; }
63 template <typename DeploymentPatternNameT = Aws::String>
64 void SetDeploymentPatternName(DeploymentPatternNameT&& value) {
65 m_deploymentPatternNameHasBeenSet = true;
66 m_deploymentPatternName = std::forward<DeploymentPatternNameT>(value);
67 }
68 template <typename DeploymentPatternNameT = Aws::String>
69 CreateDeploymentRequest& WithDeploymentPatternName(DeploymentPatternNameT&& value) {
70 SetDeploymentPatternName(std::forward<DeploymentPatternNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
105 inline const Aws::Map<Aws::String, Aws::String>& GetSpecifications() const { return m_specifications; }
106 inline bool SpecificationsHasBeenSet() const { return m_specificationsHasBeenSet; }
107 template <typename SpecificationsT = Aws::Map<Aws::String, Aws::String>>
108 void SetSpecifications(SpecificationsT&& value) {
109 m_specificationsHasBeenSet = true;
110 m_specifications = std::forward<SpecificationsT>(value);
111 }
112 template <typename SpecificationsT = Aws::Map<Aws::String, Aws::String>>
113 CreateDeploymentRequest& WithSpecifications(SpecificationsT&& value) {
114 SetSpecifications(std::forward<SpecificationsT>(value));
115 return *this;
116 }
117 template <typename SpecificationsKeyT = Aws::String, typename SpecificationsValueT = Aws::String>
118 CreateDeploymentRequest& AddSpecifications(SpecificationsKeyT&& key, SpecificationsValueT&& value) {
119 m_specificationsHasBeenSet = true;
120 m_specifications.emplace(std::forward<SpecificationsKeyT>(key), std::forward<SpecificationsValueT>(value));
121 return *this;
122 }
124
126
132 inline bool GetDryRun() const { return m_dryRun; }
133 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
134 inline void SetDryRun(bool value) {
135 m_dryRunHasBeenSet = true;
136 m_dryRun = value;
137 }
139 SetDryRun(value);
140 return *this;
141 }
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 CreateDeploymentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_workloadName;
169
170 Aws::String m_deploymentPatternName;
171
172 Aws::String m_name;
173
174 Aws::Map<Aws::String, Aws::String> m_specifications;
175
176 bool m_dryRun{false};
177
179 bool m_workloadNameHasBeenSet = false;
180 bool m_deploymentPatternNameHasBeenSet = false;
181 bool m_nameHasBeenSet = false;
182 bool m_specificationsHasBeenSet = false;
183 bool m_dryRunHasBeenSet = false;
184 bool m_tagsHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace LaunchWizard
189} // namespace Aws
CreateDeploymentRequest & WithDeploymentPatternName(DeploymentPatternNameT &&value)
CreateDeploymentRequest & AddSpecifications(SpecificationsKeyT &&key, SpecificationsValueT &&value)
CreateDeploymentRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSpecifications() const
AWS_LAUNCHWIZARD_API CreateDeploymentRequest()=default
CreateDeploymentRequest & WithTags(TagsT &&value)
void SetDeploymentPatternName(DeploymentPatternNameT &&value)
CreateDeploymentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
CreateDeploymentRequest & WithWorkloadName(WorkloadNameT &&value)
CreateDeploymentRequest & WithSpecifications(SpecificationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_LAUNCHWIZARD_API Aws::String SerializePayload() const override
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