AWS SDK for C++  0.14.3
AWS SDK for C++
CreateDeploymentRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace CodeDeploy
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
44 
49  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
50 
55  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
56 
61  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
62 
67  inline CreateDeploymentRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
68 
73  inline CreateDeploymentRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
74 
79  inline CreateDeploymentRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
80 
84  inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
85 
89  inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
90 
94  inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
95 
99  inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
100 
104  inline CreateDeploymentRequest& WithDeploymentGroupName(const Aws::String& value) { SetDeploymentGroupName(value); return *this;}
105 
109  inline CreateDeploymentRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(value); return *this;}
110 
114  inline CreateDeploymentRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
115 
119  inline const RevisionLocation& GetRevision() const{ return m_revision; }
120 
124  inline void SetRevision(const RevisionLocation& value) { m_revisionHasBeenSet = true; m_revision = value; }
125 
129  inline void SetRevision(RevisionLocation&& value) { m_revisionHasBeenSet = true; m_revision = value; }
130 
134  inline CreateDeploymentRequest& WithRevision(const RevisionLocation& value) { SetRevision(value); return *this;}
135 
139  inline CreateDeploymentRequest& WithRevision(RevisionLocation&& value) { SetRevision(value); return *this;}
140 
148  inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
149 
157  inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
158 
166  inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
167 
175  inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
176 
184  inline CreateDeploymentRequest& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
185 
193  inline CreateDeploymentRequest& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(value); return *this;}
194 
202  inline CreateDeploymentRequest& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
203 
207  inline const Aws::String& GetDescription() const{ return m_description; }
208 
212  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
213 
217  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
218 
222  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
223 
227  inline CreateDeploymentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
228 
232  inline CreateDeploymentRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
233 
237  inline CreateDeploymentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
238 
248  inline bool GetIgnoreApplicationStopFailures() const{ return m_ignoreApplicationStopFailures; }
249 
259  inline void SetIgnoreApplicationStopFailures(bool value) { m_ignoreApplicationStopFailuresHasBeenSet = true; m_ignoreApplicationStopFailures = value; }
260 
270  inline CreateDeploymentRequest& WithIgnoreApplicationStopFailures(bool value) { SetIgnoreApplicationStopFailures(value); return *this;}
271 
272  private:
273  Aws::String m_applicationName;
274  bool m_applicationNameHasBeenSet;
275  Aws::String m_deploymentGroupName;
276  bool m_deploymentGroupNameHasBeenSet;
277  RevisionLocation m_revision;
278  bool m_revisionHasBeenSet;
279  Aws::String m_deploymentConfigName;
280  bool m_deploymentConfigNameHasBeenSet;
281  Aws::String m_description;
282  bool m_descriptionHasBeenSet;
283  bool m_ignoreApplicationStopFailures;
284  bool m_ignoreApplicationStopFailuresHasBeenSet;
285  };
286 
287 } // namespace Model
288 } // namespace CodeDeploy
289 } // namespace Aws
CreateDeploymentRequest & WithDeploymentGroupName(const char *value)
CreateDeploymentRequest & WithIgnoreApplicationStopFailures(bool value)
CreateDeploymentRequest & WithRevision(RevisionLocation &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateDeploymentRequest & WithApplicationName(const char *value)
CreateDeploymentRequest & WithDescription(Aws::String &&value)
CreateDeploymentRequest & WithDescription(const char *value)
CreateDeploymentRequest & WithApplicationName(const Aws::String &value)
#define AWS_CODEDEPLOY_API
CreateDeploymentRequest & WithDeploymentConfigName(Aws::String &&value)
CreateDeploymentRequest & WithDeploymentGroupName(const Aws::String &value)
CreateDeploymentRequest & WithDescription(const Aws::String &value)
CreateDeploymentRequest & WithDeploymentConfigName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDeploymentRequest & WithRevision(const RevisionLocation &value)
CreateDeploymentRequest & WithDeploymentGroupName(Aws::String &&value)
CreateDeploymentRequest & WithApplicationName(Aws::String &&value)
JSON (JavaScript Object Notation).
CreateDeploymentRequest & WithDeploymentConfigName(const Aws::String &value)