Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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;
 
 
Container for the parameters to the CreateDeployment operation.

Deploys an application revision through the specified deployment group.

 
 public class CreateDeploymentRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

Constraints:
Length: 1 - 100

 
     private String applicationName;

    
The deployment group's name.

Constraints:
Length: 1 - 100

 
     private String deploymentGroupName;

    
The type of revision to deploy, along with information about the revision's location.
 
     private RevisionLocation revision;

    
The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

Constraints:
Length: 1 - 100

 
     private String deploymentConfigName;

    
A comment about the deployment.
 
     private String description;

    
If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

 
     private Boolean ignoreApplicationStopFailures;

    
The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

Constraints:
Length: 1 - 100

Returns:
The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.
 
     public String getApplicationName() {
         return ;
     }
    
    
The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

Constraints:
Length: 1 - 100

Parameters:
applicationName The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.
    public void setApplicationName(String applicationName) {
        this. = applicationName;
    }
    
    
The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
applicationName The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateDeploymentRequest withApplicationName(String applicationName) {
        this. = applicationName;
        return this;
    }

    
The deployment group's name.

Constraints:
Length: 1 - 100

Returns:
The deployment group's name.
    public String getDeploymentGroupName() {
        return ;
    }
    
    
The deployment group's name.

Constraints:
Length: 1 - 100

Parameters:
deploymentGroupName The deployment group's name.
    public void setDeploymentGroupName(String deploymentGroupName) {
        this. = deploymentGroupName;
    }
    
    
The deployment group's name.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
deploymentGroupName The deployment group's name.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateDeploymentRequest withDeploymentGroupName(String deploymentGroupName) {
        this. = deploymentGroupName;
        return this;
    }

    
The type of revision to deploy, along with information about the revision's location.

Returns:
The type of revision to deploy, along with information about the revision's location.
    public RevisionLocation getRevision() {
        return ;
    }
    
    
The type of revision to deploy, along with information about the revision's location.

Parameters:
revision The type of revision to deploy, along with information about the revision's location.
    public void setRevision(RevisionLocation revision) {
        this. = revision;
    }
    
    
The type of revision to deploy, along with information about the revision's location.

Returns a reference to this object so that method calls can be chained together.

Parameters:
revision The type of revision to deploy, along with information about the revision's location.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = revision;
        return this;
    }

    
The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

Constraints:
Length: 1 - 100

Returns:
The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

    public String getDeploymentConfigName() {
        return ;
    }
    
    
The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

Constraints:
Length: 1 - 100

Parameters:
deploymentConfigName The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

    public void setDeploymentConfigName(String deploymentConfigName) {
        this. = deploymentConfigName;
    }
    
    
The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
deploymentConfigName The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateDeploymentRequest withDeploymentConfigName(String deploymentConfigName) {
        this. = deploymentConfigName;
        return this;
    }

    
A comment about the deployment.

Returns:
A comment about the deployment.
    public String getDescription() {
        return ;
    }
    
    
A comment about the deployment.

Parameters:
description A comment about the deployment.
    public void setDescription(String description) {
        this. = description;
    }
    
    
A comment about the deployment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description A comment about the deployment.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateDeploymentRequest withDescription(String description) {
        this. = description;
        return this;
    }

    
If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

Returns:
If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

        return ;
    }
    
    
If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

Parameters:
ignoreApplicationStopFailures If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

    public void setIgnoreApplicationStopFailures(Boolean ignoreApplicationStopFailures) {
        this. = ignoreApplicationStopFailures;
    }
    
    
If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ignoreApplicationStopFailures If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateDeploymentRequest withIgnoreApplicationStopFailures(Boolean ignoreApplicationStopFailures) {
        this. = ignoreApplicationStopFailures;
        return this;
    }

    
If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

Returns:
If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

        return ;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getApplicationName() != nullsb.append("ApplicationName: " + getApplicationName() + ",");
        if (getDeploymentGroupName() != nullsb.append("DeploymentGroupName: " + getDeploymentGroupName() + ",");
        if (getRevision() != nullsb.append("Revision: " + getRevision() + ",");
        if (getDeploymentConfigName() != nullsb.append("DeploymentConfigName: " + getDeploymentConfigName() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        if (isIgnoreApplicationStopFailures() != nullsb.append("IgnoreApplicationStopFailures: " + isIgnoreApplicationStopFailures() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); 
        hashCode = prime * hashCode + ((getDeploymentGroupName() == null) ? 0 : getDeploymentGroupName().hashCode()); 
        hashCode = prime * hashCode + ((getRevision() == null) ? 0 : getRevision().hashCode()); 
        hashCode = prime * hashCode + ((getDeploymentConfigName() == null) ? 0 : getDeploymentConfigName().hashCode()); 
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
        hashCode = prime * hashCode + ((isIgnoreApplicationStopFailures() == null) ? 0 : isIgnoreApplicationStopFailures().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof CreateDeploymentRequest == falsereturn false;
        CreateDeploymentRequest other = (CreateDeploymentRequest)obj;
        
        if (other.getApplicationName() == null ^ this.getApplicationName() == nullreturn false;
        if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == falsereturn false
        if (other.getDeploymentGroupName() == null ^ this.getDeploymentGroupName() == nullreturn false;
        if (other.getDeploymentGroupName() != null && other.getDeploymentGroupName().equals(this.getDeploymentGroupName()) == falsereturn false
        if (other.getRevision() == null ^ this.getRevision() == nullreturn false;
        if (other.getRevision() != null && other.getRevision().equals(this.getRevision()) == falsereturn false
        if (other.getDeploymentConfigName() == null ^ this.getDeploymentConfigName() == nullreturn false;
        if (other.getDeploymentConfigName() != null && other.getDeploymentConfigName().equals(this.getDeploymentConfigName()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        if (other.isIgnoreApplicationStopFailures() == null ^ this.isIgnoreApplicationStopFailures() == nullreturn false;
        if (other.isIgnoreApplicationStopFailures() != null && other.isIgnoreApplicationStopFailures().equals(this.isIgnoreApplicationStopFailures()) == falsereturn false
        return true;
    }
    
    @Override
    public CreateDeploymentRequest clone() {
        
            return (CreateDeploymentRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X