/* * Copyright 2016-2021 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.ecs.cicd.model; import java.io.Serializable; import com.amazonaws.services.codedeploy.model.BlueGreenDeploymentConfiguration; import com.amazonaws.services.codedeploy.model.DeploymentStyle; import com.amazonaws.services.codedeploy.model.ECSService; import com.amazonaws.services.codedeploy.model.LoadBalancerInfo; public class UpdateDeploymentGroupRequest implements Serializable, Cloneable { /** *
* The application name that corresponds to the deployment group to update. *
*/ private String applicationName; /** ** The current name of the deployment group. *
*/ private String currentDeploymentGroupName; /** ** The new name of the deployment group, if you want to change it. *
*/ private String newDeploymentGroupName; /** ** The replacement deployment configuration name to use, if you want to change it. *
*/ private String deploymentConfigName; private String serviceRoleArn; 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; private com.amazonaws.internal.SdkInternalList* The application name that corresponds to the deployment group to update. *
* * @return The application name that corresponds to the deployment group to update. */ public String getApplicationName() { return this.applicationName; } /** ** The application name that corresponds to the deployment group to update. *
* * @param applicationName * The application name that corresponds to the deployment group to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDeploymentGroupRequest withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** ** The current name of the deployment group. *
* * @param currentDeploymentGroupName * The current name of the deployment group. */ public void setCurrentDeploymentGroupName(String currentDeploymentGroupName) { this.currentDeploymentGroupName = currentDeploymentGroupName; } /** ** The current name of the deployment group. *
* * @return The current name of the deployment group. */ public String getCurrentDeploymentGroupName() { return this.currentDeploymentGroupName; } /** ** The current name of the deployment group. *
* * @param currentDeploymentGroupName * The current name of the deployment group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDeploymentGroupRequest withCurrentDeploymentGroupName(String currentDeploymentGroupName) { setCurrentDeploymentGroupName(currentDeploymentGroupName); return this; } /** ** The new name of the deployment group, if you want to change it. *
* * @param newDeploymentGroupName * The new name of the deployment group, if you want to change it. */ public void setNewDeploymentGroupName(String newDeploymentGroupName) { this.newDeploymentGroupName = newDeploymentGroupName; } /** ** The new name of the deployment group, if you want to change it. *
* * @return The new name of the deployment group, if you want to change it. */ public String getNewDeploymentGroupName() { return this.newDeploymentGroupName; } /** ** The new name of the deployment group, if you want to change it. *
* * @param newDeploymentGroupName * The new name of the deployment group, if you want to change it. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDeploymentGroupRequest withNewDeploymentGroupName(String newDeploymentGroupName) { setNewDeploymentGroupName(newDeploymentGroupName); return this; } /** ** The replacement deployment configuration name to use, if you want to change it. *
* * @param deploymentConfigName * The replacement deployment configuration name to use, if you want to change it. */ public void setDeploymentConfigName(String deploymentConfigName) { this.deploymentConfigName = deploymentConfigName; } /** ** The replacement deployment configuration name to use, if you want to change it. *
* * @return The replacement deployment configuration name to use, if you want to change it. */ public String getDeploymentConfigName() { return this.deploymentConfigName; } /** ** The replacement deployment configuration name to use, if you want to change it. *
* * @param deploymentConfigName * The replacement deployment configuration name to use, if you want to change it. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDeploymentGroupRequest withDeploymentConfigName(String deploymentConfigName) { setDeploymentConfigName(deploymentConfigName); return this; } /** ** A replacement ARN for the service role, if you want to change it. *
* * @param serviceRoleArn * A replacement ARN for the service role, if you want to change it. */ public void setServiceRoleArn(String serviceRoleArn) { this.serviceRoleArn = serviceRoleArn; } /** ** A replacement ARN for the service role, if you want to change it. *
* * @return A replacement ARN for the service role, if you want to change it. */ public String getServiceRoleArn() { return this.serviceRoleArn; } /** ** A replacement ARN for the service role, if you want to change it. *
* * @param serviceRoleArn * A replacement ARN for the service role, if you want to change it. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDeploymentGroupRequest withServiceRoleArn(String serviceRoleArn) { setServiceRoleArn(serviceRoleArn); 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 UpdateDeploymentGroupRequest 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 UpdateDeploymentGroupRequest 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 UpdateDeploymentGroupRequest withLoadBalancerInfo(LoadBalancerInfo loadBalancerInfo) { setLoadBalancerInfo(loadBalancerInfo); return this; } 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 UpdateDeploymentGroupRequest 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 UpdateDeploymentGroupRequest withEcsServices(java.util.Collection