AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/proton/model/DeploymentUpdateType.h>
11#include <aws/proton/model/RepositoryBranchInput.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Proton
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PROTON_API UpdateEnvironmentRequest();
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 "UpdateEnvironment"; }
33
34 AWS_PROTON_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetCodebuildRoleArn() const{ return m_codebuildRoleArn; }
45 inline bool CodebuildRoleArnHasBeenSet() const { return m_codebuildRoleArnHasBeenSet; }
46 inline void SetCodebuildRoleArn(const Aws::String& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = value; }
47 inline void SetCodebuildRoleArn(Aws::String&& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = std::move(value); }
48 inline void SetCodebuildRoleArn(const char* value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn.assign(value); }
50 inline UpdateEnvironmentRequest& WithCodebuildRoleArn(Aws::String&& value) { SetCodebuildRoleArn(std::move(value)); return *this;}
51 inline UpdateEnvironmentRequest& WithCodebuildRoleArn(const char* value) { SetCodebuildRoleArn(value); return *this;}
53
55
65 inline const Aws::String& GetComponentRoleArn() const{ return m_componentRoleArn; }
66 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
67 inline void SetComponentRoleArn(const Aws::String& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = value; }
68 inline void SetComponentRoleArn(Aws::String&& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = std::move(value); }
69 inline void SetComponentRoleArn(const char* value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn.assign(value); }
71 inline UpdateEnvironmentRequest& WithComponentRoleArn(Aws::String&& value) { SetComponentRoleArn(std::move(value)); return *this;}
72 inline UpdateEnvironmentRequest& WithComponentRoleArn(const char* value) { SetComponentRoleArn(value); return *this;}
74
76
95 inline const DeploymentUpdateType& GetDeploymentType() const{ return m_deploymentType; }
96 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
97 inline void SetDeploymentType(const DeploymentUpdateType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
98 inline void SetDeploymentType(DeploymentUpdateType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
100 inline UpdateEnvironmentRequest& WithDeploymentType(DeploymentUpdateType&& value) { SetDeploymentType(std::move(value)); return *this;}
102
104
107 inline const Aws::String& GetDescription() const{ return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
110 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
111 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
112 inline UpdateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
113 inline UpdateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 inline UpdateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
116
118
124 inline const Aws::String& GetEnvironmentAccountConnectionId() const{ return m_environmentAccountConnectionId; }
125 inline bool EnvironmentAccountConnectionIdHasBeenSet() const { return m_environmentAccountConnectionIdHasBeenSet; }
126 inline void SetEnvironmentAccountConnectionId(const Aws::String& value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId = value; }
127 inline void SetEnvironmentAccountConnectionId(Aws::String&& value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId = std::move(value); }
128 inline void SetEnvironmentAccountConnectionId(const char* value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId.assign(value); }
133
135
138 inline const Aws::String& GetName() const{ return m_name; }
139 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
140 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
141 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
142 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
143 inline UpdateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
144 inline UpdateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
145 inline UpdateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
147
149
153 inline const Aws::String& GetProtonServiceRoleArn() const{ return m_protonServiceRoleArn; }
154 inline bool ProtonServiceRoleArnHasBeenSet() const { return m_protonServiceRoleArnHasBeenSet; }
155 inline void SetProtonServiceRoleArn(const Aws::String& value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn = value; }
156 inline void SetProtonServiceRoleArn(Aws::String&& value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn = std::move(value); }
157 inline void SetProtonServiceRoleArn(const char* value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn.assign(value); }
160 inline UpdateEnvironmentRequest& WithProtonServiceRoleArn(const char* value) { SetProtonServiceRoleArn(value); return *this;}
162
164
170 inline const RepositoryBranchInput& GetProvisioningRepository() const{ return m_provisioningRepository; }
171 inline bool ProvisioningRepositoryHasBeenSet() const { return m_provisioningRepositoryHasBeenSet; }
172 inline void SetProvisioningRepository(const RepositoryBranchInput& value) { m_provisioningRepositoryHasBeenSet = true; m_provisioningRepository = value; }
173 inline void SetProvisioningRepository(RepositoryBranchInput&& value) { m_provisioningRepositoryHasBeenSet = true; m_provisioningRepository = std::move(value); }
177
179
182 inline const Aws::String& GetSpec() const{ return m_spec; }
183 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
184 inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; }
185 inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
186 inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); }
187 inline UpdateEnvironmentRequest& WithSpec(const Aws::String& value) { SetSpec(value); return *this;}
188 inline UpdateEnvironmentRequest& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;}
189 inline UpdateEnvironmentRequest& WithSpec(const char* value) { SetSpec(value); return *this;}
191
193
196 inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; }
197 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
198 inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; }
199 inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); }
200 inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); }
203 inline UpdateEnvironmentRequest& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;}
205
207
210 inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; }
211 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
212 inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; }
213 inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); }
214 inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); }
217 inline UpdateEnvironmentRequest& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;}
219 private:
220
221 Aws::String m_codebuildRoleArn;
222 bool m_codebuildRoleArnHasBeenSet = false;
223
224 Aws::String m_componentRoleArn;
225 bool m_componentRoleArnHasBeenSet = false;
226
227 DeploymentUpdateType m_deploymentType;
228 bool m_deploymentTypeHasBeenSet = false;
229
230 Aws::String m_description;
231 bool m_descriptionHasBeenSet = false;
232
233 Aws::String m_environmentAccountConnectionId;
234 bool m_environmentAccountConnectionIdHasBeenSet = false;
235
236 Aws::String m_name;
237 bool m_nameHasBeenSet = false;
238
239 Aws::String m_protonServiceRoleArn;
240 bool m_protonServiceRoleArnHasBeenSet = false;
241
242 RepositoryBranchInput m_provisioningRepository;
243 bool m_provisioningRepositoryHasBeenSet = false;
244
245 Aws::String m_spec;
246 bool m_specHasBeenSet = false;
247
248 Aws::String m_templateMajorVersion;
249 bool m_templateMajorVersionHasBeenSet = false;
250
251 Aws::String m_templateMinorVersion;
252 bool m_templateMinorVersionHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace Proton
257} // namespace Aws
UpdateEnvironmentRequest & WithName(const Aws::String &value)
UpdateEnvironmentRequest & WithComponentRoleArn(const Aws::String &value)
UpdateEnvironmentRequest & WithDescription(const char *value)
UpdateEnvironmentRequest & WithName(const char *value)
UpdateEnvironmentRequest & WithSpec(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_PROTON_API Aws::String SerializePayload() const override
UpdateEnvironmentRequest & WithDescription(const Aws::String &value)
UpdateEnvironmentRequest & WithTemplateMajorVersion(const char *value)
UpdateEnvironmentRequest & WithEnvironmentAccountConnectionId(Aws::String &&value)
UpdateEnvironmentRequest & WithSpec(const char *value)
UpdateEnvironmentRequest & WithName(Aws::String &&value)
void SetDeploymentType(DeploymentUpdateType &&value)
UpdateEnvironmentRequest & WithCodebuildRoleArn(const char *value)
void SetProvisioningRepository(const RepositoryBranchInput &value)
void SetDeploymentType(const DeploymentUpdateType &value)
const RepositoryBranchInput & GetProvisioningRepository() const
UpdateEnvironmentRequest & WithDeploymentType(const DeploymentUpdateType &value)
UpdateEnvironmentRequest & WithCodebuildRoleArn(Aws::String &&value)
UpdateEnvironmentRequest & WithTemplateMinorVersion(const Aws::String &value)
UpdateEnvironmentRequest & WithProtonServiceRoleArn(const Aws::String &value)
UpdateEnvironmentRequest & WithEnvironmentAccountConnectionId(const Aws::String &value)
const DeploymentUpdateType & GetDeploymentType() const
UpdateEnvironmentRequest & WithComponentRoleArn(const char *value)
UpdateEnvironmentRequest & WithTemplateMajorVersion(const Aws::String &value)
UpdateEnvironmentRequest & WithEnvironmentAccountConnectionId(const char *value)
UpdateEnvironmentRequest & WithCodebuildRoleArn(const Aws::String &value)
UpdateEnvironmentRequest & WithSpec(Aws::String &&value)
void SetEnvironmentAccountConnectionId(const Aws::String &value)
UpdateEnvironmentRequest & WithComponentRoleArn(Aws::String &&value)
UpdateEnvironmentRequest & WithDeploymentType(DeploymentUpdateType &&value)
UpdateEnvironmentRequest & WithTemplateMinorVersion(const char *value)
UpdateEnvironmentRequest & WithTemplateMajorVersion(Aws::String &&value)
UpdateEnvironmentRequest & WithProvisioningRepository(const RepositoryBranchInput &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEnvironmentRequest & WithProtonServiceRoleArn(const char *value)
UpdateEnvironmentRequest & WithProtonServiceRoleArn(Aws::String &&value)
UpdateEnvironmentRequest & WithTemplateMinorVersion(Aws::String &&value)
UpdateEnvironmentRequest & WithDescription(Aws::String &&value)
UpdateEnvironmentRequest & WithProvisioningRepository(RepositoryBranchInput &&value)
void SetProvisioningRepository(RepositoryBranchInput &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String