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

com.amazonaws.services.elasticsearch.model.PackageDetails 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;

/**
 * 

* Basic information about a package. *

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

* Internal ID of the package. *

*/ private String packageID; /** *

* User specified name of the package. *

*/ private String packageName; /** *

* Currently supports only TXT-DICTIONARY. *

*/ private String packageType; /** *

* User-specified description of the package. *

*/ private String packageDescription; /** *

* Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED *

*/ private String packageStatus; /** *

* Timestamp which tells creation date of the package. *

*/ private java.util.Date createdAt; private java.util.Date lastUpdatedAt; private String availablePackageVersion; /** *

* Additional information if the package is in an error state. Null otherwise. *

*/ private ErrorDetails errorDetails; /** *

* Internal ID of the package. *

* * @param packageID * Internal ID of the package. */ public void setPackageID(String packageID) { this.packageID = packageID; } /** *

* Internal ID of the package. *

* * @return Internal ID of the package. */ public String getPackageID() { return this.packageID; } /** *

* Internal ID of the package. *

* * @param packageID * Internal ID of the package. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageDetails withPackageID(String packageID) { setPackageID(packageID); return this; } /** *

* User specified name of the package. *

* * @param packageName * User specified name of the package. */ public void setPackageName(String packageName) { this.packageName = packageName; } /** *

* User specified name of the package. *

* * @return User specified name of the package. */ public String getPackageName() { return this.packageName; } /** *

* User specified name of the package. *

* * @param packageName * User specified name of the package. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageDetails withPackageName(String packageName) { setPackageName(packageName); return this; } /** *

* Currently supports only TXT-DICTIONARY. *

* * @param packageType * Currently supports only TXT-DICTIONARY. * @see PackageType */ public void setPackageType(String packageType) { this.packageType = packageType; } /** *

* Currently supports only TXT-DICTIONARY. *

* * @return Currently supports only TXT-DICTIONARY. * @see PackageType */ public String getPackageType() { return this.packageType; } /** *

* Currently supports only TXT-DICTIONARY. *

* * @param packageType * Currently supports only TXT-DICTIONARY. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageType */ public PackageDetails withPackageType(String packageType) { setPackageType(packageType); return this; } /** *

* Currently supports only TXT-DICTIONARY. *

* * @param packageType * Currently supports only TXT-DICTIONARY. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageType */ public PackageDetails withPackageType(PackageType packageType) { this.packageType = packageType.toString(); return this; } /** *

* User-specified description of the package. *

* * @param packageDescription * User-specified description of the package. */ public void setPackageDescription(String packageDescription) { this.packageDescription = packageDescription; } /** *

* User-specified description of the package. *

* * @return User-specified description of the package. */ public String getPackageDescription() { return this.packageDescription; } /** *

* User-specified description of the package. *

* * @param packageDescription * User-specified description of the package. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageDetails withPackageDescription(String packageDescription) { setPackageDescription(packageDescription); return this; } /** *

* Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED *

* * @param packageStatus * Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED * @see PackageStatus */ public void setPackageStatus(String packageStatus) { this.packageStatus = packageStatus; } /** *

* Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED *

* * @return Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED * @see PackageStatus */ public String getPackageStatus() { return this.packageStatus; } /** *

* Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED *

* * @param packageStatus * Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED * @return Returns a reference to this object so that method calls can be chained together. * @see PackageStatus */ public PackageDetails withPackageStatus(String packageStatus) { setPackageStatus(packageStatus); return this; } /** *

* Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED *

* * @param packageStatus * Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED * @return Returns a reference to this object so that method calls can be chained together. * @see PackageStatus */ public PackageDetails withPackageStatus(PackageStatus packageStatus) { this.packageStatus = packageStatus.toString(); return this; } /** *

* Timestamp which tells creation date of the package. *

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

* Timestamp which tells creation date of the package. *

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

* Timestamp which tells creation date of the package. *

* * @param createdAt * Timestamp which tells creation date of the package. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageDetails withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** * @param lastUpdatedAt */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** * @return */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** * @param lastUpdatedAt * @return Returns a reference to this object so that method calls can be chained together. */ public PackageDetails withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** * @param availablePackageVersion */ public void setAvailablePackageVersion(String availablePackageVersion) { this.availablePackageVersion = availablePackageVersion; } /** * @return */ public String getAvailablePackageVersion() { return this.availablePackageVersion; } /** * @param availablePackageVersion * @return Returns a reference to this object so that method calls can be chained together. */ public PackageDetails withAvailablePackageVersion(String availablePackageVersion) { setAvailablePackageVersion(availablePackageVersion); return this; } /** *

* Additional information if the package is in an error state. Null otherwise. *

* * @param errorDetails * Additional information if the package is in an error state. Null otherwise. */ public void setErrorDetails(ErrorDetails errorDetails) { this.errorDetails = errorDetails; } /** *

* Additional information if the package is in an error state. Null otherwise. *

* * @return Additional information if the package is in an error state. Null otherwise. */ public ErrorDetails getErrorDetails() { return this.errorDetails; } /** *

* Additional information if the package is in an error state. Null otherwise. *

* * @param errorDetails * Additional information if the package is in an error state. Null otherwise. * @return Returns a reference to this object so that method calls can be chained together. */ public PackageDetails withErrorDetails(ErrorDetails errorDetails) { setErrorDetails(errorDetails); 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 (getPackageID() != null) sb.append("PackageID: ").append(getPackageID()).append(","); if (getPackageName() != null) sb.append("PackageName: ").append(getPackageName()).append(","); if (getPackageType() != null) sb.append("PackageType: ").append(getPackageType()).append(","); if (getPackageDescription() != null) sb.append("PackageDescription: ").append(getPackageDescription()).append(","); if (getPackageStatus() != null) sb.append("PackageStatus: ").append(getPackageStatus()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(","); if (getAvailablePackageVersion() != null) sb.append("AvailablePackageVersion: ").append(getAvailablePackageVersion()).append(","); if (getErrorDetails() != null) sb.append("ErrorDetails: ").append(getErrorDetails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PackageDetails == false) return false; PackageDetails other = (PackageDetails) obj; if (other.getPackageID() == null ^ this.getPackageID() == null) return false; if (other.getPackageID() != null && other.getPackageID().equals(this.getPackageID()) == false) return false; if (other.getPackageName() == null ^ this.getPackageName() == null) return false; if (other.getPackageName() != null && other.getPackageName().equals(this.getPackageName()) == false) return false; if (other.getPackageType() == null ^ this.getPackageType() == null) return false; if (other.getPackageType() != null && other.getPackageType().equals(this.getPackageType()) == false) return false; if (other.getPackageDescription() == null ^ this.getPackageDescription() == null) return false; if (other.getPackageDescription() != null && other.getPackageDescription().equals(this.getPackageDescription()) == false) return false; if (other.getPackageStatus() == null ^ this.getPackageStatus() == null) return false; if (other.getPackageStatus() != null && other.getPackageStatus().equals(this.getPackageStatus()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getAvailablePackageVersion() == null ^ this.getAvailablePackageVersion() == null) return false; if (other.getAvailablePackageVersion() != null && other.getAvailablePackageVersion().equals(this.getAvailablePackageVersion()) == false) return false; if (other.getErrorDetails() == null ^ this.getErrorDetails() == null) return false; if (other.getErrorDetails() != null && other.getErrorDetails().equals(this.getErrorDetails()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPackageID() == null) ? 0 : getPackageID().hashCode()); hashCode = prime * hashCode + ((getPackageName() == null) ? 0 : getPackageName().hashCode()); hashCode = prime * hashCode + ((getPackageType() == null) ? 0 : getPackageType().hashCode()); hashCode = prime * hashCode + ((getPackageDescription() == null) ? 0 : getPackageDescription().hashCode()); hashCode = prime * hashCode + ((getPackageStatus() == null) ? 0 : getPackageStatus().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getAvailablePackageVersion() == null) ? 0 : getAvailablePackageVersion().hashCode()); hashCode = prime * hashCode + ((getErrorDetails() == null) ? 0 : getErrorDetails().hashCode()); return hashCode; } @Override public PackageDetails clone() { try { return (PackageDetails) 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.PackageDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy