/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codedeploy.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Represents the input of a CreateDeploymentGroup
operation.
*
* The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account. *
*/ private String applicationName; /** ** The name of a new deployment group for the specified application. *
*/ private String deploymentGroupName; /** ** If specified, the deployment configuration name can be either one of the predefined configurations provided with * CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration * operation. *
*
* CodeDeployDefault.OneAtATime
is the default deployment configuration. It is used if a configuration
* isn't specified for the deployment or deployment group.
*
* For more information about the predefined deployment configurations in CodeDeploy, see Working with * Deployment Configurations in CodeDeploy in the CodeDeploy User Guide. *
*/ private String deploymentConfigName; /** ** The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of the * specified tags. Cannot be used in the same call as ec2TagSet. *
*/ private com.amazonaws.internal.SdkInternalList
* The on-premises instance tags on which to filter. The deployment group includes on-premises instances with any of
* the specified tags. Cannot be used in the same call as OnPremisesTagSet
.
*
* A list of associated Amazon EC2 Auto Scaling groups. *
*/ private com.amazonaws.internal.SdkInternalList* A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when interacting * with Amazon Web Services services. *
*/ private String serviceRoleArn; /** ** Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for an * CodeDeploy Event in the CodeDeploy User Guide. *
*/ private com.amazonaws.internal.SdkInternalList* Information to add about Amazon CloudWatch alarms when the deployment group is created. *
*/ private AlarmConfiguration alarmConfiguration; /** ** Configuration information for an automatic rollback that is added when a deployment group is created. *
*/ private AutoRollbackConfiguration autoRollbackConfiguration; /** ** Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed * application revision. *
*
* If this option is set to UPDATE
or is unspecified, CodeDeploy initiates one or more 'auto-update
* outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.
*
* If this option is set to IGNORE
, CodeDeploy does not initiate a deployment to update the new Amazon
* EC2 instances. This may result in instances having different revisions.
*
* Information about the type of deployment, in-place or blue/green, that you want to run and whether to route * deployment traffic behind a load balancer. *
*/ private DeploymentStyle deploymentStyle; /** ** Information about blue/green deployment options for a deployment group. *
*/ private BlueGreenDeploymentConfiguration blueGreenDeploymentConfiguration; /** ** Information about the load balancer used in a deployment. *
*/ private LoadBalancerInfo loadBalancerInfo; /** *
* Information about groups of tags applied to Amazon EC2 instances. The deployment group includes only Amazon EC2
* instances identified by all the tag groups. Cannot be used in the same call as ec2TagFilters
.
*
* The target Amazon ECS services in the deployment group. This applies only to deployment groups that use the
* Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name
* pair using the format <clustername>:<servicename>
.
*
* Information about groups of tags applied to on-premises instances. The deployment group includes only on-premises
* instances identified by all of the tag groups. Cannot be used in the same call as
* onPremisesInstanceTagFilters
.
*
* The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each tag * consists of a key and an optional value, both of which you define. *
*/ private com.amazonaws.internal.SdkInternalList* The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account. *
* * @param applicationName * The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** ** The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account. *
* * @return The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account. */ public String getApplicationName() { return this.applicationName; } /** ** The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account. *
* * @param applicationName * The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** ** The name of a new deployment group for the specified application. *
* * @param deploymentGroupName * The name of a new deployment group for the specified application. */ public void setDeploymentGroupName(String deploymentGroupName) { this.deploymentGroupName = deploymentGroupName; } /** ** The name of a new deployment group for the specified application. *
* * @return The name of a new deployment group for the specified application. */ public String getDeploymentGroupName() { return this.deploymentGroupName; } /** ** The name of a new deployment group for the specified application. *
* * @param deploymentGroupName * The name of a new deployment group for the specified application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withDeploymentGroupName(String deploymentGroupName) { setDeploymentGroupName(deploymentGroupName); return this; } /** ** If specified, the deployment configuration name can be either one of the predefined configurations provided with * CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration * operation. *
*
* CodeDeployDefault.OneAtATime
is the default deployment configuration. It is used if a configuration
* isn't specified for the deployment or deployment group.
*
* For more information about the predefined deployment configurations in CodeDeploy, see Working with * Deployment Configurations in CodeDeploy in the CodeDeploy User Guide. *
* * @param deploymentConfigName * If specified, the deployment configuration name can be either one of the predefined configurations * provided with CodeDeploy or a custom deployment configuration that you create by calling the create * deployment configuration operation. *
* CodeDeployDefault.OneAtATime
is the default deployment configuration. It is used if a
* configuration isn't specified for the deployment or deployment group.
*
* For more information about the predefined deployment configurations in CodeDeploy, see Working with * Deployment Configurations in CodeDeploy in the CodeDeploy User Guide. */ public void setDeploymentConfigName(String deploymentConfigName) { this.deploymentConfigName = deploymentConfigName; } /** *
* If specified, the deployment configuration name can be either one of the predefined configurations provided with * CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration * operation. *
*
* CodeDeployDefault.OneAtATime
is the default deployment configuration. It is used if a configuration
* isn't specified for the deployment or deployment group.
*
* For more information about the predefined deployment configurations in CodeDeploy, see Working with * Deployment Configurations in CodeDeploy in the CodeDeploy User Guide. *
* * @return If specified, the deployment configuration name can be either one of the predefined configurations * provided with CodeDeploy or a custom deployment configuration that you create by calling the create * deployment configuration operation. *
* CodeDeployDefault.OneAtATime
is the default deployment configuration. It is used if a
* configuration isn't specified for the deployment or deployment group.
*
* For more information about the predefined deployment configurations in CodeDeploy, see Working * with Deployment Configurations in CodeDeploy in the CodeDeploy User Guide. */ public String getDeploymentConfigName() { return this.deploymentConfigName; } /** *
* If specified, the deployment configuration name can be either one of the predefined configurations provided with * CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration * operation. *
*
* CodeDeployDefault.OneAtATime
is the default deployment configuration. It is used if a configuration
* isn't specified for the deployment or deployment group.
*
* For more information about the predefined deployment configurations in CodeDeploy, see Working with * Deployment Configurations in CodeDeploy in the CodeDeploy User Guide. *
* * @param deploymentConfigName * If specified, the deployment configuration name can be either one of the predefined configurations * provided with CodeDeploy or a custom deployment configuration that you create by calling the create * deployment configuration operation. *
* CodeDeployDefault.OneAtATime
is the default deployment configuration. It is used if a
* configuration isn't specified for the deployment or deployment group.
*
* For more information about the predefined deployment configurations in CodeDeploy, see Working with * Deployment Configurations in CodeDeploy in the CodeDeploy User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withDeploymentConfigName(String deploymentConfigName) { setDeploymentConfigName(deploymentConfigName); return this; } /** *
* The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of the * specified tags. Cannot be used in the same call as ec2TagSet. *
* * @return The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of * the specified tags. Cannot be used in the same call as ec2TagSet. */ public java.util.List* The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of the * specified tags. Cannot be used in the same call as ec2TagSet. *
* * @param ec2TagFilters * The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of the * specified tags. Cannot be used in the same call as ec2TagSet. */ public void setEc2TagFilters(java.util.Collection* The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of the * specified tags. Cannot be used in the same call as ec2TagSet. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEc2TagFilters(java.util.Collection)} or {@link #withEc2TagFilters(java.util.Collection)} if you want * to override the existing values. *
* * @param ec2TagFilters * The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of the * specified tags. Cannot be used in the same call as ec2TagSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withEc2TagFilters(EC2TagFilter... ec2TagFilters) { if (this.ec2TagFilters == null) { setEc2TagFilters(new com.amazonaws.internal.SdkInternalList* The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of the * specified tags. Cannot be used in the same call as ec2TagSet. *
* * @param ec2TagFilters * The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of the * specified tags. Cannot be used in the same call as ec2TagSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withEc2TagFilters(java.util.Collection
* The on-premises instance tags on which to filter. The deployment group includes on-premises instances with any of
* the specified tags. Cannot be used in the same call as OnPremisesTagSet
.
*
OnPremisesTagSet
.
*/
public java.util.List
* The on-premises instance tags on which to filter. The deployment group includes on-premises instances with any of
* the specified tags. Cannot be used in the same call as OnPremisesTagSet
.
*
OnPremisesTagSet
.
*/
public void setOnPremisesInstanceTagFilters(java.util.Collection
* The on-premises instance tags on which to filter. The deployment group includes on-premises instances with any of
* the specified tags. Cannot be used in the same call as OnPremisesTagSet
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOnPremisesInstanceTagFilters(java.util.Collection)} or * {@link #withOnPremisesInstanceTagFilters(java.util.Collection)} if you want to override the existing values. *
* * @param onPremisesInstanceTagFilters * The on-premises instance tags on which to filter. The deployment group includes on-premises instances with * any of the specified tags. Cannot be used in the same call asOnPremisesTagSet
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentGroupRequest withOnPremisesInstanceTagFilters(TagFilter... onPremisesInstanceTagFilters) {
if (this.onPremisesInstanceTagFilters == null) {
setOnPremisesInstanceTagFilters(new com.amazonaws.internal.SdkInternalList
* The on-premises instance tags on which to filter. The deployment group includes on-premises instances with any of
* the specified tags. Cannot be used in the same call as OnPremisesTagSet
.
*
OnPremisesTagSet
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentGroupRequest withOnPremisesInstanceTagFilters(java.util.Collection* A list of associated Amazon EC2 Auto Scaling groups. *
* * @return A list of associated Amazon EC2 Auto Scaling groups. */ public java.util.List* A list of associated Amazon EC2 Auto Scaling groups. *
* * @param autoScalingGroups * A list of associated Amazon EC2 Auto Scaling groups. */ public void setAutoScalingGroups(java.util.Collection* A list of associated Amazon EC2 Auto Scaling groups. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAutoScalingGroups(java.util.Collection)} or {@link #withAutoScalingGroups(java.util.Collection)} if * you want to override the existing values. *
* * @param autoScalingGroups * A list of associated Amazon EC2 Auto Scaling groups. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withAutoScalingGroups(String... autoScalingGroups) { if (this.autoScalingGroups == null) { setAutoScalingGroups(new com.amazonaws.internal.SdkInternalList* A list of associated Amazon EC2 Auto Scaling groups. *
* * @param autoScalingGroups * A list of associated Amazon EC2 Auto Scaling groups. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withAutoScalingGroups(java.util.Collection* A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when interacting * with Amazon Web Services services. *
* * @param serviceRoleArn * A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when * interacting with Amazon Web Services services. */ public void setServiceRoleArn(String serviceRoleArn) { this.serviceRoleArn = serviceRoleArn; } /** ** A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when interacting * with Amazon Web Services services. *
* * @return A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when * interacting with Amazon Web Services services. */ public String getServiceRoleArn() { return this.serviceRoleArn; } /** ** A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when interacting * with Amazon Web Services services. *
* * @param serviceRoleArn * A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when * interacting with Amazon Web Services services. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withServiceRoleArn(String serviceRoleArn) { setServiceRoleArn(serviceRoleArn); return this; } /** ** Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for an * CodeDeploy Event in the CodeDeploy User Guide. *
* * @return Information about triggers to create when the deployment group is created. For examples, see Create a Trigger * for an CodeDeploy Event in the CodeDeploy User Guide. */ public java.util.List* Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for an * CodeDeploy Event in the CodeDeploy User Guide. *
* * @param triggerConfigurations * Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for * an CodeDeploy Event in the CodeDeploy User Guide. */ public void setTriggerConfigurations(java.util.Collection* Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for an * CodeDeploy Event in the CodeDeploy User Guide. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTriggerConfigurations(java.util.Collection)} or * {@link #withTriggerConfigurations(java.util.Collection)} if you want to override the existing values. *
* * @param triggerConfigurations * Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for * an CodeDeploy Event in the CodeDeploy User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withTriggerConfigurations(TriggerConfig... triggerConfigurations) { if (this.triggerConfigurations == null) { setTriggerConfigurations(new com.amazonaws.internal.SdkInternalList* Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for an * CodeDeploy Event in the CodeDeploy User Guide. *
* * @param triggerConfigurations * Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for * an CodeDeploy Event in the CodeDeploy User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withTriggerConfigurations(java.util.Collection* Information to add about Amazon CloudWatch alarms when the deployment group is created. *
* * @param alarmConfiguration * Information to add about Amazon CloudWatch alarms when the deployment group is created. */ public void setAlarmConfiguration(AlarmConfiguration alarmConfiguration) { this.alarmConfiguration = alarmConfiguration; } /** ** Information to add about Amazon CloudWatch alarms when the deployment group is created. *
* * @return Information to add about Amazon CloudWatch alarms when the deployment group is created. */ public AlarmConfiguration getAlarmConfiguration() { return this.alarmConfiguration; } /** ** Information to add about Amazon CloudWatch alarms when the deployment group is created. *
* * @param alarmConfiguration * Information to add about Amazon CloudWatch alarms when the deployment group is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withAlarmConfiguration(AlarmConfiguration alarmConfiguration) { setAlarmConfiguration(alarmConfiguration); return this; } /** ** Configuration information for an automatic rollback that is added when a deployment group is created. *
* * @param autoRollbackConfiguration * Configuration information for an automatic rollback that is added when a deployment group is created. */ public void setAutoRollbackConfiguration(AutoRollbackConfiguration autoRollbackConfiguration) { this.autoRollbackConfiguration = autoRollbackConfiguration; } /** ** Configuration information for an automatic rollback that is added when a deployment group is created. *
* * @return Configuration information for an automatic rollback that is added when a deployment group is created. */ public AutoRollbackConfiguration getAutoRollbackConfiguration() { return this.autoRollbackConfiguration; } /** ** Configuration information for an automatic rollback that is added when a deployment group is created. *
* * @param autoRollbackConfiguration * Configuration information for an automatic rollback that is added when a deployment group is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withAutoRollbackConfiguration(AutoRollbackConfiguration autoRollbackConfiguration) { setAutoRollbackConfiguration(autoRollbackConfiguration); return this; } /** ** Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed * application revision. *
*
* If this option is set to UPDATE
or is unspecified, CodeDeploy initiates one or more 'auto-update
* outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.
*
* If this option is set to IGNORE
, CodeDeploy does not initiate a deployment to update the new Amazon
* EC2 instances. This may result in instances having different revisions.
*
* If this option is set to UPDATE
or is unspecified, CodeDeploy initiates one or more
* 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon
* EC2 instances.
*
* If this option is set to IGNORE
, CodeDeploy does not initiate a deployment to update the new
* Amazon EC2 instances. This may result in instances having different revisions.
* @see OutdatedInstancesStrategy
*/
public void setOutdatedInstancesStrategy(String outdatedInstancesStrategy) {
this.outdatedInstancesStrategy = outdatedInstancesStrategy;
}
/**
*
* Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed * application revision. *
*
* If this option is set to UPDATE
or is unspecified, CodeDeploy initiates one or more 'auto-update
* outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.
*
* If this option is set to IGNORE
, CodeDeploy does not initiate a deployment to update the new Amazon
* EC2 instances. This may result in instances having different revisions.
*
* If this option is set to UPDATE
or is unspecified, CodeDeploy initiates one or more
* 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon
* EC2 instances.
*
* If this option is set to IGNORE
, CodeDeploy does not initiate a deployment to update the new
* Amazon EC2 instances. This may result in instances having different revisions.
* @see OutdatedInstancesStrategy
*/
public String getOutdatedInstancesStrategy() {
return this.outdatedInstancesStrategy;
}
/**
*
* Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed * application revision. *
*
* If this option is set to UPDATE
or is unspecified, CodeDeploy initiates one or more 'auto-update
* outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.
*
* If this option is set to IGNORE
, CodeDeploy does not initiate a deployment to update the new Amazon
* EC2 instances. This may result in instances having different revisions.
*
* If this option is set to UPDATE
or is unspecified, CodeDeploy initiates one or more
* 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon
* EC2 instances.
*
* If this option is set to IGNORE
, CodeDeploy does not initiate a deployment to update the new
* Amazon EC2 instances. This may result in instances having different revisions.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OutdatedInstancesStrategy
*/
public CreateDeploymentGroupRequest withOutdatedInstancesStrategy(String outdatedInstancesStrategy) {
setOutdatedInstancesStrategy(outdatedInstancesStrategy);
return this;
}
/**
*
* Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed * application revision. *
*
* If this option is set to UPDATE
or is unspecified, CodeDeploy initiates one or more 'auto-update
* outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.
*
* If this option is set to IGNORE
, CodeDeploy does not initiate a deployment to update the new Amazon
* EC2 instances. This may result in instances having different revisions.
*
* If this option is set to UPDATE
or is unspecified, CodeDeploy initiates one or more
* 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon
* EC2 instances.
*
* If this option is set to IGNORE
, CodeDeploy does not initiate a deployment to update the new
* Amazon EC2 instances. This may result in instances having different revisions.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OutdatedInstancesStrategy
*/
public CreateDeploymentGroupRequest withOutdatedInstancesStrategy(OutdatedInstancesStrategy outdatedInstancesStrategy) {
this.outdatedInstancesStrategy = outdatedInstancesStrategy.toString();
return this;
}
/**
*
* Information about the type of deployment, in-place or blue/green, that you want to run and whether to route * deployment traffic behind a load balancer. *
* * @param deploymentStyle * Information about the type of deployment, in-place or blue/green, that you want to run and whether to * route deployment traffic behind a load balancer. */ public void setDeploymentStyle(DeploymentStyle deploymentStyle) { this.deploymentStyle = deploymentStyle; } /** ** Information about the type of deployment, in-place or blue/green, that you want to run and whether to route * deployment traffic behind a load balancer. *
* * @return Information about the type of deployment, in-place or blue/green, that you want to run and whether to * route deployment traffic behind a load balancer. */ public DeploymentStyle getDeploymentStyle() { return this.deploymentStyle; } /** ** Information about the type of deployment, in-place or blue/green, that you want to run and whether to route * deployment traffic behind a load balancer. *
* * @param deploymentStyle * Information about the type of deployment, in-place or blue/green, that you want to run and whether to * route deployment traffic behind a load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withDeploymentStyle(DeploymentStyle deploymentStyle) { setDeploymentStyle(deploymentStyle); return this; } /** ** Information about blue/green deployment options for a deployment group. *
* * @param blueGreenDeploymentConfiguration * Information about blue/green deployment options for a deployment group. */ public void setBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfiguration blueGreenDeploymentConfiguration) { this.blueGreenDeploymentConfiguration = blueGreenDeploymentConfiguration; } /** ** Information about blue/green deployment options for a deployment group. *
* * @return Information about blue/green deployment options for a deployment group. */ public BlueGreenDeploymentConfiguration getBlueGreenDeploymentConfiguration() { return this.blueGreenDeploymentConfiguration; } /** ** Information about blue/green deployment options for a deployment group. *
* * @param blueGreenDeploymentConfiguration * Information about blue/green deployment options for a deployment group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfiguration blueGreenDeploymentConfiguration) { setBlueGreenDeploymentConfiguration(blueGreenDeploymentConfiguration); return this; } /** ** Information about the load balancer used in a deployment. *
* * @param loadBalancerInfo * Information about the load balancer used in a deployment. */ public void setLoadBalancerInfo(LoadBalancerInfo loadBalancerInfo) { this.loadBalancerInfo = loadBalancerInfo; } /** ** Information about the load balancer used in a deployment. *
* * @return Information about the load balancer used in a deployment. */ public LoadBalancerInfo getLoadBalancerInfo() { return this.loadBalancerInfo; } /** ** Information about the load balancer used in a deployment. *
* * @param loadBalancerInfo * Information about the load balancer used in a deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withLoadBalancerInfo(LoadBalancerInfo loadBalancerInfo) { setLoadBalancerInfo(loadBalancerInfo); return this; } /** *
* Information about groups of tags applied to Amazon EC2 instances. The deployment group includes only Amazon EC2
* instances identified by all the tag groups. Cannot be used in the same call as ec2TagFilters
.
*
ec2TagFilters
.
*/
public void setEc2TagSet(EC2TagSet ec2TagSet) {
this.ec2TagSet = ec2TagSet;
}
/**
*
* Information about groups of tags applied to Amazon EC2 instances. The deployment group includes only Amazon EC2
* instances identified by all the tag groups. Cannot be used in the same call as ec2TagFilters
.
*
ec2TagFilters
.
*/
public EC2TagSet getEc2TagSet() {
return this.ec2TagSet;
}
/**
*
* Information about groups of tags applied to Amazon EC2 instances. The deployment group includes only Amazon EC2
* instances identified by all the tag groups. Cannot be used in the same call as ec2TagFilters
.
*
ec2TagFilters
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentGroupRequest withEc2TagSet(EC2TagSet ec2TagSet) {
setEc2TagSet(ec2TagSet);
return this;
}
/**
*
* The target Amazon ECS services in the deployment group. This applies only to deployment groups that use the
* Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name
* pair using the format <clustername>:<servicename>
.
*
<clustername>:<servicename>
.
*/
public java.util.List
* The target Amazon ECS services in the deployment group. This applies only to deployment groups that use the
* Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name
* pair using the format <clustername>:<servicename>
.
*
<clustername>:<servicename>
.
*/
public void setEcsServices(java.util.Collection
* The target Amazon ECS services in the deployment group. This applies only to deployment groups that use the
* Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name
* pair using the format <clustername>:<servicename>
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEcsServices(java.util.Collection)} or {@link #withEcsServices(java.util.Collection)} if you want to * override the existing values. *
* * @param ecsServices * The target Amazon ECS services in the deployment group. This applies only to deployment groups that use * the Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and * service name pair using the format<clustername>:<servicename>
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentGroupRequest withEcsServices(ECSService... ecsServices) {
if (this.ecsServices == null) {
setEcsServices(new com.amazonaws.internal.SdkInternalList
* The target Amazon ECS services in the deployment group. This applies only to deployment groups that use the
* Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name
* pair using the format <clustername>:<servicename>
.
*
<clustername>:<servicename>
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentGroupRequest withEcsServices(java.util.Collection
* Information about groups of tags applied to on-premises instances. The deployment group includes only on-premises
* instances identified by all of the tag groups. Cannot be used in the same call as
* onPremisesInstanceTagFilters
.
*
onPremisesInstanceTagFilters
.
*/
public void setOnPremisesTagSet(OnPremisesTagSet onPremisesTagSet) {
this.onPremisesTagSet = onPremisesTagSet;
}
/**
*
* Information about groups of tags applied to on-premises instances. The deployment group includes only on-premises
* instances identified by all of the tag groups. Cannot be used in the same call as
* onPremisesInstanceTagFilters
.
*
onPremisesInstanceTagFilters
.
*/
public OnPremisesTagSet getOnPremisesTagSet() {
return this.onPremisesTagSet;
}
/**
*
* Information about groups of tags applied to on-premises instances. The deployment group includes only on-premises
* instances identified by all of the tag groups. Cannot be used in the same call as
* onPremisesInstanceTagFilters
.
*
onPremisesInstanceTagFilters
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentGroupRequest withOnPremisesTagSet(OnPremisesTagSet onPremisesTagSet) {
setOnPremisesTagSet(onPremisesTagSet);
return this;
}
/**
* * The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each tag * consists of a key and an optional value, both of which you define. *
* * @return The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. * Each tag consists of a key and an optional value, both of which you define. */ public java.util.List* The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each tag * consists of a key and an optional value, both of which you define. *
* * @param tags * The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each * tag consists of a key and an optional value, both of which you define. */ public void setTags(java.util.Collection* The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each tag * consists of a key and an optional value, both of which you define. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each * tag consists of a key and an optional value, both of which you define. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each tag * consists of a key and an optional value, both of which you define. *
* * @param tags * The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each * tag consists of a key and an optional value, both of which you define. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentGroupRequest withTags(java.util.Collection