Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.cloudsearchv2.model;
 

The status of domain configuration option.

 
 public class OptionStatus implements SerializableCloneable {

    
A timestamp for when this option was created.
 
     private java.util.Date creationDate;

    
A timestamp for when this option was last updated.
 
     private java.util.Date updateDate;

    
A unique integer that indicates when this option was last updated.

Constraints:
Range: 0 -

 
     private Integer updateVersion;

    
The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.

Constraints:
Allowed Values: RequiresIndexDocuments, Processing, Active, FailedToValidate

 
     private String state;

    
Indicates that the option will be deleted once processing is complete.
 
     private Boolean pendingDeletion;

    
A timestamp for when this option was created.

Returns:
A timestamp for when this option was created.
 
     public java.util.Date getCreationDate() {
         return ;
     }
    
    
A timestamp for when this option was created.

Parameters:
creationDate A timestamp for when this option was created.
 
     public void setCreationDate(java.util.Date creationDate) {
         this. = creationDate;
     }
    
    
A timestamp for when this option was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
creationDate A timestamp for when this option was created.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public OptionStatus withCreationDate(java.util.Date creationDate) {
         this. = creationDate;
         return this;
     }

    
A timestamp for when this option was last updated.

Returns:
A timestamp for when this option was last updated.
    public java.util.Date getUpdateDate() {
        return ;
    }
    
    
A timestamp for when this option was last updated.

Parameters:
updateDate A timestamp for when this option was last updated.
    public void setUpdateDate(java.util.Date updateDate) {
        this. = updateDate;
    }
    
    
A timestamp for when this option was last updated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
updateDate A timestamp for when this option was last updated.
Returns:
A reference to this updated object so that method calls can be chained together.
    public OptionStatus withUpdateDate(java.util.Date updateDate) {
        this. = updateDate;
        return this;
    }

    
A unique integer that indicates when this option was last updated.

Constraints:
Range: 0 -

Returns:
A unique integer that indicates when this option was last updated.
    public Integer getUpdateVersion() {
        return ;
    }
    
    
A unique integer that indicates when this option was last updated.

Constraints:
Range: 0 -

Parameters:
updateVersion A unique integer that indicates when this option was last updated.
    public void setUpdateVersion(Integer updateVersion) {
        this. = updateVersion;
    }
    
    
A unique integer that indicates when this option was last updated.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 0 -

Parameters:
updateVersion A unique integer that indicates when this option was last updated.
Returns:
A reference to this updated object so that method calls can be chained together.
    public OptionStatus withUpdateVersion(Integer updateVersion) {
        this. = updateVersion;
        return this;
    }

    
The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.

Constraints:
Allowed Values: RequiresIndexDocuments, Processing, Active, FailedToValidate

Returns:
The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.
See also:
OptionState
    public String getState() {
        return ;
    }
    
    
The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.

Constraints:
Allowed Values: RequiresIndexDocuments, Processing, Active, FailedToValidate

Parameters:
state The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.
See also:
OptionState
    public void setState(String state) {
        this. = state;
    }
    
    
The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: RequiresIndexDocuments, Processing, Active, FailedToValidate

Parameters:
state The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
OptionState
    public OptionStatus withState(String state) {
        this. = state;
        return this;
    }

    
The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.

Constraints:
Allowed Values: RequiresIndexDocuments, Processing, Active, FailedToValidate

Parameters:
state The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.
See also:
OptionState
    public void setState(OptionState state) {
        this. = state.toString();
    }
    
    
The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: RequiresIndexDocuments, Processing, Active, FailedToValidate

Parameters:
state The state of processing a change to an option. Possible values:
  • RequiresIndexDocuments: the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
  • Processing: the option's latest value is in the process of being activated.
  • Active: the option's latest value is completely deployed.
  • FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
OptionState
    public OptionStatus withState(OptionState state) {
        this. = state.toString();
        return this;
    }

    
Indicates that the option will be deleted once processing is complete.

Returns:
Indicates that the option will be deleted once processing is complete.
    public Boolean isPendingDeletion() {
        return ;
    }
    
    
Indicates that the option will be deleted once processing is complete.

Parameters:
pendingDeletion Indicates that the option will be deleted once processing is complete.
    public void setPendingDeletion(Boolean pendingDeletion) {
        this. = pendingDeletion;
    }
    
    
Indicates that the option will be deleted once processing is complete.

Returns a reference to this object so that method calls can be chained together.

Parameters:
pendingDeletion Indicates that the option will be deleted once processing is complete.
Returns:
A reference to this updated object so that method calls can be chained together.
    public OptionStatus withPendingDeletion(Boolean pendingDeletion) {
        this. = pendingDeletion;
        return this;
    }

    
Indicates that the option will be deleted once processing is complete.

Returns:
Indicates that the option will be deleted once processing is complete.
    public Boolean getPendingDeletion() {
        return ;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getCreationDate() != nullsb.append("CreationDate: " + getCreationDate() + ",");
        if (getUpdateDate() != nullsb.append("UpdateDate: " + getUpdateDate() + ",");
        if (getUpdateVersion() != nullsb.append("UpdateVersion: " + getUpdateVersion() + ",");
        if (getState() != nullsb.append("State: " + getState() + ",");
        if (isPendingDeletion() != nullsb.append("PendingDeletion: " + isPendingDeletion() );
        sb.append("}");
        return sb.toString();
    }
    
    @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 + ((isPendingDeletion() == null) ? 0 : isPendingDeletion().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof OptionStatus == falsereturn false;
        OptionStatus other = (OptionStatus)obj;
        
        if (other.getCreationDate() == null ^ this.getCreationDate() == nullreturn false;
        if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == falsereturn false
        if (other.getUpdateDate() == null ^ this.getUpdateDate() == nullreturn false;
        if (other.getUpdateDate() != null && other.getUpdateDate().equals(this.getUpdateDate()) == falsereturn false
        if (other.getUpdateVersion() == null ^ this.getUpdateVersion() == nullreturn false;
        if (other.getUpdateVersion() != null && other.getUpdateVersion().equals(this.getUpdateVersion()) == falsereturn false
        if (other.getState() == null ^ this.getState() == nullreturn false;
        if (other.getState() != null && other.getState().equals(this.getState()) == falsereturn false
        if (other.isPendingDeletion() == null ^ this.isPendingDeletion() == nullreturn false;
        if (other.isPendingDeletion() != null && other.isPendingDeletion().equals(this.isPendingDeletion()) == falsereturn false
        return true;
    }
    
    @Override
    public OptionStatus clone() {
        try {
            return (OptionStatussuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X