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;
 

Information about an application.

 
 public class ApplicationInfo implements SerializableCloneable {

    
The application ID.
 
     private String applicationId;

    
The application name.

Constraints:
Length: 1 - 100

 
     private String applicationName;

    
The time that the application was created.
 
     private java.util.Date createTime;

    
True if the user has authenticated with GitHub for the specified application; otherwise, false.
 
     private Boolean linkedToGitHub;

    
The application ID.

Returns:
The application ID.
 
     public String getApplicationId() {
         return ;
     }
    
    
The application ID.

Parameters:
applicationId The application ID.
 
     public void setApplicationId(String applicationId) {
         this. = applicationId;
     }
    
    
The application ID.

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

Parameters:
applicationId The application ID.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ApplicationInfo withApplicationId(String applicationId) {
         this. = applicationId;
         return this;
     }

    
The application name.

Constraints:
Length: 1 - 100

Returns:
The application name.
 
     public String getApplicationName() {
         return ;
     }
    
    
The application name.

Constraints:
Length: 1 - 100

Parameters:
applicationName The application name.
    public void setApplicationName(String applicationName) {
        this. = applicationName;
    }
    
    
The application name.

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

Constraints:
Length: 1 - 100

Parameters:
applicationName The application name.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ApplicationInfo withApplicationName(String applicationName) {
        this. = applicationName;
        return this;
    }

    
The time that the application was created.

Returns:
The time that the application was created.
    public java.util.Date getCreateTime() {
        return ;
    }
    
    
The time that the application was created.

Parameters:
createTime The time that the application was created.
    public void setCreateTime(java.util.Date createTime) {
        this. = createTime;
    }
    
    
The time that the application was created.

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

Parameters:
createTime The time that the application was created.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ApplicationInfo withCreateTime(java.util.Date createTime) {
        this. = createTime;
        return this;
    }

    
True if the user has authenticated with GitHub for the specified application; otherwise, false.

Returns:
True if the user has authenticated with GitHub for the specified application; otherwise, false.
    public Boolean isLinkedToGitHub() {
        return ;
    }
    
    
True if the user has authenticated with GitHub for the specified application; otherwise, false.

Parameters:
linkedToGitHub True if the user has authenticated with GitHub for the specified application; otherwise, false.
    public void setLinkedToGitHub(Boolean linkedToGitHub) {
        this. = linkedToGitHub;
    }
    
    
True if the user has authenticated with GitHub for the specified application; otherwise, false.

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

Parameters:
linkedToGitHub True if the user has authenticated with GitHub for the specified application; otherwise, false.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ApplicationInfo withLinkedToGitHub(Boolean linkedToGitHub) {
        this. = linkedToGitHub;
        return this;
    }

    
True if the user has authenticated with GitHub for the specified application; otherwise, false.

Returns:
True if the user has authenticated with GitHub for the specified application; otherwise, false.
    public Boolean getLinkedToGitHub() {
        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 (getApplicationId() != nullsb.append("ApplicationId: " + getApplicationId() + ",");
        if (getApplicationName() != nullsb.append("ApplicationName: " + getApplicationName() + ",");
        if (getCreateTime() != nullsb.append("CreateTime: " + getCreateTime() + ",");
        if (isLinkedToGitHub() != nullsb.append("LinkedToGitHub: " + isLinkedToGitHub() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getApplicationId() == null) ? 0 : getApplicationId().hashCode()); 
        hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); 
        hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); 
        hashCode = prime * hashCode + ((isLinkedToGitHub() == null) ? 0 : isLinkedToGitHub().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ApplicationInfo == falsereturn false;
        ApplicationInfo other = (ApplicationInfo)obj;
        
        if (other.getApplicationId() == null ^ this.getApplicationId() == nullreturn false;
        if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == falsereturn false
        if (other.getApplicationName() == null ^ this.getApplicationName() == nullreturn false;
        if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == falsereturn false
        if (other.getCreateTime() == null ^ this.getCreateTime() == nullreturn false;
        if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == falsereturn false
        if (other.isLinkedToGitHub() == null ^ this.isLinkedToGitHub() == nullreturn false;
        if (other.isLinkedToGitHub() != null && other.isLinkedToGitHub().equals(this.isLinkedToGitHub()) == falsereturn false
        return true;
    }
    
    @Override
    public ApplicationInfo clone() {
        try {
            return (ApplicationInfosuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X