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 current status of the search domain.

 
 public class DomainStatus implements SerializableCloneable {

    
An internally generated unique identifier for a domain.

Constraints:
Length: 1 - 64

 
     private String domainId;

    
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

Constraints:
Length: 3 - 28
Pattern: [a-z][a-z0-9\-]+

 
     private String domainName;

    
The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.
 
     private String aRN;

    
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
 
     private Boolean created;

    
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.
 
     private Boolean deleted;

    
The service endpoint for updating documents in a search domain.
 
     private ServiceEndpoint docService;

    
The service endpoint for requesting search results from a search domain.
 
     private ServiceEndpoint searchService;

    
True if IndexDocuments needs to be called to activate the current domain configuration.
 
     private Boolean requiresIndexDocuments;

    
True if processing is being done to activate the current domain configuration.
 
     private Boolean processing;

    
The instance type that is being used to process search requests.
 
     private String searchInstanceType;

    
The number of partitions across which the search index is spread.

Constraints:
Range: 1 -

    private Integer searchPartitionCount;

    
The number of search instances that are available to process search requests.

Constraints:
Range: 1 -

    private Integer searchInstanceCount;
    private Limits limits;

    
An internally generated unique identifier for a domain.

Constraints:
Length: 1 - 64

Returns:
An internally generated unique identifier for a domain.
    public String getDomainId() {
        return ;
    }
    
    
An internally generated unique identifier for a domain.

Constraints:
Length: 1 - 64

Parameters:
domainId An internally generated unique identifier for a domain.
    public void setDomainId(String domainId) {
        this. = domainId;
    }
    
    
An internally generated unique identifier for a domain.

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

Constraints:
Length: 1 - 64

Parameters:
domainId An internally generated unique identifier for a domain.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withDomainId(String domainId) {
        this. = domainId;
        return this;
    }

    
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

Constraints:
Length: 3 - 28
Pattern: [a-z][a-z0-9\-]+

Returns:
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
    public String getDomainName() {
        return ;
    }
    
    
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

Constraints:
Length: 3 - 28
Pattern: [a-z][a-z0-9\-]+

Parameters:
domainName A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
    public void setDomainName(String domainName) {
        this. = domainName;
    }
    
    
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

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

Constraints:
Length: 3 - 28
Pattern: [a-z][a-z0-9\-]+

Parameters:
domainName A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withDomainName(String domainName) {
        this. = domainName;
        return this;
    }

    
The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.

Returns:
The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.
    public String getARN() {
        return ;
    }
    
    
The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.

Parameters:
aRN The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.
    public void setARN(String aRN) {
        this. = aRN;
    }
    
    
The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.

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

Parameters:
aRN The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withARN(String aRN) {
        this. = aRN;
        return this;
    }

    
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.

Returns:
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
    public Boolean isCreated() {
        return ;
    }
    
    
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.

Parameters:
created True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
    public void setCreated(Boolean created) {
        this. = created;
    }
    
    
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.

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

Parameters:
created True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withCreated(Boolean created) {
        this. = created;
        return this;
    }

    
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.

Returns:
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
    public Boolean getCreated() {
        return ;
    }

    
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.

Returns:
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.
    public Boolean isDeleted() {
        return ;
    }
    
    
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.

Parameters:
deleted True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.
    public void setDeleted(Boolean deleted) {
        this. = deleted;
    }
    
    
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.

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

Parameters:
deleted True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withDeleted(Boolean deleted) {
        this. = deleted;
        return this;
    }

    
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.

Returns:
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.
    public Boolean getDeleted() {
        return ;
    }

    
The service endpoint for updating documents in a search domain.

Returns:
The service endpoint for updating documents in a search domain.
    public ServiceEndpoint getDocService() {
        return ;
    }
    
    
The service endpoint for updating documents in a search domain.

Parameters:
docService The service endpoint for updating documents in a search domain.
    public void setDocService(ServiceEndpoint docService) {
        this. = docService;
    }
    
    
The service endpoint for updating documents in a search domain.

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

Parameters:
docService The service endpoint for updating documents in a search domain.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withDocService(ServiceEndpoint docService) {
        this. = docService;
        return this;
    }

    
The service endpoint for requesting search results from a search domain.

Returns:
The service endpoint for requesting search results from a search domain.
    public ServiceEndpoint getSearchService() {
        return ;
    }
    
    
The service endpoint for requesting search results from a search domain.

Parameters:
searchService The service endpoint for requesting search results from a search domain.
    public void setSearchService(ServiceEndpoint searchService) {
        this. = searchService;
    }
    
    
The service endpoint for requesting search results from a search domain.

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

Parameters:
searchService The service endpoint for requesting search results from a search domain.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withSearchService(ServiceEndpoint searchService) {
        this. = searchService;
        return this;
    }

    
True if IndexDocuments needs to be called to activate the current domain configuration.

Returns:
True if IndexDocuments needs to be called to activate the current domain configuration.
    public Boolean isRequiresIndexDocuments() {
        return ;
    }
    
    
True if IndexDocuments needs to be called to activate the current domain configuration.

Parameters:
requiresIndexDocuments True if IndexDocuments needs to be called to activate the current domain configuration.
    public void setRequiresIndexDocuments(Boolean requiresIndexDocuments) {
        this. = requiresIndexDocuments;
    }
    
    
True if IndexDocuments needs to be called to activate the current domain configuration.

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

Parameters:
requiresIndexDocuments True if IndexDocuments needs to be called to activate the current domain configuration.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withRequiresIndexDocuments(Boolean requiresIndexDocuments) {
        this. = requiresIndexDocuments;
        return this;
    }

    
True if IndexDocuments needs to be called to activate the current domain configuration.

Returns:
True if IndexDocuments needs to be called to activate the current domain configuration.
        return ;
    }

    
True if processing is being done to activate the current domain configuration.

Returns:
True if processing is being done to activate the current domain configuration.
    public Boolean isProcessing() {
        return ;
    }
    
    
True if processing is being done to activate the current domain configuration.

Parameters:
processing True if processing is being done to activate the current domain configuration.
    public void setProcessing(Boolean processing) {
        this. = processing;
    }
    
    
True if processing is being done to activate the current domain configuration.

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

Parameters:
processing True if processing is being done to activate the current domain configuration.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withProcessing(Boolean processing) {
        this. = processing;
        return this;
    }

    
True if processing is being done to activate the current domain configuration.

Returns:
True if processing is being done to activate the current domain configuration.
    public Boolean getProcessing() {
        return ;
    }

    
The instance type that is being used to process search requests.

Returns:
The instance type that is being used to process search requests.
    public String getSearchInstanceType() {
        return ;
    }
    
    
The instance type that is being used to process search requests.

Parameters:
searchInstanceType The instance type that is being used to process search requests.
    public void setSearchInstanceType(String searchInstanceType) {
        this. = searchInstanceType;
    }
    
    
The instance type that is being used to process search requests.

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

Parameters:
searchInstanceType The instance type that is being used to process search requests.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withSearchInstanceType(String searchInstanceType) {
        this. = searchInstanceType;
        return this;
    }

    
The number of partitions across which the search index is spread.

Constraints:
Range: 1 -

Returns:
The number of partitions across which the search index is spread.
    public Integer getSearchPartitionCount() {
        return ;
    }
    
    
The number of partitions across which the search index is spread.

Constraints:
Range: 1 -

Parameters:
searchPartitionCount The number of partitions across which the search index is spread.
    public void setSearchPartitionCount(Integer searchPartitionCount) {
        this. = searchPartitionCount;
    }
    
    
The number of partitions across which the search index is spread.

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

Constraints:
Range: 1 -

Parameters:
searchPartitionCount The number of partitions across which the search index is spread.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withSearchPartitionCount(Integer searchPartitionCount) {
        this. = searchPartitionCount;
        return this;
    }

    
The number of search instances that are available to process search requests.

Constraints:
Range: 1 -

Returns:
The number of search instances that are available to process search requests.
    public Integer getSearchInstanceCount() {
        return ;
    }
    
    
The number of search instances that are available to process search requests.

Constraints:
Range: 1 -

Parameters:
searchInstanceCount The number of search instances that are available to process search requests.
    public void setSearchInstanceCount(Integer searchInstanceCount) {
        this. = searchInstanceCount;
    }
    
    
The number of search instances that are available to process search requests.

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

Constraints:
Range: 1 -

Parameters:
searchInstanceCount The number of search instances that are available to process search requests.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withSearchInstanceCount(Integer searchInstanceCount) {
        this. = searchInstanceCount;
        return this;
    }

    
Returns the value of the Limits property for this object.

Returns:
The value of the Limits property for this object.
    public Limits getLimits() {
        return ;
    }
    
    
Sets the value of the Limits property for this object.

Parameters:
limits The new value for the Limits property for this object.
    public void setLimits(Limits limits) {
        this. = limits;
    }
    
    
Sets the value of the Limits property for this object.

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

Parameters:
limits The new value for the Limits property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DomainStatus withLimits(Limits limits) {
        this. = limits;
        return this;
    }

    
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 (getDomainId() != nullsb.append("DomainId: " + getDomainId() + ",");
        if (getDomainName() != nullsb.append("DomainName: " + getDomainName() + ",");
        if (getARN() != nullsb.append("ARN: " + getARN() + ",");
        if (isCreated() != nullsb.append("Created: " + isCreated() + ",");
        if (isDeleted() != nullsb.append("Deleted: " + isDeleted() + ",");
        if (getDocService() != nullsb.append("DocService: " + getDocService() + ",");
        if (getSearchService() != nullsb.append("SearchService: " + getSearchService() + ",");
        if (isRequiresIndexDocuments() != nullsb.append("RequiresIndexDocuments: " + isRequiresIndexDocuments() + ",");
        if (isProcessing() != nullsb.append("Processing: " + isProcessing() + ",");
        if (getSearchInstanceType() != nullsb.append("SearchInstanceType: " + getSearchInstanceType() + ",");
        if (getSearchPartitionCount() != nullsb.append("SearchPartitionCount: " + getSearchPartitionCount() + ",");
        if (getSearchInstanceCount() != nullsb.append("SearchInstanceCount: " + getSearchInstanceCount() + ",");
        if (getLimits() != nullsb.append("Limits: " + getLimits() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode()); 
        hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); 
        hashCode = prime * hashCode + ((getARN() == null) ? 0 : getARN().hashCode()); 
        hashCode = prime * hashCode + ((isCreated() == null) ? 0 : isCreated().hashCode()); 
        hashCode = prime * hashCode + ((isDeleted() == null) ? 0 : isDeleted().hashCode()); 
        hashCode = prime * hashCode + ((getDocService() == null) ? 0 : getDocService().hashCode()); 
        hashCode = prime * hashCode + ((getSearchService() == null) ? 0 : getSearchService().hashCode()); 
        hashCode = prime * hashCode + ((isRequiresIndexDocuments() == null) ? 0 : isRequiresIndexDocuments().hashCode()); 
        hashCode = prime * hashCode + ((isProcessing() == null) ? 0 : isProcessing().hashCode()); 
        hashCode = prime * hashCode + ((getSearchInstanceType() == null) ? 0 : getSearchInstanceType().hashCode()); 
        hashCode = prime * hashCode + ((getSearchPartitionCount() == null) ? 0 : getSearchPartitionCount().hashCode()); 
        hashCode = prime * hashCode + ((getSearchInstanceCount() == null) ? 0 : getSearchInstanceCount().hashCode()); 
        hashCode = prime * hashCode + ((getLimits() == null) ? 0 : getLimits().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DomainStatus == falsereturn false;
        DomainStatus other = (DomainStatus)obj;
        
        if (other.getDomainId() == null ^ this.getDomainId() == nullreturn false;
        if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == falsereturn false
        if (other.getDomainName() == null ^ this.getDomainName() == nullreturn false;
        if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == falsereturn false
        if (other.getARN() == null ^ this.getARN() == nullreturn false;
        if (other.getARN() != null && other.getARN().equals(this.getARN()) == falsereturn false
        if (other.isCreated() == null ^ this.isCreated() == nullreturn false;
        if (other.isCreated() != null && other.isCreated().equals(this.isCreated()) == falsereturn false
        if (other.isDeleted() == null ^ this.isDeleted() == nullreturn false;
        if (other.isDeleted() != null && other.isDeleted().equals(this.isDeleted()) == falsereturn false
        if (other.getDocService() == null ^ this.getDocService() == nullreturn false;
        if (other.getDocService() != null && other.getDocService().equals(this.getDocService()) == falsereturn false
        if (other.getSearchService() == null ^ this.getSearchService() == nullreturn false;
        if (other.getSearchService() != null && other.getSearchService().equals(this.getSearchService()) == falsereturn false
        if (other.isRequiresIndexDocuments() == null ^ this.isRequiresIndexDocuments() == nullreturn false;
        if (other.isRequiresIndexDocuments() != null && other.isRequiresIndexDocuments().equals(this.isRequiresIndexDocuments()) == falsereturn false
        if (other.isProcessing() == null ^ this.isProcessing() == nullreturn false;
        if (other.isProcessing() != null && other.isProcessing().equals(this.isProcessing()) == falsereturn false
        if (other.getSearchInstanceType() == null ^ this.getSearchInstanceType() == nullreturn false;
        if (other.getSearchInstanceType() != null && other.getSearchInstanceType().equals(this.getSearchInstanceType()) == falsereturn false
        if (other.getSearchPartitionCount() == null ^ this.getSearchPartitionCount() == nullreturn false;
        if (other.getSearchPartitionCount() != null && other.getSearchPartitionCount().equals(this.getSearchPartitionCount()) == falsereturn false
        if (other.getSearchInstanceCount() == null ^ this.getSearchInstanceCount() == nullreturn false;
        if (other.getSearchInstanceCount() != null && other.getSearchInstanceCount().equals(this.getSearchInstanceCount()) == falsereturn false
        if (other.getLimits() == null ^ this.getLimits() == nullreturn false;
        if (other.getLimits() != null && other.getLimits().equals(this.getLimits()) == falsereturn false
        return true;
    }
    
    @Override
    public DomainStatus clone() {
        try {
            return (DomainStatussuper.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