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 RegisterApplicationRevision operation.

Registers with AWS CodeDeploy a revision for the specified application.

 
 public class RegisterApplicationRevisionRequest 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;

    
A comment about the revision.
 
     private String description;

    
Information about the application revision to register, including the revision's type and its location.
 
     private RevisionLocation revision;

    
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 RegisterApplicationRevisionRequest withApplicationName(String applicationName) {
         this. = applicationName;
         return this;
     }

    
A comment about the revision.

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

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

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

Parameters:
description A comment about the revision.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = description;
        return this;
    }

    
Information about the application revision to register, including the revision's type and its location.

Returns:
Information about the application revision to register, including the revision's type and its location.
    public RevisionLocation getRevision() {
        return ;
    }
    
    
Information about the application revision to register, including the revision's type and its location.

Parameters:
revision Information about the application revision to register, including the revision's type and its location.
    public void setRevision(RevisionLocation revision) {
        this. = revision;
    }
    
    
Information about the application revision to register, including the revision's type and its location.

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

Parameters:
revision Information about the application revision to register, including the revision's type and its location.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = revision;
        return this;
    }

    
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 (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        if (getRevision() != nullsb.append("Revision: " + getRevision() );
        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 + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
        hashCode = prime * hashCode + ((getRevision() == null) ? 0 : getRevision().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof RegisterApplicationRevisionRequest == falsereturn false;
        
        if (other.getApplicationName() == null ^ this.getApplicationName() == nullreturn false;
        if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        if (other.getRevision() == null ^ this.getRevision() == nullreturn false;
        if (other.getRevision() != null && other.getRevision().equals(this.getRevision()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (RegisterApplicationRevisionRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X