/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about a deployment group. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeploymentGroupInfo implements Serializable, Cloneable, StructuredPojo { /** ** The application name. *
*/ private String applicationName; /** ** The deployment group ID. *
*/ private String deploymentGroupId; /** ** The deployment group name. *
*/ private String deploymentGroupName; /** ** The deployment configuration name. *
*/ private String deploymentConfigName; /** ** The Amazon EC2 tags on which to filter. The deployment group includes EC2 instances with any of the specified * tags. *
*/ 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. *
*/ private com.amazonaws.internal.SdkInternalList* A list of associated Auto Scaling groups. *
*/ private com.amazonaws.internal.SdkInternalList* A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to Amazon Web Services * services on your behalf. For more information, see Create a * Service Role for CodeDeploy in the CodeDeploy User Guide. *
*/ private String serviceRoleArn; /** ** Information about the deployment group's target revision, including type and location. *
*/ private RevisionLocation targetRevision; /** ** Information about triggers associated with the deployment group. *
*/ private com.amazonaws.internal.SdkInternalList* A list of alarms associated with the deployment group. *
*/ private AlarmConfiguration alarmConfiguration; /** ** Information about the automatic rollback configuration associated with the deployment group. *
*/ private AutoRollbackConfiguration autoRollbackConfiguration; /** ** Information about the type of deployment, either in-place or blue/green, you want to run and whether to route * deployment traffic behind a load balancer. *
*/ private DeploymentStyle deploymentStyle; /** ** 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 blue/green deployment options for a deployment group. *
*/ private BlueGreenDeploymentConfiguration blueGreenDeploymentConfiguration; /** ** Information about the load balancer to use in a deployment. *
*/ private LoadBalancerInfo loadBalancerInfo; /** ** Information about the most recent successful deployment to the deployment group. *
*/ private LastDeploymentInfo lastSuccessfulDeployment; /** ** Information about the most recent attempted deployment to the deployment group. *
*/ private LastDeploymentInfo lastAttemptedDeployment; /** ** Information about groups of tags applied to an Amazon EC2 instance. The deployment group includes only Amazon EC2 * instances identified by all of the tag groups. Cannot be used in the same call as ec2TagFilters. *
*/ private EC2TagSet ec2TagSet; /** ** Information about groups of tags applied to an on-premises instance. The deployment group includes only * on-premises instances identified by all the tag groups. Cannot be used in the same call as * onPremisesInstanceTagFilters. *
*/ private OnPremisesTagSet onPremisesTagSet; /** *
* The destination platform type for the deployment (Lambda
, Server
, or ECS
).
*
* 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>
.
*
* The application name. *
* * @param applicationName * The application name. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** ** The application name. *
* * @return The application name. */ public String getApplicationName() { return this.applicationName; } /** ** The application name. *
* * @param applicationName * The application name. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** ** The deployment group ID. *
* * @param deploymentGroupId * The deployment group ID. */ public void setDeploymentGroupId(String deploymentGroupId) { this.deploymentGroupId = deploymentGroupId; } /** ** The deployment group ID. *
* * @return The deployment group ID. */ public String getDeploymentGroupId() { return this.deploymentGroupId; } /** ** The deployment group ID. *
* * @param deploymentGroupId * The deployment group ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withDeploymentGroupId(String deploymentGroupId) { setDeploymentGroupId(deploymentGroupId); return this; } /** ** The deployment group name. *
* * @param deploymentGroupName * The deployment group name. */ public void setDeploymentGroupName(String deploymentGroupName) { this.deploymentGroupName = deploymentGroupName; } /** ** The deployment group name. *
* * @return The deployment group name. */ public String getDeploymentGroupName() { return this.deploymentGroupName; } /** ** The deployment group name. *
* * @param deploymentGroupName * The deployment group name. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withDeploymentGroupName(String deploymentGroupName) { setDeploymentGroupName(deploymentGroupName); return this; } /** ** The deployment configuration name. *
* * @param deploymentConfigName * The deployment configuration name. */ public void setDeploymentConfigName(String deploymentConfigName) { this.deploymentConfigName = deploymentConfigName; } /** ** The deployment configuration name. *
* * @return The deployment configuration name. */ public String getDeploymentConfigName() { return this.deploymentConfigName; } /** ** The deployment configuration name. *
* * @param deploymentConfigName * The deployment configuration name. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withDeploymentConfigName(String deploymentConfigName) { setDeploymentConfigName(deploymentConfigName); return this; } /** ** The Amazon EC2 tags on which to filter. The deployment group includes EC2 instances with any of the specified * tags. *
* * @return The Amazon EC2 tags on which to filter. The deployment group includes EC2 instances with any of the * specified tags. */ public java.util.List* The Amazon EC2 tags on which to filter. The deployment group includes EC2 instances with any of the specified * tags. *
* * @param ec2TagFilters * The Amazon EC2 tags on which to filter. The deployment group includes EC2 instances with any of the * specified tags. */ public void setEc2TagFilters(java.util.Collection* The Amazon EC2 tags on which to filter. The deployment group includes EC2 instances with any of the specified * tags. *
** 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 EC2 instances with any of the * specified tags. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo 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 EC2 instances with any of the specified * tags. *
* * @param ec2TagFilters * The Amazon EC2 tags on which to filter. The deployment group includes EC2 instances with any of the * specified tags. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo 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. *
* * @return The on-premises instance tags on which to filter. The deployment group includes on-premises instances * with any of the specified tags. */ 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. *
* * @param onPremisesInstanceTagFilters * The on-premises instance tags on which to filter. The deployment group includes on-premises instances with * any of the specified tags. */ 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. *
** 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. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo 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. *
* * @param onPremisesInstanceTagFilters * The on-premises instance tags on which to filter. The deployment group includes on-premises instances with * any of the specified tags. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withOnPremisesInstanceTagFilters(java.util.Collection* A list of associated Auto Scaling groups. *
* * @return A list of associated Auto Scaling groups. */ public java.util.List* A list of associated Auto Scaling groups. *
* * @param autoScalingGroups * A list of associated Auto Scaling groups. */ public void setAutoScalingGroups(java.util.Collection* A list of associated 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 Auto Scaling groups. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withAutoScalingGroups(AutoScalingGroup... autoScalingGroups) { if (this.autoScalingGroups == null) { setAutoScalingGroups(new com.amazonaws.internal.SdkInternalList* A list of associated Auto Scaling groups. *
* * @param autoScalingGroups * A list of associated Auto Scaling groups. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withAutoScalingGroups(java.util.Collection* A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to Amazon Web Services * services on your behalf. For more information, see Create a * Service Role for CodeDeploy in the CodeDeploy User Guide. *
* * @param serviceRoleArn * A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to Amazon Web * Services services on your behalf. For more information, see Create a Service Role for CodeDeploy in the CodeDeploy User Guide. */ public void setServiceRoleArn(String serviceRoleArn) { this.serviceRoleArn = serviceRoleArn; } /** ** A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to Amazon Web Services * services on your behalf. For more information, see Create a * Service Role for CodeDeploy in the CodeDeploy User Guide. *
* * @return A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to Amazon Web * Services services on your behalf. For more information, see Create a Service Role for CodeDeploy in the CodeDeploy User Guide. */ public String getServiceRoleArn() { return this.serviceRoleArn; } /** ** A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to Amazon Web Services * services on your behalf. For more information, see Create a * Service Role for CodeDeploy in the CodeDeploy User Guide. *
* * @param serviceRoleArn * A service role Amazon Resource Name (ARN) that grants CodeDeploy permission to make calls to Amazon Web * Services services on your behalf. For more information, see Create a Service Role for CodeDeploy in the CodeDeploy User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withServiceRoleArn(String serviceRoleArn) { setServiceRoleArn(serviceRoleArn); return this; } /** ** Information about the deployment group's target revision, including type and location. *
* * @param targetRevision * Information about the deployment group's target revision, including type and location. */ public void setTargetRevision(RevisionLocation targetRevision) { this.targetRevision = targetRevision; } /** ** Information about the deployment group's target revision, including type and location. *
* * @return Information about the deployment group's target revision, including type and location. */ public RevisionLocation getTargetRevision() { return this.targetRevision; } /** ** Information about the deployment group's target revision, including type and location. *
* * @param targetRevision * Information about the deployment group's target revision, including type and location. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withTargetRevision(RevisionLocation targetRevision) { setTargetRevision(targetRevision); return this; } /** ** Information about triggers associated with the deployment group. *
* * @return Information about triggers associated with the deployment group. */ public java.util.List* Information about triggers associated with the deployment group. *
* * @param triggerConfigurations * Information about triggers associated with the deployment group. */ public void setTriggerConfigurations(java.util.Collection* Information about triggers associated with the deployment group. *
** 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 associated with the deployment group. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withTriggerConfigurations(TriggerConfig... triggerConfigurations) { if (this.triggerConfigurations == null) { setTriggerConfigurations(new com.amazonaws.internal.SdkInternalList* Information about triggers associated with the deployment group. *
* * @param triggerConfigurations * Information about triggers associated with the deployment group. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withTriggerConfigurations(java.util.Collection* A list of alarms associated with the deployment group. *
* * @param alarmConfiguration * A list of alarms associated with the deployment group. */ public void setAlarmConfiguration(AlarmConfiguration alarmConfiguration) { this.alarmConfiguration = alarmConfiguration; } /** ** A list of alarms associated with the deployment group. *
* * @return A list of alarms associated with the deployment group. */ public AlarmConfiguration getAlarmConfiguration() { return this.alarmConfiguration; } /** ** A list of alarms associated with the deployment group. *
* * @param alarmConfiguration * A list of alarms associated with the deployment group. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withAlarmConfiguration(AlarmConfiguration alarmConfiguration) { setAlarmConfiguration(alarmConfiguration); return this; } /** ** Information about the automatic rollback configuration associated with the deployment group. *
* * @param autoRollbackConfiguration * Information about the automatic rollback configuration associated with the deployment group. */ public void setAutoRollbackConfiguration(AutoRollbackConfiguration autoRollbackConfiguration) { this.autoRollbackConfiguration = autoRollbackConfiguration; } /** ** Information about the automatic rollback configuration associated with the deployment group. *
* * @return Information about the automatic rollback configuration associated with the deployment group. */ public AutoRollbackConfiguration getAutoRollbackConfiguration() { return this.autoRollbackConfiguration; } /** ** Information about the automatic rollback configuration associated with the deployment group. *
* * @param autoRollbackConfiguration * Information about the automatic rollback configuration associated with the deployment group. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withAutoRollbackConfiguration(AutoRollbackConfiguration autoRollbackConfiguration) { setAutoRollbackConfiguration(autoRollbackConfiguration); return this; } /** ** Information about the type of deployment, either in-place or blue/green, you want to run and whether to route * deployment traffic behind a load balancer. *
* * @param deploymentStyle * Information about the type of deployment, either in-place or blue/green, 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, either in-place or blue/green, you want to run and whether to route * deployment traffic behind a load balancer. *
* * @return Information about the type of deployment, either in-place or blue/green, 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, either in-place or blue/green, you want to run and whether to route * deployment traffic behind a load balancer. *
* * @param deploymentStyle * Information about the type of deployment, either in-place or blue/green, 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 DeploymentGroupInfo withDeploymentStyle(DeploymentStyle deploymentStyle) { setDeploymentStyle(deploymentStyle); 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 DeploymentGroupInfo 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 DeploymentGroupInfo withOutdatedInstancesStrategy(OutdatedInstancesStrategy outdatedInstancesStrategy) {
this.outdatedInstancesStrategy = outdatedInstancesStrategy.toString();
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 DeploymentGroupInfo withBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfiguration blueGreenDeploymentConfiguration) { setBlueGreenDeploymentConfiguration(blueGreenDeploymentConfiguration); return this; } /** ** Information about the load balancer to use in a deployment. *
* * @param loadBalancerInfo * Information about the load balancer to use in a deployment. */ public void setLoadBalancerInfo(LoadBalancerInfo loadBalancerInfo) { this.loadBalancerInfo = loadBalancerInfo; } /** ** Information about the load balancer to use in a deployment. *
* * @return Information about the load balancer to use in a deployment. */ public LoadBalancerInfo getLoadBalancerInfo() { return this.loadBalancerInfo; } /** ** Information about the load balancer to use in a deployment. *
* * @param loadBalancerInfo * Information about the load balancer to use in a deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withLoadBalancerInfo(LoadBalancerInfo loadBalancerInfo) { setLoadBalancerInfo(loadBalancerInfo); return this; } /** ** Information about the most recent successful deployment to the deployment group. *
* * @param lastSuccessfulDeployment * Information about the most recent successful deployment to the deployment group. */ public void setLastSuccessfulDeployment(LastDeploymentInfo lastSuccessfulDeployment) { this.lastSuccessfulDeployment = lastSuccessfulDeployment; } /** ** Information about the most recent successful deployment to the deployment group. *
* * @return Information about the most recent successful deployment to the deployment group. */ public LastDeploymentInfo getLastSuccessfulDeployment() { return this.lastSuccessfulDeployment; } /** ** Information about the most recent successful deployment to the deployment group. *
* * @param lastSuccessfulDeployment * Information about the most recent successful deployment to the deployment group. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withLastSuccessfulDeployment(LastDeploymentInfo lastSuccessfulDeployment) { setLastSuccessfulDeployment(lastSuccessfulDeployment); return this; } /** ** Information about the most recent attempted deployment to the deployment group. *
* * @param lastAttemptedDeployment * Information about the most recent attempted deployment to the deployment group. */ public void setLastAttemptedDeployment(LastDeploymentInfo lastAttemptedDeployment) { this.lastAttemptedDeployment = lastAttemptedDeployment; } /** ** Information about the most recent attempted deployment to the deployment group. *
* * @return Information about the most recent attempted deployment to the deployment group. */ public LastDeploymentInfo getLastAttemptedDeployment() { return this.lastAttemptedDeployment; } /** ** Information about the most recent attempted deployment to the deployment group. *
* * @param lastAttemptedDeployment * Information about the most recent attempted deployment to the deployment group. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withLastAttemptedDeployment(LastDeploymentInfo lastAttemptedDeployment) { setLastAttemptedDeployment(lastAttemptedDeployment); return this; } /** ** Information about groups of tags applied to an Amazon EC2 instance. The deployment group includes only Amazon EC2 * instances identified by all of the tag groups. Cannot be used in the same call as ec2TagFilters. *
* * @param ec2TagSet * Information about groups of tags applied to an Amazon EC2 instance. The deployment group includes only * Amazon EC2 instances identified by all of the tag groups. Cannot be used in the same call as * ec2TagFilters. */ public void setEc2TagSet(EC2TagSet ec2TagSet) { this.ec2TagSet = ec2TagSet; } /** ** Information about groups of tags applied to an Amazon EC2 instance. The deployment group includes only Amazon EC2 * instances identified by all of the tag groups. Cannot be used in the same call as ec2TagFilters. *
* * @return Information about groups of tags applied to an Amazon EC2 instance. The deployment group includes only * Amazon EC2 instances identified by all of the tag groups. Cannot be used in the same call as * ec2TagFilters. */ public EC2TagSet getEc2TagSet() { return this.ec2TagSet; } /** ** Information about groups of tags applied to an Amazon EC2 instance. The deployment group includes only Amazon EC2 * instances identified by all of the tag groups. Cannot be used in the same call as ec2TagFilters. *
* * @param ec2TagSet * Information about groups of tags applied to an Amazon EC2 instance. The deployment group includes only * Amazon EC2 instances identified by all of the tag groups. Cannot be used in the same call as * ec2TagFilters. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withEc2TagSet(EC2TagSet ec2TagSet) { setEc2TagSet(ec2TagSet); return this; } /** ** Information about groups of tags applied to an on-premises instance. The deployment group includes only * on-premises instances identified by all the tag groups. Cannot be used in the same call as * onPremisesInstanceTagFilters. *
* * @param onPremisesTagSet * Information about groups of tags applied to an on-premises instance. The deployment group includes only * on-premises instances identified by all the tag groups. Cannot be used in the same call as * onPremisesInstanceTagFilters. */ public void setOnPremisesTagSet(OnPremisesTagSet onPremisesTagSet) { this.onPremisesTagSet = onPremisesTagSet; } /** ** Information about groups of tags applied to an on-premises instance. The deployment group includes only * on-premises instances identified by all the tag groups. Cannot be used in the same call as * onPremisesInstanceTagFilters. *
* * @return Information about groups of tags applied to an on-premises instance. The deployment group includes only * on-premises instances identified by all the tag groups. Cannot be used in the same call as * onPremisesInstanceTagFilters. */ public OnPremisesTagSet getOnPremisesTagSet() { return this.onPremisesTagSet; } /** ** Information about groups of tags applied to an on-premises instance. The deployment group includes only * on-premises instances identified by all the tag groups. Cannot be used in the same call as * onPremisesInstanceTagFilters. *
* * @param onPremisesTagSet * Information about groups of tags applied to an on-premises instance. The deployment group includes only * on-premises instances identified by all the tag groups. Cannot be used in the same call as * onPremisesInstanceTagFilters. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentGroupInfo withOnPremisesTagSet(OnPremisesTagSet onPremisesTagSet) { setOnPremisesTagSet(onPremisesTagSet); return this; } /** *
* The destination platform type for the deployment (Lambda
, Server
, or ECS
).
*
Lambda
, Server
, or
* ECS
).
* @see ComputePlatform
*/
public void setComputePlatform(String computePlatform) {
this.computePlatform = computePlatform;
}
/**
*
* The destination platform type for the deployment (Lambda
, Server
, or ECS
).
*
Lambda
, Server
, or
* ECS
).
* @see ComputePlatform
*/
public String getComputePlatform() {
return this.computePlatform;
}
/**
*
* The destination platform type for the deployment (Lambda
, Server
, or ECS
).
*
Lambda
, Server
, or
* ECS
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see ComputePlatform
*/
public DeploymentGroupInfo withComputePlatform(String computePlatform) {
setComputePlatform(computePlatform);
return this;
}
/**
*
* The destination platform type for the deployment (Lambda
, Server
, or ECS
).
*
Lambda
, Server
, or
* ECS
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see ComputePlatform
*/
public DeploymentGroupInfo withComputePlatform(ComputePlatform computePlatform) {
this.computePlatform = computePlatform.toString();
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 DeploymentGroupInfo 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 DeploymentGroupInfo withEcsServices(java.util.Collection