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

com.amazonaws.services.resiliencehub.model.AppVersionSummary Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * Copyright 2019-2024 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.resiliencehub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Version of an application. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AppVersionSummary implements Serializable, Cloneable, StructuredPojo { /** *

* Version of an application. *

*/ private String appVersion; /** *

* Creation time of the application version. *

*/ private java.util.Date creationTime; /** *

* Identifier of the application version. *

*/ private Long identifier; /** *

* Name of the application version. *

*/ private String versionName; /** *

* Version of an application. *

* * @param appVersion * Version of an application. */ public void setAppVersion(String appVersion) { this.appVersion = appVersion; } /** *

* Version of an application. *

* * @return Version of an application. */ public String getAppVersion() { return this.appVersion; } /** *

* Version of an application. *

* * @param appVersion * Version of an application. * @return Returns a reference to this object so that method calls can be chained together. */ public AppVersionSummary withAppVersion(String appVersion) { setAppVersion(appVersion); return this; } /** *

* Creation time of the application version. *

* * @param creationTime * Creation time of the application version. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* Creation time of the application version. *

* * @return Creation time of the application version. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* Creation time of the application version. *

* * @param creationTime * Creation time of the application version. * @return Returns a reference to this object so that method calls can be chained together. */ public AppVersionSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* Identifier of the application version. *

* * @param identifier * Identifier of the application version. */ public void setIdentifier(Long identifier) { this.identifier = identifier; } /** *

* Identifier of the application version. *

* * @return Identifier of the application version. */ public Long getIdentifier() { return this.identifier; } /** *

* Identifier of the application version. *

* * @param identifier * Identifier of the application version. * @return Returns a reference to this object so that method calls can be chained together. */ public AppVersionSummary withIdentifier(Long identifier) { setIdentifier(identifier); return this; } /** *

* Name of the application version. *

* * @param versionName * Name of the application version. */ public void setVersionName(String versionName) { this.versionName = versionName; } /** *

* Name of the application version. *

* * @return Name of the application version. */ public String getVersionName() { return this.versionName; } /** *

* Name of the application version. *

* * @param versionName * Name of the application version. * @return Returns a reference to this object so that method calls can be chained together. */ public AppVersionSummary withVersionName(String versionName) { setVersionName(versionName); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAppVersion() != null) sb.append("AppVersion: ").append(getAppVersion()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getIdentifier() != null) sb.append("Identifier: ").append(getIdentifier()).append(","); if (getVersionName() != null) sb.append("VersionName: ").append(getVersionName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AppVersionSummary == false) return false; AppVersionSummary other = (AppVersionSummary) obj; if (other.getAppVersion() == null ^ this.getAppVersion() == null) return false; if (other.getAppVersion() != null && other.getAppVersion().equals(this.getAppVersion()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getIdentifier() == null ^ this.getIdentifier() == null) return false; if (other.getIdentifier() != null && other.getIdentifier().equals(this.getIdentifier()) == false) return false; if (other.getVersionName() == null ^ this.getVersionName() == null) return false; if (other.getVersionName() != null && other.getVersionName().equals(this.getVersionName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppVersion() == null) ? 0 : getAppVersion().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getIdentifier() == null) ? 0 : getIdentifier().hashCode()); hashCode = prime * hashCode + ((getVersionName() == null) ? 0 : getVersionName().hashCode()); return hashCode; } @Override public AppVersionSummary clone() { try { return (AppVersionSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.resiliencehub.model.transform.AppVersionSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy