AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/launch-wizard/LaunchWizard_EXPORTS.h>
8#include <aws/launch-wizard/LaunchWizardRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace LaunchWizard
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LAUNCHWIZARD_API CreateDeploymentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
32
33 AWS_LAUNCHWIZARD_API Aws::String SerializePayload() const override;
34
35
37
44 inline const Aws::String& GetDeploymentPatternName() const { return m_deploymentPatternName; }
45 inline bool DeploymentPatternNameHasBeenSet() const { return m_deploymentPatternNameHasBeenSet; }
46 template<typename DeploymentPatternNameT = Aws::String>
47 void SetDeploymentPatternName(DeploymentPatternNameT&& value) { m_deploymentPatternNameHasBeenSet = true; m_deploymentPatternName = std::forward<DeploymentPatternNameT>(value); }
48 template<typename DeploymentPatternNameT = Aws::String>
49 CreateDeploymentRequest& WithDeploymentPatternName(DeploymentPatternNameT&& value) { SetDeploymentPatternName(std::forward<DeploymentPatternNameT>(value)); return *this;}
51
53
59 inline bool GetDryRun() const { return m_dryRun; }
60 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
61 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 inline CreateDeploymentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
64
66
69 inline const Aws::String& GetName() const { return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 template<typename NameT = Aws::String>
72 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
73 template<typename NameT = Aws::String>
74 CreateDeploymentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
76
78
89 inline const Aws::Map<Aws::String, Aws::String>& GetSpecifications() const { return m_specifications; }
90 inline bool SpecificationsHasBeenSet() const { return m_specificationsHasBeenSet; }
91 template<typename SpecificationsT = Aws::Map<Aws::String, Aws::String>>
92 void SetSpecifications(SpecificationsT&& value) { m_specificationsHasBeenSet = true; m_specifications = std::forward<SpecificationsT>(value); }
93 template<typename SpecificationsT = Aws::Map<Aws::String, Aws::String>>
94 CreateDeploymentRequest& WithSpecifications(SpecificationsT&& value) { SetSpecifications(std::forward<SpecificationsT>(value)); return *this;}
95 template<typename SpecificationsKeyT = Aws::String, typename SpecificationsValueT = Aws::String>
96 CreateDeploymentRequest& AddSpecifications(SpecificationsKeyT&& key, SpecificationsValueT&& value) {
97 m_specificationsHasBeenSet = true; m_specifications.emplace(std::forward<SpecificationsKeyT>(key), std::forward<SpecificationsValueT>(value)); return *this;
98 }
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 CreateDeploymentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
111 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 CreateDeploymentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
114 }
116
118
124 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
125 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
126 template<typename WorkloadNameT = Aws::String>
127 void SetWorkloadName(WorkloadNameT&& value) { m_workloadNameHasBeenSet = true; m_workloadName = std::forward<WorkloadNameT>(value); }
128 template<typename WorkloadNameT = Aws::String>
129 CreateDeploymentRequest& WithWorkloadName(WorkloadNameT&& value) { SetWorkloadName(std::forward<WorkloadNameT>(value)); return *this;}
131 private:
132
133 Aws::String m_deploymentPatternName;
134 bool m_deploymentPatternNameHasBeenSet = false;
135
136 bool m_dryRun{false};
137 bool m_dryRunHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::Map<Aws::String, Aws::String> m_specifications;
143 bool m_specificationsHasBeenSet = false;
144
146 bool m_tagsHasBeenSet = false;
147
148 Aws::String m_workloadName;
149 bool m_workloadNameHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace LaunchWizard
154} // 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