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

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

/**
 * 

* The configuration of an Elasticsearch domain. *

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

* Specifies the ElasticsearchClusterConfig for the * Elasticsearch domain. *

*/ private ElasticsearchClusterConfigStatus elasticsearchClusterConfig; /** *

* Specifies the EBSOptions for the Elasticsearch domain. *

*/ private EBSOptionsStatus eBSOptions; /** *

* IAM access policy as a JSON-formatted string. *

*/ private AccessPoliciesStatus accessPolicies; /** *

* Specifies the SnapshotOptions for the Elasticsearch domain. *

*/ private SnapshotOptionsStatus snapshotOptions; /** *

* Specifies the AdvancedOptions for the domain. See Configuring Advanced Options for more information. *

*/ private AdvancedOptionsStatus advancedOptions; /** *

* Specifies the ElasticsearchClusterConfig for the * Elasticsearch domain. *

* * @param elasticsearchClusterConfig * Specifies the ElasticsearchClusterConfig for the * Elasticsearch domain. */ public void setElasticsearchClusterConfig( ElasticsearchClusterConfigStatus elasticsearchClusterConfig) { this.elasticsearchClusterConfig = elasticsearchClusterConfig; } /** *

* Specifies the ElasticsearchClusterConfig for the * Elasticsearch domain. *

* * @return Specifies the ElasticsearchClusterConfig for the * Elasticsearch domain. */ public ElasticsearchClusterConfigStatus getElasticsearchClusterConfig() { return this.elasticsearchClusterConfig; } /** *

* Specifies the ElasticsearchClusterConfig for the * Elasticsearch domain. *

* * @param elasticsearchClusterConfig * Specifies the ElasticsearchClusterConfig for the * Elasticsearch domain. * @return Returns a reference to this object so that method calls can be * chained together. */ public ElasticsearchDomainConfig withElasticsearchClusterConfig( ElasticsearchClusterConfigStatus elasticsearchClusterConfig) { setElasticsearchClusterConfig(elasticsearchClusterConfig); return this; } /** *

* Specifies the EBSOptions for the Elasticsearch domain. *

* * @param eBSOptions * Specifies the EBSOptions for the Elasticsearch * domain. */ public void setEBSOptions(EBSOptionsStatus eBSOptions) { this.eBSOptions = eBSOptions; } /** *

* Specifies the EBSOptions for the Elasticsearch domain. *

* * @return Specifies the EBSOptions for the Elasticsearch * domain. */ public EBSOptionsStatus getEBSOptions() { return this.eBSOptions; } /** *

* Specifies the EBSOptions for the Elasticsearch domain. *

* * @param eBSOptions * Specifies the EBSOptions for the Elasticsearch * domain. * @return Returns a reference to this object so that method calls can be * chained together. */ public ElasticsearchDomainConfig withEBSOptions(EBSOptionsStatus eBSOptions) { setEBSOptions(eBSOptions); return this; } /** *

* IAM access policy as a JSON-formatted string. *

* * @param accessPolicies * IAM access policy as a JSON-formatted string. */ public void setAccessPolicies(AccessPoliciesStatus accessPolicies) { this.accessPolicies = accessPolicies; } /** *

* IAM access policy as a JSON-formatted string. *

* * @return IAM access policy as a JSON-formatted string. */ public AccessPoliciesStatus getAccessPolicies() { return this.accessPolicies; } /** *

* IAM access policy as a JSON-formatted string. *

* * @param accessPolicies * IAM access policy as a JSON-formatted string. * @return Returns a reference to this object so that method calls can be * chained together. */ public ElasticsearchDomainConfig withAccessPolicies( AccessPoliciesStatus accessPolicies) { setAccessPolicies(accessPolicies); return this; } /** *

* Specifies the SnapshotOptions for the Elasticsearch domain. *

* * @param snapshotOptions * Specifies the SnapshotOptions for the Elasticsearch * domain. */ public void setSnapshotOptions(SnapshotOptionsStatus snapshotOptions) { this.snapshotOptions = snapshotOptions; } /** *

* Specifies the SnapshotOptions for the Elasticsearch domain. *

* * @return Specifies the SnapshotOptions for the Elasticsearch * domain. */ public SnapshotOptionsStatus getSnapshotOptions() { return this.snapshotOptions; } /** *

* Specifies the SnapshotOptions for the Elasticsearch domain. *

* * @param snapshotOptions * Specifies the SnapshotOptions for the Elasticsearch * domain. * @return Returns a reference to this object so that method calls can be * chained together. */ public ElasticsearchDomainConfig withSnapshotOptions( SnapshotOptionsStatus snapshotOptions) { setSnapshotOptions(snapshotOptions); return this; } /** *

* Specifies the AdvancedOptions for the domain. See Configuring Advanced Options for more information. *

* * @param advancedOptions * Specifies the AdvancedOptions for the domain. See Configuring Advanced Options for more * information. */ public void setAdvancedOptions(AdvancedOptionsStatus advancedOptions) { this.advancedOptions = advancedOptions; } /** *

* Specifies the AdvancedOptions for the domain. See Configuring Advanced Options for more information. *

* * @return Specifies the AdvancedOptions for the domain. See Configuring Advanced Options for more * information. */ public AdvancedOptionsStatus getAdvancedOptions() { return this.advancedOptions; } /** *

* Specifies the AdvancedOptions for the domain. See Configuring Advanced Options for more information. *

* * @param advancedOptions * Specifies the AdvancedOptions for the domain. See Configuring Advanced Options for more * information. * @return Returns a reference to this object so that method calls can be * chained together. */ public ElasticsearchDomainConfig withAdvancedOptions( AdvancedOptionsStatus advancedOptions) { setAdvancedOptions(advancedOptions); return this; } /** * 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 (getElasticsearchClusterConfig() != null) sb.append("ElasticsearchClusterConfig: " + getElasticsearchClusterConfig() + ","); if (getEBSOptions() != null) sb.append("EBSOptions: " + getEBSOptions() + ","); if (getAccessPolicies() != null) sb.append("AccessPolicies: " + getAccessPolicies() + ","); if (getSnapshotOptions() != null) sb.append("SnapshotOptions: " + getSnapshotOptions() + ","); if (getAdvancedOptions() != null) sb.append("AdvancedOptions: " + getAdvancedOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ElasticsearchDomainConfig == false) return false; ElasticsearchDomainConfig other = (ElasticsearchDomainConfig) obj; if (other.getElasticsearchClusterConfig() == null ^ this.getElasticsearchClusterConfig() == null) return false; if (other.getElasticsearchClusterConfig() != null && other.getElasticsearchClusterConfig().equals( this.getElasticsearchClusterConfig()) == false) return false; if (other.getEBSOptions() == null ^ this.getEBSOptions() == null) return false; if (other.getEBSOptions() != null && other.getEBSOptions().equals(this.getEBSOptions()) == false) return false; if (other.getAccessPolicies() == null ^ this.getAccessPolicies() == null) return false; if (other.getAccessPolicies() != null && other.getAccessPolicies().equals(this.getAccessPolicies()) == false) return false; if (other.getSnapshotOptions() == null ^ this.getSnapshotOptions() == null) return false; if (other.getSnapshotOptions() != null && other.getSnapshotOptions().equals(this.getSnapshotOptions()) == false) return false; if (other.getAdvancedOptions() == null ^ this.getAdvancedOptions() == null) return false; if (other.getAdvancedOptions() != null && other.getAdvancedOptions().equals(this.getAdvancedOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getElasticsearchClusterConfig() == null) ? 0 : getElasticsearchClusterConfig().hashCode()); hashCode = prime * hashCode + ((getEBSOptions() == null) ? 0 : getEBSOptions().hashCode()); hashCode = prime * hashCode + ((getAccessPolicies() == null) ? 0 : getAccessPolicies() .hashCode()); hashCode = prime * hashCode + ((getSnapshotOptions() == null) ? 0 : getSnapshotOptions() .hashCode()); hashCode = prime * hashCode + ((getAdvancedOptions() == null) ? 0 : getAdvancedOptions() .hashCode()); return hashCode; } @Override public ElasticsearchDomainConfig clone() { try { return (ElasticsearchDomainConfig) 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