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

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

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-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;

/**
 * 

* Information about an application. *

*/ public class ApplicationInfo implements Serializable, Cloneable { /** *

* The application ID. *

*/ private String applicationId; /** *

* The application name. *

*/ private String applicationName; /** *

* The time at which 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. *

* * @param applicationId * The application ID. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** *

* The application ID. *

* * @return The application ID. */ public String getApplicationId() { return this.applicationId; } /** *

* The application ID. *

* * @param applicationId * The application ID. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationInfo withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* The application name. *

* * @param applicationName * The application name. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* The application name. *

* * @return The application name. */ public String getApplicationName() { return this.applicationName; } /** *

* The application name. *

* * @param applicationName * The application name. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationInfo withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** *

* The time at which the application was created. *

* * @param createTime * The time at which the application was created. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** *

* The time at which the application was created. *

* * @return The time at which the application was created. */ public java.util.Date getCreateTime() { return this.createTime; } /** *

* The time at which the application was created. *

* * @param createTime * The time at which the application was created. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationInfo withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** *

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

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

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

* * @return True if the user has authenticated with GitHub for the specified * application; otherwise, false. */ public Boolean getLinkedToGitHub() { return this.linkedToGitHub; } /** *

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

* * @param linkedToGitHub * True if the user has authenticated with GitHub for the specified * application; otherwise, false. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationInfo withLinkedToGitHub(Boolean linkedToGitHub) { setLinkedToGitHub(linkedToGitHub); return this; } /** *

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

* * @return True if the user has authenticated with GitHub for the specified * application; otherwise, false. */ public Boolean isLinkedToGitHub() { return this.linkedToGitHub; } /** * 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 (getApplicationId() != null) sb.append("ApplicationId: " + getApplicationId() + ","); if (getApplicationName() != null) sb.append("ApplicationName: " + getApplicationName() + ","); if (getCreateTime() != null) sb.append("CreateTime: " + getCreateTime() + ","); if (getLinkedToGitHub() != null) sb.append("LinkedToGitHub: " + getLinkedToGitHub()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ApplicationInfo == false) return false; ApplicationInfo other = (ApplicationInfo) obj; if (other.getApplicationId() == null ^ this.getApplicationId() == null) return false; if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == false) return false; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getCreateTime() == null ^ this.getCreateTime() == null) return false; if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false) return false; if (other.getLinkedToGitHub() == null ^ this.getLinkedToGitHub() == null) return false; if (other.getLinkedToGitHub() != null && other.getLinkedToGitHub().equals(this.getLinkedToGitHub()) == false) return false; return true; } @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 + ((getLinkedToGitHub() == null) ? 0 : getLinkedToGitHub() .hashCode()); return hashCode; } @Override public ApplicationInfo clone() { try { return (ApplicationInfo) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy