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

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

import java.io.Serializable;

/**
 * 

* Provides the current status of the entity. *

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

* Timestamp which tells the creation date for the entity. *

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

* Timestamp which tells the last updated time for the entity. *

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

* Specifies the latest version for the entity. *

*/ private Integer updateVersion; /** *

* Provides the OptionState for the Elasticsearch domain. *

*/ private String state; /** *

* Indicates whether the Elasticsearch domain is being deleted. *

*/ private Boolean pendingDeletion; /** *

* Timestamp which tells the creation date for the entity. *

* * @param creationDate * Timestamp which tells the creation date for the entity. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** *

* Timestamp which tells the creation date for the entity. *

* * @return Timestamp which tells the creation date for the entity. */ public java.util.Date getCreationDate() { return this.creationDate; } /** *

* Timestamp which tells the creation date for the entity. *

* * @param creationDate * Timestamp which tells the creation date for the entity. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionStatus withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** *

* Timestamp which tells the last updated time for the entity. *

* * @param updateDate * Timestamp which tells the last updated time for the entity. */ public void setUpdateDate(java.util.Date updateDate) { this.updateDate = updateDate; } /** *

* Timestamp which tells the last updated time for the entity. *

* * @return Timestamp which tells the last updated time for the entity. */ public java.util.Date getUpdateDate() { return this.updateDate; } /** *

* Timestamp which tells the last updated time for the entity. *

* * @param updateDate * Timestamp which tells the last updated time for the entity. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionStatus withUpdateDate(java.util.Date updateDate) { setUpdateDate(updateDate); return this; } /** *

* Specifies the latest version for the entity. *

* * @param updateVersion * Specifies the latest version for the entity. */ public void setUpdateVersion(Integer updateVersion) { this.updateVersion = updateVersion; } /** *

* Specifies the latest version for the entity. *

* * @return Specifies the latest version for the entity. */ public Integer getUpdateVersion() { return this.updateVersion; } /** *

* Specifies the latest version for the entity. *

* * @param updateVersion * Specifies the latest version for the entity. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionStatus withUpdateVersion(Integer updateVersion) { setUpdateVersion(updateVersion); return this; } /** *

* Provides the OptionState for the Elasticsearch domain. *

* * @param state * Provides the OptionState for the Elasticsearch * domain. * @see OptionState */ public void setState(String state) { this.state = state; } /** *

* Provides the OptionState for the Elasticsearch domain. *

* * @return Provides the OptionState for the Elasticsearch * domain. * @see OptionState */ public String getState() { return this.state; } /** *

* Provides the OptionState for the Elasticsearch domain. *

* * @param state * Provides the OptionState for the Elasticsearch * domain. * @return Returns a reference to this object so that method calls can be * chained together. * @see OptionState */ public OptionStatus withState(String state) { setState(state); return this; } /** *

* Provides the OptionState for the Elasticsearch domain. *

* * @param state * Provides the OptionState for the Elasticsearch * domain. * @see OptionState */ public void setState(OptionState state) { this.state = state.toString(); } /** *

* Provides the OptionState for the Elasticsearch domain. *

* * @param state * Provides the OptionState for the Elasticsearch * domain. * @return Returns a reference to this object so that method calls can be * chained together. * @see OptionState */ public OptionStatus withState(OptionState state) { setState(state); return this; } /** *

* Indicates whether the Elasticsearch domain is being deleted. *

* * @param pendingDeletion * Indicates whether the Elasticsearch domain is being deleted. */ public void setPendingDeletion(Boolean pendingDeletion) { this.pendingDeletion = pendingDeletion; } /** *

* Indicates whether the Elasticsearch domain is being deleted. *

* * @return Indicates whether the Elasticsearch domain is being deleted. */ public Boolean getPendingDeletion() { return this.pendingDeletion; } /** *

* Indicates whether the Elasticsearch domain is being deleted. *

* * @param pendingDeletion * Indicates whether the Elasticsearch domain is being deleted. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionStatus withPendingDeletion(Boolean pendingDeletion) { setPendingDeletion(pendingDeletion); return this; } /** *

* Indicates whether the Elasticsearch domain is being deleted. *

* * @return Indicates whether the Elasticsearch domain is being deleted. */ public Boolean isPendingDeletion() { return this.pendingDeletion; } /** * 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 (getCreationDate() != null) sb.append("CreationDate: " + getCreationDate() + ","); if (getUpdateDate() != null) sb.append("UpdateDate: " + getUpdateDate() + ","); if (getUpdateVersion() != null) sb.append("UpdateVersion: " + getUpdateVersion() + ","); if (getState() != null) sb.append("State: " + getState() + ","); if (getPendingDeletion() != null) sb.append("PendingDeletion: " + getPendingDeletion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OptionStatus == false) return false; OptionStatus other = (OptionStatus) obj; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getUpdateDate() == null ^ this.getUpdateDate() == null) return false; if (other.getUpdateDate() != null && other.getUpdateDate().equals(this.getUpdateDate()) == false) return false; if (other.getUpdateVersion() == null ^ this.getUpdateVersion() == null) return false; if (other.getUpdateVersion() != null && other.getUpdateVersion().equals(this.getUpdateVersion()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getPendingDeletion() == null ^ this.getPendingDeletion() == null) return false; if (other.getPendingDeletion() != null && other.getPendingDeletion().equals(this.getPendingDeletion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate() .hashCode()); hashCode = prime * hashCode + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode()); hashCode = prime * hashCode + ((getUpdateVersion() == null) ? 0 : getUpdateVersion() .hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getPendingDeletion() == null) ? 0 : getPendingDeletion() .hashCode()); return hashCode; } @Override public OptionStatus clone() { try { return (OptionStatus) 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