AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/DeploymentSourceConfigRequest.h>
10#include <aws/amplifygen3/model/PublishableKeyAction.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AmplifyGen3 {
18namespace Model {
19
23 public:
24 AWS_AMPLIFYGEN3_API CreateDeploymentRequest() = 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 "CreateDeployment"; }
31
32 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetAppName() const { return m_appName; }
39 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
40 template <typename AppNameT = Aws::String>
41 void SetAppName(AppNameT&& value) {
42 m_appNameHasBeenSet = true;
43 m_appName = std::forward<AppNameT>(value);
44 }
45 template <typename AppNameT = Aws::String>
47 SetAppName(std::forward<AppNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
57 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
58 template <typename EnvironmentNameT = Aws::String>
59 void SetEnvironmentName(EnvironmentNameT&& value) {
60 m_environmentNameHasBeenSet = true;
61 m_environmentName = std::forward<EnvironmentNameT>(value);
62 }
63 template <typename EnvironmentNameT = Aws::String>
64 CreateDeploymentRequest& WithEnvironmentName(EnvironmentNameT&& value) {
65 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
66 return *this;
67 }
69
71
74 inline const DeploymentSourceConfigRequest& GetSourceConfig() const { return m_sourceConfig; }
75 inline bool SourceConfigHasBeenSet() const { return m_sourceConfigHasBeenSet; }
76 template <typename SourceConfigT = DeploymentSourceConfigRequest>
77 void SetSourceConfig(SourceConfigT&& value) {
78 m_sourceConfigHasBeenSet = true;
79 m_sourceConfig = std::forward<SourceConfigT>(value);
80 }
81 template <typename SourceConfigT = DeploymentSourceConfigRequest>
82 CreateDeploymentRequest& WithSourceConfig(SourceConfigT&& value) {
83 SetSourceConfig(std::forward<SourceConfigT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 CreateDeploymentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
126 return *this;
127 }
129
131
138 inline const Aws::String& GetBranchArn() const { return m_branchArn; }
139 inline bool BranchArnHasBeenSet() const { return m_branchArnHasBeenSet; }
140 template <typename BranchArnT = Aws::String>
141 void SetBranchArn(BranchArnT&& value) {
142 m_branchArnHasBeenSet = true;
143 m_branchArn = std::forward<BranchArnT>(value);
144 }
145 template <typename BranchArnT = Aws::String>
147 SetBranchArn(std::forward<BranchArnT>(value));
148 return *this;
149 }
151
153
159 inline PublishableKeyAction GetPublishableKeyAction() const { return m_publishableKeyAction; }
160 inline bool PublishableKeyActionHasBeenSet() const { return m_publishableKeyActionHasBeenSet; }
162 m_publishableKeyActionHasBeenSet = true;
163 m_publishableKeyAction = value;
164 }
170 private:
171 Aws::String m_appName;
172
173 Aws::String m_environmentName;
174
175 DeploymentSourceConfigRequest m_sourceConfig;
176
177 Aws::String m_description;
178
180
181 Aws::String m_branchArn;
182
184 bool m_appNameHasBeenSet = false;
185 bool m_environmentNameHasBeenSet = false;
186 bool m_sourceConfigHasBeenSet = false;
187 bool m_descriptionHasBeenSet = false;
188 bool m_tagsHasBeenSet = false;
189 bool m_branchArnHasBeenSet = false;
190 bool m_publishableKeyActionHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace AmplifyGen3
195} // namespace Aws
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
CreateDeploymentRequest & WithSourceConfig(SourceConfigT &&value)
CreateDeploymentRequest & WithDescription(DescriptionT &&value)
CreateDeploymentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDeploymentRequest & WithEnvironmentName(EnvironmentNameT &&value)
CreateDeploymentRequest & WithPublishableKeyAction(PublishableKeyAction value)
CreateDeploymentRequest & WithTags(TagsT &&value)
CreateDeploymentRequest & WithAppName(AppNameT &&value)
const DeploymentSourceConfigRequest & GetSourceConfig() const
CreateDeploymentRequest & WithBranchArn(BranchArnT &&value)
AWS_AMPLIFYGEN3_API CreateDeploymentRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() 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