AWS SDK for C++  0.14.3
AWS SDK for C++
DeploymentGroupInfo.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
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace CodeDeploy
35 {
36 namespace Model
37 {
38 
43  {
44  public:
47  DeploymentGroupInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
53  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
54 
58  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
59 
63  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
64 
68  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
69 
73  inline DeploymentGroupInfo& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
74 
78  inline DeploymentGroupInfo& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
79 
83  inline DeploymentGroupInfo& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
84 
88  inline const Aws::String& GetDeploymentGroupId() const{ return m_deploymentGroupId; }
89 
93  inline void SetDeploymentGroupId(const Aws::String& value) { m_deploymentGroupIdHasBeenSet = true; m_deploymentGroupId = value; }
94 
98  inline void SetDeploymentGroupId(Aws::String&& value) { m_deploymentGroupIdHasBeenSet = true; m_deploymentGroupId = value; }
99 
103  inline void SetDeploymentGroupId(const char* value) { m_deploymentGroupIdHasBeenSet = true; m_deploymentGroupId.assign(value); }
104 
108  inline DeploymentGroupInfo& WithDeploymentGroupId(const Aws::String& value) { SetDeploymentGroupId(value); return *this;}
109 
113  inline DeploymentGroupInfo& WithDeploymentGroupId(Aws::String&& value) { SetDeploymentGroupId(value); return *this;}
114 
118  inline DeploymentGroupInfo& WithDeploymentGroupId(const char* value) { SetDeploymentGroupId(value); return *this;}
119 
123  inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
124 
128  inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
129 
133  inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
134 
138  inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
139 
143  inline DeploymentGroupInfo& WithDeploymentGroupName(const Aws::String& value) { SetDeploymentGroupName(value); return *this;}
144 
148  inline DeploymentGroupInfo& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(value); return *this;}
149 
153  inline DeploymentGroupInfo& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
154 
158  inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
159 
163  inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
164 
168  inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
169 
173  inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
174 
178  inline DeploymentGroupInfo& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
179 
183  inline DeploymentGroupInfo& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(value); return *this;}
184 
188  inline DeploymentGroupInfo& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
189 
193  inline const Aws::Vector<EC2TagFilter>& GetEc2TagFilters() const{ return m_ec2TagFilters; }
194 
198  inline void SetEc2TagFilters(const Aws::Vector<EC2TagFilter>& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters = value; }
199 
203  inline void SetEc2TagFilters(Aws::Vector<EC2TagFilter>&& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters = value; }
204 
208  inline DeploymentGroupInfo& WithEc2TagFilters(const Aws::Vector<EC2TagFilter>& value) { SetEc2TagFilters(value); return *this;}
209 
213  inline DeploymentGroupInfo& WithEc2TagFilters(Aws::Vector<EC2TagFilter>&& value) { SetEc2TagFilters(value); return *this;}
214 
218  inline DeploymentGroupInfo& AddEc2TagFilters(const EC2TagFilter& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters.push_back(value); return *this; }
219 
223  inline DeploymentGroupInfo& AddEc2TagFilters(EC2TagFilter&& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters.push_back(value); return *this; }
224 
228  inline const Aws::Vector<TagFilter>& GetOnPremisesInstanceTagFilters() const{ return m_onPremisesInstanceTagFilters; }
229 
233  inline void SetOnPremisesInstanceTagFilters(const Aws::Vector<TagFilter>& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters = value; }
234 
238  inline void SetOnPremisesInstanceTagFilters(Aws::Vector<TagFilter>&& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters = value; }
239 
243  inline DeploymentGroupInfo& WithOnPremisesInstanceTagFilters(const Aws::Vector<TagFilter>& value) { SetOnPremisesInstanceTagFilters(value); return *this;}
244 
248  inline DeploymentGroupInfo& WithOnPremisesInstanceTagFilters(Aws::Vector<TagFilter>&& value) { SetOnPremisesInstanceTagFilters(value); return *this;}
249 
253  inline DeploymentGroupInfo& AddOnPremisesInstanceTagFilters(const TagFilter& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters.push_back(value); return *this; }
254 
258  inline DeploymentGroupInfo& AddOnPremisesInstanceTagFilters(TagFilter&& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters.push_back(value); return *this; }
259 
263  inline const Aws::Vector<AutoScalingGroup>& GetAutoScalingGroups() const{ return m_autoScalingGroups; }
264 
268  inline void SetAutoScalingGroups(const Aws::Vector<AutoScalingGroup>& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = value; }
269 
273  inline void SetAutoScalingGroups(Aws::Vector<AutoScalingGroup>&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = value; }
274 
278  inline DeploymentGroupInfo& WithAutoScalingGroups(const Aws::Vector<AutoScalingGroup>& value) { SetAutoScalingGroups(value); return *this;}
279 
283  inline DeploymentGroupInfo& WithAutoScalingGroups(Aws::Vector<AutoScalingGroup>&& value) { SetAutoScalingGroups(value); return *this;}
284 
288  inline DeploymentGroupInfo& AddAutoScalingGroups(const AutoScalingGroup& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(value); return *this; }
289 
293  inline DeploymentGroupInfo& AddAutoScalingGroups(AutoScalingGroup&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(value); return *this; }
294 
298  inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
299 
303  inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
304 
308  inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
309 
313  inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); }
314 
318  inline DeploymentGroupInfo& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;}
319 
323  inline DeploymentGroupInfo& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(value); return *this;}
324 
328  inline DeploymentGroupInfo& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
329 
334  inline const RevisionLocation& GetTargetRevision() const{ return m_targetRevision; }
335 
340  inline void SetTargetRevision(const RevisionLocation& value) { m_targetRevisionHasBeenSet = true; m_targetRevision = value; }
341 
346  inline void SetTargetRevision(RevisionLocation&& value) { m_targetRevisionHasBeenSet = true; m_targetRevision = value; }
347 
352  inline DeploymentGroupInfo& WithTargetRevision(const RevisionLocation& value) { SetTargetRevision(value); return *this;}
353 
358  inline DeploymentGroupInfo& WithTargetRevision(RevisionLocation&& value) { SetTargetRevision(value); return *this;}
359 
363  inline const Aws::Vector<TriggerConfig>& GetTriggerConfigurations() const{ return m_triggerConfigurations; }
364 
368  inline void SetTriggerConfigurations(const Aws::Vector<TriggerConfig>& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations = value; }
369 
373  inline void SetTriggerConfigurations(Aws::Vector<TriggerConfig>&& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations = value; }
374 
378  inline DeploymentGroupInfo& WithTriggerConfigurations(const Aws::Vector<TriggerConfig>& value) { SetTriggerConfigurations(value); return *this;}
379 
383  inline DeploymentGroupInfo& WithTriggerConfigurations(Aws::Vector<TriggerConfig>&& value) { SetTriggerConfigurations(value); return *this;}
384 
388  inline DeploymentGroupInfo& AddTriggerConfigurations(const TriggerConfig& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations.push_back(value); return *this; }
389 
393  inline DeploymentGroupInfo& AddTriggerConfigurations(TriggerConfig&& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations.push_back(value); return *this; }
394 
395  private:
396  Aws::String m_applicationName;
397  bool m_applicationNameHasBeenSet;
398  Aws::String m_deploymentGroupId;
399  bool m_deploymentGroupIdHasBeenSet;
400  Aws::String m_deploymentGroupName;
401  bool m_deploymentGroupNameHasBeenSet;
402  Aws::String m_deploymentConfigName;
403  bool m_deploymentConfigNameHasBeenSet;
404  Aws::Vector<EC2TagFilter> m_ec2TagFilters;
405  bool m_ec2TagFiltersHasBeenSet;
406  Aws::Vector<TagFilter> m_onPremisesInstanceTagFilters;
407  bool m_onPremisesInstanceTagFiltersHasBeenSet;
408  Aws::Vector<AutoScalingGroup> m_autoScalingGroups;
409  bool m_autoScalingGroupsHasBeenSet;
410  Aws::String m_serviceRoleArn;
411  bool m_serviceRoleArnHasBeenSet;
412  RevisionLocation m_targetRevision;
413  bool m_targetRevisionHasBeenSet;
414  Aws::Vector<TriggerConfig> m_triggerConfigurations;
415  bool m_triggerConfigurationsHasBeenSet;
416  };
417 
418 } // namespace Model
419 } // namespace CodeDeploy
420 } // namespace Aws
void SetOnPremisesInstanceTagFilters(Aws::Vector< TagFilter > &&value)
void SetAutoScalingGroups(Aws::Vector< AutoScalingGroup > &&value)
DeploymentGroupInfo & WithDeploymentConfigName(const Aws::String &value)
DeploymentGroupInfo & WithDeploymentGroupId(const Aws::String &value)
const Aws::String & GetDeploymentGroupName() const
void SetDeploymentConfigName(const Aws::String &value)
DeploymentGroupInfo & WithDeploymentGroupId(Aws::String &&value)
DeploymentGroupInfo & WithDeploymentGroupName(Aws::String &&value)
const Aws::String & GetDeploymentGroupId() const
DeploymentGroupInfo & WithDeploymentConfigName(const char *value)
DeploymentGroupInfo & WithAutoScalingGroups(Aws::Vector< AutoScalingGroup > &&value)
DeploymentGroupInfo & WithTriggerConfigurations(const Aws::Vector< TriggerConfig > &value)
const RevisionLocation & GetTargetRevision() const
DeploymentGroupInfo & WithEc2TagFilters(const Aws::Vector< EC2TagFilter > &value)
void SetTriggerConfigurations(Aws::Vector< TriggerConfig > &&value)
void SetEc2TagFilters(Aws::Vector< EC2TagFilter > &&value)
DeploymentGroupInfo & AddOnPremisesInstanceTagFilters(TagFilter &&value)
DeploymentGroupInfo & WithServiceRoleArn(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DeploymentGroupInfo & WithOnPremisesInstanceTagFilters(Aws::Vector< TagFilter > &&value)
const Aws::String & GetDeploymentConfigName() const
DeploymentGroupInfo & WithDeploymentConfigName(Aws::String &&value)
DeploymentGroupInfo & AddAutoScalingGroups(AutoScalingGroup &&value)
const Aws::Vector< TriggerConfig > & GetTriggerConfigurations() const
const Aws::Vector< EC2TagFilter > & GetEc2TagFilters() const
void SetTargetRevision(const RevisionLocation &value)
DeploymentGroupInfo & WithDeploymentGroupName(const char *value)
DeploymentGroupInfo & WithTargetRevision(RevisionLocation &&value)
DeploymentGroupInfo & WithDeploymentGroupId(const char *value)
void SetAutoScalingGroups(const Aws::Vector< AutoScalingGroup > &value)
DeploymentGroupInfo & AddEc2TagFilters(const EC2TagFilter &value)
DeploymentGroupInfo & AddTriggerConfigurations(TriggerConfig &&value)
#define AWS_CODEDEPLOY_API
DeploymentGroupInfo & WithServiceRoleArn(const Aws::String &value)
void SetTargetRevision(RevisionLocation &&value)
void SetApplicationName(const Aws::String &value)
const Aws::Vector< AutoScalingGroup > & GetAutoScalingGroups() const
DeploymentGroupInfo & WithApplicationName(const Aws::String &value)
void SetOnPremisesInstanceTagFilters(const Aws::Vector< TagFilter > &value)
DeploymentGroupInfo & WithApplicationName(Aws::String &&value)
DeploymentGroupInfo & AddAutoScalingGroups(const AutoScalingGroup &value)
void SetDeploymentGroupId(const Aws::String &value)
DeploymentGroupInfo & WithAutoScalingGroups(const Aws::Vector< AutoScalingGroup > &value)
void SetTriggerConfigurations(const Aws::Vector< TriggerConfig > &value)
const Aws::String & GetServiceRoleArn() const
DeploymentGroupInfo & WithTriggerConfigurations(Aws::Vector< TriggerConfig > &&value)
DeploymentGroupInfo & WithApplicationName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< TagFilter > & GetOnPremisesInstanceTagFilters() const
const Aws::String & GetApplicationName() const
void SetDeploymentGroupName(const Aws::String &value)
DeploymentGroupInfo & AddTriggerConfigurations(const TriggerConfig &value)
DeploymentGroupInfo & AddOnPremisesInstanceTagFilters(const TagFilter &value)
DeploymentGroupInfo & WithDeploymentGroupName(const Aws::String &value)
DeploymentGroupInfo & WithOnPremisesInstanceTagFilters(const Aws::Vector< TagFilter > &value)
DeploymentGroupInfo & WithEc2TagFilters(Aws::Vector< EC2TagFilter > &&value)
void SetEc2TagFilters(const Aws::Vector< EC2TagFilter > &value)
DeploymentGroupInfo & WithTargetRevision(const RevisionLocation &value)
void SetServiceRoleArn(const Aws::String &value)
DeploymentGroupInfo & WithServiceRoleArn(const char *value)
DeploymentGroupInfo & AddEc2TagFilters(EC2TagFilter &&value)
JSON (JavaScript Object Notation).