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

com.amazonaws.services.elasticsearch.model.PackageVersionHistory Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Elasticsearch Service module holds the client classes that are used for communicating with Amazon Elasticsearch 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.elasticsearch.model;

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

/**
 * 

* Details of a package version. *

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

* Version of the package. *

*/ private String packageVersion; /** *

* A message associated with the version. *

*/ private String commitMessage; /** *

* Timestamp which tells creation time of the package version. *

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

* Version of the package. *

* * @param packageVersion * Version of the package. */ public void setPackageVersion(String packageVersion) { this.packageVersion = packageVersion; } /** *

* Version of the package. *

* * @return Version of the package. */ public String getPackageVersion() { return this.packageVersion; } /** *

* Version of the package. *

* * @param packageVersion * Version of the package. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageVersionHistory withPackageVersion(String packageVersion) { setPackageVersion(packageVersion); return this; } /** *

* A message associated with the version. *

* * @param commitMessage * A message associated with the version. */ public void setCommitMessage(String commitMessage) { this.commitMessage = commitMessage; } /** *

* A message associated with the version. *

* * @return A message associated with the version. */ public String getCommitMessage() { return this.commitMessage; } /** *

* A message associated with the version. *

* * @param commitMessage * A message associated with the version. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageVersionHistory withCommitMessage(String commitMessage) { setCommitMessage(commitMessage); return this; } /** *

* Timestamp which tells creation time of the package version. *

* * @param createdAt * Timestamp which tells creation time of the package version. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* Timestamp which tells creation time of the package version. *

* * @return Timestamp which tells creation time of the package version. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* Timestamp which tells creation time of the package version. *

* * @param createdAt * Timestamp which tells creation time of the package version. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageVersionHistory withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); 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 (getPackageVersion() != null) sb.append("PackageVersion: ").append(getPackageVersion()).append(","); if (getCommitMessage() != null) sb.append("CommitMessage: ").append(getCommitMessage()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PackageVersionHistory == false) return false; PackageVersionHistory other = (PackageVersionHistory) obj; if (other.getPackageVersion() == null ^ this.getPackageVersion() == null) return false; if (other.getPackageVersion() != null && other.getPackageVersion().equals(this.getPackageVersion()) == false) return false; if (other.getCommitMessage() == null ^ this.getCommitMessage() == null) return false; if (other.getCommitMessage() != null && other.getCommitMessage().equals(this.getCommitMessage()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPackageVersion() == null) ? 0 : getPackageVersion().hashCode()); hashCode = prime * hashCode + ((getCommitMessage() == null) ? 0 : getCommitMessage().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); return hashCode; } @Override public PackageVersionHistory clone() { try { return (PackageVersionHistory) 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.elasticsearch.model.transform.PackageVersionHistoryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy