All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codedeploy.model.UpdateDeploymentGroupRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS CodeDeploy module holds the client classes that are used for communicating with AWS CodeDeploy Service

There is a newer version: 1.12.782
Show newest version
/*
 * Copyright 2010-2016 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 com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Represents the input of an update deployment group operation. *

*/ public class UpdateDeploymentGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The application name corresponding 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; /** *

* The replacement set of Amazon EC2 tags on which to filter, if you want to * change them. To keep the existing tags, enter their names. To remove * tags, do not enter any tag names. *

*/ private com.amazonaws.internal.SdkInternalList ec2TagFilters; /** *

* The replacement set of on-premises instance tags on which to filter, if * you want to change them. To keep the existing tags, enter their names. To * remove tags, do not enter any tag names. *

*/ private com.amazonaws.internal.SdkInternalList onPremisesInstanceTagFilters; /** *

* The replacement list of Auto Scaling groups to be included in the * deployment group, if you want to change them. To keep the Auto Scaling * groups, enter their names. To remove Auto Scaling groups, do not enter * any Auto Scaling group names. *

*/ private com.amazonaws.internal.SdkInternalList autoScalingGroups; /** *

* A replacement ARN for the service role, if you want to change it. *

*/ private String serviceRoleArn; /** *

* Information about triggers to change when the deployment group is * updated. *

*/ private com.amazonaws.internal.SdkInternalList triggerConfigurations; /** *

* The application name corresponding to the deployment group to update. *

* * @param applicationName * The application name corresponding to the deployment group to * update. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* The application name corresponding to the deployment group to update. *

* * @return The application name corresponding to the deployment group to * update. */ public String getApplicationName() { return this.applicationName; } /** *

* The application name corresponding to the deployment group to update. *

* * @param applicationName * The application name corresponding 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; } /** *

* The replacement set of Amazon EC2 tags on which to filter, if you want to * change them. To keep the existing tags, enter their names. To remove * tags, do not enter any tag names. *

* * @return The replacement set of Amazon EC2 tags on which to filter, if you * want to change them. To keep the existing tags, enter their * names. To remove tags, do not enter any tag names. */ public java.util.List getEc2TagFilters() { if (ec2TagFilters == null) { ec2TagFilters = new com.amazonaws.internal.SdkInternalList(); } return ec2TagFilters; } /** *

* The replacement set of Amazon EC2 tags on which to filter, if you want to * change them. To keep the existing tags, enter their names. To remove * tags, do not enter any tag names. *

* * @param ec2TagFilters * The replacement set of Amazon EC2 tags on which to filter, if you * want to change them. To keep the existing tags, enter their names. * To remove tags, do not enter any tag names. */ public void setEc2TagFilters( java.util.Collection ec2TagFilters) { if (ec2TagFilters == null) { this.ec2TagFilters = null; return; } this.ec2TagFilters = new com.amazonaws.internal.SdkInternalList( ec2TagFilters); } /** *

* The replacement set of Amazon EC2 tags on which to filter, if you want to * change them. To keep the existing tags, enter their names. To remove * tags, do not enter any tag names. *

*

* 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 replacement set of Amazon EC2 tags on which to filter, if you * want to change them. To keep the existing tags, enter their names. * To remove tags, do not enter any tag names. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateDeploymentGroupRequest withEc2TagFilters( EC2TagFilter... ec2TagFilters) { if (this.ec2TagFilters == null) { setEc2TagFilters(new com.amazonaws.internal.SdkInternalList( ec2TagFilters.length)); } for (EC2TagFilter ele : ec2TagFilters) { this.ec2TagFilters.add(ele); } return this; } /** *

* The replacement set of Amazon EC2 tags on which to filter, if you want to * change them. To keep the existing tags, enter their names. To remove * tags, do not enter any tag names. *

* * @param ec2TagFilters * The replacement set of Amazon EC2 tags on which to filter, if you * want to change them. To keep the existing tags, enter their names. * To remove tags, do not enter any tag names. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateDeploymentGroupRequest withEc2TagFilters( java.util.Collection ec2TagFilters) { setEc2TagFilters(ec2TagFilters); return this; } /** *

* The replacement set of on-premises instance tags on which to filter, if * you want to change them. To keep the existing tags, enter their names. To * remove tags, do not enter any tag names. *

* * @return The replacement set of on-premises instance tags on which to * filter, if you want to change them. To keep the existing tags, * enter their names. To remove tags, do not enter any tag names. */ public java.util.List getOnPremisesInstanceTagFilters() { if (onPremisesInstanceTagFilters == null) { onPremisesInstanceTagFilters = new com.amazonaws.internal.SdkInternalList(); } return onPremisesInstanceTagFilters; } /** *

* The replacement set of on-premises instance tags on which to filter, if * you want to change them. To keep the existing tags, enter their names. To * remove tags, do not enter any tag names. *

* * @param onPremisesInstanceTagFilters * The replacement set of on-premises instance tags on which to * filter, if you want to change them. To keep the existing tags, * enter their names. To remove tags, do not enter any tag names. */ public void setOnPremisesInstanceTagFilters( java.util.Collection onPremisesInstanceTagFilters) { if (onPremisesInstanceTagFilters == null) { this.onPremisesInstanceTagFilters = null; return; } this.onPremisesInstanceTagFilters = new com.amazonaws.internal.SdkInternalList( onPremisesInstanceTagFilters); } /** *

* The replacement set of on-premises instance tags on which to filter, if * you want to change them. To keep the existing tags, enter their names. To * remove tags, do not enter any tag names. *

*

* 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 replacement set of on-premises instance tags on which to * filter, if you want to change them. To keep the existing tags, * enter their names. To remove tags, do not enter any tag names. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateDeploymentGroupRequest withOnPremisesInstanceTagFilters( TagFilter... onPremisesInstanceTagFilters) { if (this.onPremisesInstanceTagFilters == null) { setOnPremisesInstanceTagFilters(new com.amazonaws.internal.SdkInternalList( onPremisesInstanceTagFilters.length)); } for (TagFilter ele : onPremisesInstanceTagFilters) { this.onPremisesInstanceTagFilters.add(ele); } return this; } /** *

* The replacement set of on-premises instance tags on which to filter, if * you want to change them. To keep the existing tags, enter their names. To * remove tags, do not enter any tag names. *

* * @param onPremisesInstanceTagFilters * The replacement set of on-premises instance tags on which to * filter, if you want to change them. To keep the existing tags, * enter their names. To remove tags, do not enter any tag names. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateDeploymentGroupRequest withOnPremisesInstanceTagFilters( java.util.Collection onPremisesInstanceTagFilters) { setOnPremisesInstanceTagFilters(onPremisesInstanceTagFilters); return this; } /** *

* The replacement list of Auto Scaling groups to be included in the * deployment group, if you want to change them. To keep the Auto Scaling * groups, enter their names. To remove Auto Scaling groups, do not enter * any Auto Scaling group names. *

* * @return The replacement list of Auto Scaling groups to be included in the * deployment group, if you want to change them. To keep the Auto * Scaling groups, enter their names. To remove Auto Scaling groups, * do not enter any Auto Scaling group names. */ public java.util.List getAutoScalingGroups() { if (autoScalingGroups == null) { autoScalingGroups = new com.amazonaws.internal.SdkInternalList(); } return autoScalingGroups; } /** *

* The replacement list of Auto Scaling groups to be included in the * deployment group, if you want to change them. To keep the Auto Scaling * groups, enter their names. To remove Auto Scaling groups, do not enter * any Auto Scaling group names. *

* * @param autoScalingGroups * The replacement list of Auto Scaling groups to be included in the * deployment group, if you want to change them. To keep the Auto * Scaling groups, enter their names. To remove Auto Scaling groups, * do not enter any Auto Scaling group names. */ public void setAutoScalingGroups( java.util.Collection autoScalingGroups) { if (autoScalingGroups == null) { this.autoScalingGroups = null; return; } this.autoScalingGroups = new com.amazonaws.internal.SdkInternalList( autoScalingGroups); } /** *

* The replacement list of Auto Scaling groups to be included in the * deployment group, if you want to change them. To keep the Auto Scaling * groups, enter their names. To remove Auto Scaling groups, do not enter * any Auto Scaling group names. *

*

* 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 * The replacement list of Auto Scaling groups to be included in the * deployment group, if you want to change them. To keep the Auto * Scaling groups, enter their names. To remove Auto Scaling groups, * do not enter any Auto Scaling group names. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateDeploymentGroupRequest withAutoScalingGroups( String... autoScalingGroups) { if (this.autoScalingGroups == null) { setAutoScalingGroups(new com.amazonaws.internal.SdkInternalList( autoScalingGroups.length)); } for (String ele : autoScalingGroups) { this.autoScalingGroups.add(ele); } return this; } /** *

* The replacement list of Auto Scaling groups to be included in the * deployment group, if you want to change them. To keep the Auto Scaling * groups, enter their names. To remove Auto Scaling groups, do not enter * any Auto Scaling group names. *

* * @param autoScalingGroups * The replacement list of Auto Scaling groups to be included in the * deployment group, if you want to change them. To keep the Auto * Scaling groups, enter their names. To remove Auto Scaling groups, * do not enter any Auto Scaling group names. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateDeploymentGroupRequest withAutoScalingGroups( java.util.Collection autoScalingGroups) { setAutoScalingGroups(autoScalingGroups); 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 triggers to change when the deployment group is * updated. *

* * @return Information about triggers to change when the deployment group is * updated. */ public java.util.List getTriggerConfigurations() { if (triggerConfigurations == null) { triggerConfigurations = new com.amazonaws.internal.SdkInternalList(); } return triggerConfigurations; } /** *

* Information about triggers to change when the deployment group is * updated. *

* * @param triggerConfigurations * Information about triggers to change when the deployment group is * updated. */ public void setTriggerConfigurations( java.util.Collection triggerConfigurations) { if (triggerConfigurations == null) { this.triggerConfigurations = null; return; } this.triggerConfigurations = new com.amazonaws.internal.SdkInternalList( triggerConfigurations); } /** *

* Information about triggers to change when the deployment group is * updated. *

*

* 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 change when the deployment group is * updated. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateDeploymentGroupRequest withTriggerConfigurations( TriggerConfig... triggerConfigurations) { if (this.triggerConfigurations == null) { setTriggerConfigurations(new com.amazonaws.internal.SdkInternalList( triggerConfigurations.length)); } for (TriggerConfig ele : triggerConfigurations) { this.triggerConfigurations.add(ele); } return this; } /** *

* Information about triggers to change when the deployment group is * updated. *

* * @param triggerConfigurations * Information about triggers to change when the deployment group is * updated. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateDeploymentGroupRequest withTriggerConfigurations( java.util.Collection triggerConfigurations) { setTriggerConfigurations(triggerConfigurations); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getApplicationName() != null) sb.append("ApplicationName: " + getApplicationName() + ","); if (getCurrentDeploymentGroupName() != null) sb.append("CurrentDeploymentGroupName: " + getCurrentDeploymentGroupName() + ","); if (getNewDeploymentGroupName() != null) sb.append("NewDeploymentGroupName: " + getNewDeploymentGroupName() + ","); if (getDeploymentConfigName() != null) sb.append("DeploymentConfigName: " + getDeploymentConfigName() + ","); if (getEc2TagFilters() != null) sb.append("Ec2TagFilters: " + getEc2TagFilters() + ","); if (getOnPremisesInstanceTagFilters() != null) sb.append("OnPremisesInstanceTagFilters: " + getOnPremisesInstanceTagFilters() + ","); if (getAutoScalingGroups() != null) sb.append("AutoScalingGroups: " + getAutoScalingGroups() + ","); if (getServiceRoleArn() != null) sb.append("ServiceRoleArn: " + getServiceRoleArn() + ","); if (getTriggerConfigurations() != null) sb.append("TriggerConfigurations: " + getTriggerConfigurations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateDeploymentGroupRequest == false) return false; UpdateDeploymentGroupRequest other = (UpdateDeploymentGroupRequest) obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getCurrentDeploymentGroupName() == null ^ this.getCurrentDeploymentGroupName() == null) return false; if (other.getCurrentDeploymentGroupName() != null && other.getCurrentDeploymentGroupName().equals( this.getCurrentDeploymentGroupName()) == false) return false; if (other.getNewDeploymentGroupName() == null ^ this.getNewDeploymentGroupName() == null) return false; if (other.getNewDeploymentGroupName() != null && other.getNewDeploymentGroupName().equals( this.getNewDeploymentGroupName()) == false) return false; if (other.getDeploymentConfigName() == null ^ this.getDeploymentConfigName() == null) return false; if (other.getDeploymentConfigName() != null && other.getDeploymentConfigName().equals( this.getDeploymentConfigName()) == false) return false; if (other.getEc2TagFilters() == null ^ this.getEc2TagFilters() == null) return false; if (other.getEc2TagFilters() != null && other.getEc2TagFilters().equals(this.getEc2TagFilters()) == false) return false; if (other.getOnPremisesInstanceTagFilters() == null ^ this.getOnPremisesInstanceTagFilters() == null) return false; if (other.getOnPremisesInstanceTagFilters() != null && other.getOnPremisesInstanceTagFilters().equals( this.getOnPremisesInstanceTagFilters()) == false) return false; if (other.getAutoScalingGroups() == null ^ this.getAutoScalingGroups() == null) return false; if (other.getAutoScalingGroups() != null && other.getAutoScalingGroups().equals( this.getAutoScalingGroups()) == false) return false; if (other.getServiceRoleArn() == null ^ this.getServiceRoleArn() == null) return false; if (other.getServiceRoleArn() != null && other.getServiceRoleArn().equals(this.getServiceRoleArn()) == false) return false; if (other.getTriggerConfigurations() == null ^ this.getTriggerConfigurations() == null) return false; if (other.getTriggerConfigurations() != null && other.getTriggerConfigurations().equals( this.getTriggerConfigurations()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName() .hashCode()); hashCode = prime * hashCode + ((getCurrentDeploymentGroupName() == null) ? 0 : getCurrentDeploymentGroupName().hashCode()); hashCode = prime * hashCode + ((getNewDeploymentGroupName() == null) ? 0 : getNewDeploymentGroupName().hashCode()); hashCode = prime * hashCode + ((getDeploymentConfigName() == null) ? 0 : getDeploymentConfigName().hashCode()); hashCode = prime * hashCode + ((getEc2TagFilters() == null) ? 0 : getEc2TagFilters() .hashCode()); hashCode = prime * hashCode + ((getOnPremisesInstanceTagFilters() == null) ? 0 : getOnPremisesInstanceTagFilters().hashCode()); hashCode = prime * hashCode + ((getAutoScalingGroups() == null) ? 0 : getAutoScalingGroups().hashCode()); hashCode = prime * hashCode + ((getServiceRoleArn() == null) ? 0 : getServiceRoleArn() .hashCode()); hashCode = prime * hashCode + ((getTriggerConfigurations() == null) ? 0 : getTriggerConfigurations().hashCode()); return hashCode; } @Override public UpdateDeploymentGroupRequest clone() { return (UpdateDeploymentGroupRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy