/* * Copyright 2018-2023 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.opensearch.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateDomainRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* Name of the OpenSearch Service domain to create. Domain names are unique across the domains owned by an account * within an Amazon Web Services Region. *

*/ private String domainName; /** *

* String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the OpenSearch Service * domain. For example, OpenSearch_1.0 or Elasticsearch_7.9. For more information, see Creating and managing Amazon OpenSearch Service domains. *

*/ private String engineVersion; /** *

* Container for the cluster configuration of a domain. *

*/ private ClusterConfig clusterConfig; /** *

* Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain. *

*/ private EBSOptions eBSOptions; /** *

* Identity and Access Management (IAM) policy document specifying the access policies for the new domain. *

*/ private String accessPolicies; /** *

* DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes. *

*/ private SnapshotOptions snapshotOptions; /** *

* Container for the values required to configure VPC access domains. If you don't specify these values, OpenSearch * Service creates the domain with a public endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. *

*/ private VPCOptions vPCOptions; /** *

* Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring Amazon * Cognito authentication for OpenSearch Dashboards. *

*/ private CognitoOptions cognitoOptions; /** *

* Key-value pairs to enable encryption at rest. *

*/ private EncryptionAtRestOptions encryptionAtRestOptions; /** *

* Enables node-to-node encryption. *

*/ private NodeToNodeEncryptionOptions nodeToNodeEncryptionOptions; /** *

* Key-value pairs to specify advanced configuration options. The following key-value pairs are supported: *

* *

* For more information, see Advanced cluster parameters. *

*/ private java.util.Map advancedOptions; /** *

* Key-value pairs to configure log publishing. *

*/ private java.util.Map logPublishingOptions; /** *

* Additional options for the domain endpoint, such as whether to require HTTPS for all traffic. *

*/ private DomainEndpointOptions domainEndpointOptions; /** *

* Options for fine-grained access control. *

*/ private AdvancedSecurityOptionsInput advancedSecurityOptions; /** *

* List of tags to add to the domain upon creation. *

*/ private java.util.List tagList; /** *

* Options for Auto-Tune. *

*/ private AutoTuneOptionsInput autoTuneOptions; /** *

* Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on the * domain, including service software updates and Auto-Tune enhancements that require a blue/green deployment. If no * options are specified, the default start time of 10:00 P.M. local time (for the Region that the domain is created * in) is used. *

*/ private OffPeakWindowOptions offPeakWindowOptions; /** *

* Software update options for the domain. *

*/ private SoftwareUpdateOptions softwareUpdateOptions; /** *

* Name of the OpenSearch Service domain to create. Domain names are unique across the domains owned by an account * within an Amazon Web Services Region. *

* * @param domainName * Name of the OpenSearch Service domain to create. Domain names are unique across the domains owned by an * account within an Amazon Web Services Region. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** *

* Name of the OpenSearch Service domain to create. Domain names are unique across the domains owned by an account * within an Amazon Web Services Region. *

* * @return Name of the OpenSearch Service domain to create. Domain names are unique across the domains owned by an * account within an Amazon Web Services Region. */ public String getDomainName() { return this.domainName; } /** *

* Name of the OpenSearch Service domain to create. Domain names are unique across the domains owned by an account * within an Amazon Web Services Region. *

* * @param domainName * Name of the OpenSearch Service domain to create. Domain names are unique across the domains owned by an * account within an Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withDomainName(String domainName) { setDomainName(domainName); return this; } /** *

* String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the OpenSearch Service * domain. For example, OpenSearch_1.0 or Elasticsearch_7.9. For more information, see Creating and managing Amazon OpenSearch Service domains. *

* * @param engineVersion * String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the OpenSearch * Service domain. For example, OpenSearch_1.0 or Elasticsearch_7.9. For more * information, see Creating and managing Amazon OpenSearch Service domains. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the OpenSearch Service * domain. For example, OpenSearch_1.0 or Elasticsearch_7.9. For more information, see Creating and managing Amazon OpenSearch Service domains. *

* * @return String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the OpenSearch * Service domain. For example, OpenSearch_1.0 or Elasticsearch_7.9. For more * information, see Creating and managing Amazon OpenSearch Service domains. */ public String getEngineVersion() { return this.engineVersion; } /** *

* String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the OpenSearch Service * domain. For example, OpenSearch_1.0 or Elasticsearch_7.9. For more information, see Creating and managing Amazon OpenSearch Service domains. *

* * @param engineVersion * String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the OpenSearch * Service domain. For example, OpenSearch_1.0 or Elasticsearch_7.9. For more * information, see Creating and managing Amazon OpenSearch Service domains. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *

* Container for the cluster configuration of a domain. *

* * @param clusterConfig * Container for the cluster configuration of a domain. */ public void setClusterConfig(ClusterConfig clusterConfig) { this.clusterConfig = clusterConfig; } /** *

* Container for the cluster configuration of a domain. *

* * @return Container for the cluster configuration of a domain. */ public ClusterConfig getClusterConfig() { return this.clusterConfig; } /** *

* Container for the cluster configuration of a domain. *

* * @param clusterConfig * Container for the cluster configuration of a domain. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withClusterConfig(ClusterConfig clusterConfig) { setClusterConfig(clusterConfig); return this; } /** *

* Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain. *

* * @param eBSOptions * Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain. */ public void setEBSOptions(EBSOptions eBSOptions) { this.eBSOptions = eBSOptions; } /** *

* Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain. *

* * @return Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain. */ public EBSOptions getEBSOptions() { return this.eBSOptions; } /** *

* Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain. *

* * @param eBSOptions * Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withEBSOptions(EBSOptions eBSOptions) { setEBSOptions(eBSOptions); return this; } /** *

* Identity and Access Management (IAM) policy document specifying the access policies for the new domain. *

* * @param accessPolicies * Identity and Access Management (IAM) policy document specifying the access policies for the new domain. */ public void setAccessPolicies(String accessPolicies) { this.accessPolicies = accessPolicies; } /** *

* Identity and Access Management (IAM) policy document specifying the access policies for the new domain. *

* * @return Identity and Access Management (IAM) policy document specifying the access policies for the new domain. */ public String getAccessPolicies() { return this.accessPolicies; } /** *

* Identity and Access Management (IAM) policy document specifying the access policies for the new domain. *

* * @param accessPolicies * Identity and Access Management (IAM) policy document specifying the access policies for the new domain. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withAccessPolicies(String accessPolicies) { setAccessPolicies(accessPolicies); return this; } /** *

* DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes. *

* * @param snapshotOptions * DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes. */ public void setSnapshotOptions(SnapshotOptions snapshotOptions) { this.snapshotOptions = snapshotOptions; } /** *

* DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes. *

* * @return DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes. */ public SnapshotOptions getSnapshotOptions() { return this.snapshotOptions; } /** *

* DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes. *

* * @param snapshotOptions * DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withSnapshotOptions(SnapshotOptions snapshotOptions) { setSnapshotOptions(snapshotOptions); return this; } /** *

* Container for the values required to configure VPC access domains. If you don't specify these values, OpenSearch * Service creates the domain with a public endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. *

* * @param vPCOptions * Container for the values required to configure VPC access domains. If you don't specify these values, * OpenSearch Service creates the domain with a public endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. */ public void setVPCOptions(VPCOptions vPCOptions) { this.vPCOptions = vPCOptions; } /** *

* Container for the values required to configure VPC access domains. If you don't specify these values, OpenSearch * Service creates the domain with a public endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. *

* * @return Container for the values required to configure VPC access domains. If you don't specify these values, * OpenSearch Service creates the domain with a public endpoint. For more information, see Launching your * Amazon OpenSearch Service domains using a VPC. */ public VPCOptions getVPCOptions() { return this.vPCOptions; } /** *

* Container for the values required to configure VPC access domains. If you don't specify these values, OpenSearch * Service creates the domain with a public endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. *

* * @param vPCOptions * Container for the values required to configure VPC access domains. If you don't specify these values, * OpenSearch Service creates the domain with a public endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withVPCOptions(VPCOptions vPCOptions) { setVPCOptions(vPCOptions); return this; } /** *

* Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring Amazon * Cognito authentication for OpenSearch Dashboards. *

* * @param cognitoOptions * Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring * Amazon Cognito authentication for OpenSearch Dashboards. */ public void setCognitoOptions(CognitoOptions cognitoOptions) { this.cognitoOptions = cognitoOptions; } /** *

* Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring Amazon * Cognito authentication for OpenSearch Dashboards. *

* * @return Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring * Amazon Cognito authentication for OpenSearch Dashboards. */ public CognitoOptions getCognitoOptions() { return this.cognitoOptions; } /** *

* Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring Amazon * Cognito authentication for OpenSearch Dashboards. *

* * @param cognitoOptions * Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring * Amazon Cognito authentication for OpenSearch Dashboards. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withCognitoOptions(CognitoOptions cognitoOptions) { setCognitoOptions(cognitoOptions); return this; } /** *

* Key-value pairs to enable encryption at rest. *

* * @param encryptionAtRestOptions * Key-value pairs to enable encryption at rest. */ public void setEncryptionAtRestOptions(EncryptionAtRestOptions encryptionAtRestOptions) { this.encryptionAtRestOptions = encryptionAtRestOptions; } /** *

* Key-value pairs to enable encryption at rest. *

* * @return Key-value pairs to enable encryption at rest. */ public EncryptionAtRestOptions getEncryptionAtRestOptions() { return this.encryptionAtRestOptions; } /** *

* Key-value pairs to enable encryption at rest. *

* * @param encryptionAtRestOptions * Key-value pairs to enable encryption at rest. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withEncryptionAtRestOptions(EncryptionAtRestOptions encryptionAtRestOptions) { setEncryptionAtRestOptions(encryptionAtRestOptions); return this; } /** *

* Enables node-to-node encryption. *

* * @param nodeToNodeEncryptionOptions * Enables node-to-node encryption. */ public void setNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptions nodeToNodeEncryptionOptions) { this.nodeToNodeEncryptionOptions = nodeToNodeEncryptionOptions; } /** *

* Enables node-to-node encryption. *

* * @return Enables node-to-node encryption. */ public NodeToNodeEncryptionOptions getNodeToNodeEncryptionOptions() { return this.nodeToNodeEncryptionOptions; } /** *

* Enables node-to-node encryption. *

* * @param nodeToNodeEncryptionOptions * Enables node-to-node encryption. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptions nodeToNodeEncryptionOptions) { setNodeToNodeEncryptionOptions(nodeToNodeEncryptionOptions); return this; } /** *

* Key-value pairs to specify advanced configuration options. The following key-value pairs are supported: *

*
    *
  • *

    * "rest.action.multi.allow_explicit_index": "true" | "false" - Note the use of a string rather than a * boolean. Specifies whether explicit references to indexes are allowed inside the body of HTTP requests. If you * want to configure access policies for domain sub-resources, such as specific indexes and domain APIs, you must * disable this property. Default is true. *

    *
  • *
  • *

    * "indices.fielddata.cache.size": "80" - Note the use of a string rather than a boolean. Specifies * the percentage of heap space allocated to field data. Default is unbounded. *

    *
  • *
  • *

    * "indices.query.bool.max_clause_count": "1024" - Note the use of a string rather than a boolean. * Specifies the maximum number of clauses allowed in a Lucene boolean query. Default is 1,024. Queries with more * than the permitted number of clauses result in a TooManyClauses error. *

    *
  • *
  • *

    * "override_main_response_version": "true" | "false" - Note the use of a string rather than a boolean. * Specifies whether the domain reports its version as 7.10 to allow Elasticsearch OSS clients and plugins to * continue working with it. Default is false when creating a domain and true when upgrading a domain. *

    *
  • *
*

* For more information, see Advanced cluster parameters. *

* * @return Key-value pairs to specify advanced configuration options. The following key-value pairs are * supported:

*
    *
  • *

    * "rest.action.multi.allow_explicit_index": "true" | "false" - Note the use of a string rather * than a boolean. Specifies whether explicit references to indexes are allowed inside the body of HTTP * requests. If you want to configure access policies for domain sub-resources, such as specific indexes and * domain APIs, you must disable this property. Default is true. *

    *
  • *
  • *

    * "indices.fielddata.cache.size": "80" - Note the use of a string rather than a boolean. * Specifies the percentage of heap space allocated to field data. Default is unbounded. *

    *
  • *
  • *

    * "indices.query.bool.max_clause_count": "1024" - Note the use of a string rather than a * boolean. Specifies the maximum number of clauses allowed in a Lucene boolean query. Default is 1,024. * Queries with more than the permitted number of clauses result in a TooManyClauses error. *

    *
  • *
  • *

    * "override_main_response_version": "true" | "false" - Note the use of a string rather than a * boolean. Specifies whether the domain reports its version as 7.10 to allow Elasticsearch OSS clients and * plugins to continue working with it. Default is false when creating a domain and true when upgrading a * domain. *

    *
  • *
*

* For more information, see Advanced cluster parameters. */ public java.util.Map getAdvancedOptions() { return advancedOptions; } /** *

* Key-value pairs to specify advanced configuration options. The following key-value pairs are supported: *

*
    *
  • *

    * "rest.action.multi.allow_explicit_index": "true" | "false" - Note the use of a string rather than a * boolean. Specifies whether explicit references to indexes are allowed inside the body of HTTP requests. If you * want to configure access policies for domain sub-resources, such as specific indexes and domain APIs, you must * disable this property. Default is true. *

    *
  • *
  • *

    * "indices.fielddata.cache.size": "80" - Note the use of a string rather than a boolean. Specifies * the percentage of heap space allocated to field data. Default is unbounded. *

    *
  • *
  • *

    * "indices.query.bool.max_clause_count": "1024" - Note the use of a string rather than a boolean. * Specifies the maximum number of clauses allowed in a Lucene boolean query. Default is 1,024. Queries with more * than the permitted number of clauses result in a TooManyClauses error. *

    *
  • *
  • *

    * "override_main_response_version": "true" | "false" - Note the use of a string rather than a boolean. * Specifies whether the domain reports its version as 7.10 to allow Elasticsearch OSS clients and plugins to * continue working with it. Default is false when creating a domain and true when upgrading a domain. *

    *
  • *
*

* For more information, see Advanced cluster parameters. *

* * @param advancedOptions * Key-value pairs to specify advanced configuration options. The following key-value pairs are * supported:

*
    *
  • *

    * "rest.action.multi.allow_explicit_index": "true" | "false" - Note the use of a string rather * than a boolean. Specifies whether explicit references to indexes are allowed inside the body of HTTP * requests. If you want to configure access policies for domain sub-resources, such as specific indexes and * domain APIs, you must disable this property. Default is true. *

    *
  • *
  • *

    * "indices.fielddata.cache.size": "80" - Note the use of a string rather than a boolean. * Specifies the percentage of heap space allocated to field data. Default is unbounded. *

    *
  • *
  • *

    * "indices.query.bool.max_clause_count": "1024" - Note the use of a string rather than a * boolean. Specifies the maximum number of clauses allowed in a Lucene boolean query. Default is 1,024. * Queries with more than the permitted number of clauses result in a TooManyClauses error. *

    *
  • *
  • *

    * "override_main_response_version": "true" | "false" - Note the use of a string rather than a * boolean. Specifies whether the domain reports its version as 7.10 to allow Elasticsearch OSS clients and * plugins to continue working with it. Default is false when creating a domain and true when upgrading a * domain. *

    *
  • *
*

* For more information, see Advanced cluster parameters. */ public void setAdvancedOptions(java.util.Map advancedOptions) { this.advancedOptions = advancedOptions; } /** *

* Key-value pairs to specify advanced configuration options. The following key-value pairs are supported: *

*
    *
  • *

    * "rest.action.multi.allow_explicit_index": "true" | "false" - Note the use of a string rather than a * boolean. Specifies whether explicit references to indexes are allowed inside the body of HTTP requests. If you * want to configure access policies for domain sub-resources, such as specific indexes and domain APIs, you must * disable this property. Default is true. *

    *
  • *
  • *

    * "indices.fielddata.cache.size": "80" - Note the use of a string rather than a boolean. Specifies * the percentage of heap space allocated to field data. Default is unbounded. *

    *
  • *
  • *

    * "indices.query.bool.max_clause_count": "1024" - Note the use of a string rather than a boolean. * Specifies the maximum number of clauses allowed in a Lucene boolean query. Default is 1,024. Queries with more * than the permitted number of clauses result in a TooManyClauses error. *

    *
  • *
  • *

    * "override_main_response_version": "true" | "false" - Note the use of a string rather than a boolean. * Specifies whether the domain reports its version as 7.10 to allow Elasticsearch OSS clients and plugins to * continue working with it. Default is false when creating a domain and true when upgrading a domain. *

    *
  • *
*

* For more information, see Advanced cluster parameters. *

* * @param advancedOptions * Key-value pairs to specify advanced configuration options. The following key-value pairs are * supported:

*
    *
  • *

    * "rest.action.multi.allow_explicit_index": "true" | "false" - Note the use of a string rather * than a boolean. Specifies whether explicit references to indexes are allowed inside the body of HTTP * requests. If you want to configure access policies for domain sub-resources, such as specific indexes and * domain APIs, you must disable this property. Default is true. *

    *
  • *
  • *

    * "indices.fielddata.cache.size": "80" - Note the use of a string rather than a boolean. * Specifies the percentage of heap space allocated to field data. Default is unbounded. *

    *
  • *
  • *

    * "indices.query.bool.max_clause_count": "1024" - Note the use of a string rather than a * boolean. Specifies the maximum number of clauses allowed in a Lucene boolean query. Default is 1,024. * Queries with more than the permitted number of clauses result in a TooManyClauses error. *

    *
  • *
  • *

    * "override_main_response_version": "true" | "false" - Note the use of a string rather than a * boolean. Specifies whether the domain reports its version as 7.10 to allow Elasticsearch OSS clients and * plugins to continue working with it. Default is false when creating a domain and true when upgrading a * domain. *

    *
  • *
*

* For more information, see Advanced cluster parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withAdvancedOptions(java.util.Map advancedOptions) { setAdvancedOptions(advancedOptions); return this; } /** * Add a single AdvancedOptions entry * * @see CreateDomainRequest#withAdvancedOptions * @returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest addAdvancedOptionsEntry(String key, String value) { if (null == this.advancedOptions) { this.advancedOptions = new java.util.HashMap(); } if (this.advancedOptions.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.advancedOptions.put(key, value); return this; } /** * Removes all the entries added into AdvancedOptions. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest clearAdvancedOptionsEntries() { this.advancedOptions = null; return this; } /** *

* Key-value pairs to configure log publishing. *

* * @return Key-value pairs to configure log publishing. */ public java.util.Map getLogPublishingOptions() { return logPublishingOptions; } /** *

* Key-value pairs to configure log publishing. *

* * @param logPublishingOptions * Key-value pairs to configure log publishing. */ public void setLogPublishingOptions(java.util.Map logPublishingOptions) { this.logPublishingOptions = logPublishingOptions; } /** *

* Key-value pairs to configure log publishing. *

* * @param logPublishingOptions * Key-value pairs to configure log publishing. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withLogPublishingOptions(java.util.Map logPublishingOptions) { setLogPublishingOptions(logPublishingOptions); return this; } /** * Add a single LogPublishingOptions entry * * @see CreateDomainRequest#withLogPublishingOptions * @returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest addLogPublishingOptionsEntry(String key, LogPublishingOption value) { if (null == this.logPublishingOptions) { this.logPublishingOptions = new java.util.HashMap(); } if (this.logPublishingOptions.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.logPublishingOptions.put(key, value); return this; } /** * Removes all the entries added into LogPublishingOptions. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest clearLogPublishingOptionsEntries() { this.logPublishingOptions = null; return this; } /** *

* Additional options for the domain endpoint, such as whether to require HTTPS for all traffic. *

* * @param domainEndpointOptions * Additional options for the domain endpoint, such as whether to require HTTPS for all traffic. */ public void setDomainEndpointOptions(DomainEndpointOptions domainEndpointOptions) { this.domainEndpointOptions = domainEndpointOptions; } /** *

* Additional options for the domain endpoint, such as whether to require HTTPS for all traffic. *

* * @return Additional options for the domain endpoint, such as whether to require HTTPS for all traffic. */ public DomainEndpointOptions getDomainEndpointOptions() { return this.domainEndpointOptions; } /** *

* Additional options for the domain endpoint, such as whether to require HTTPS for all traffic. *

* * @param domainEndpointOptions * Additional options for the domain endpoint, such as whether to require HTTPS for all traffic. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withDomainEndpointOptions(DomainEndpointOptions domainEndpointOptions) { setDomainEndpointOptions(domainEndpointOptions); return this; } /** *

* Options for fine-grained access control. *

* * @param advancedSecurityOptions * Options for fine-grained access control. */ public void setAdvancedSecurityOptions(AdvancedSecurityOptionsInput advancedSecurityOptions) { this.advancedSecurityOptions = advancedSecurityOptions; } /** *

* Options for fine-grained access control. *

* * @return Options for fine-grained access control. */ public AdvancedSecurityOptionsInput getAdvancedSecurityOptions() { return this.advancedSecurityOptions; } /** *

* Options for fine-grained access control. *

* * @param advancedSecurityOptions * Options for fine-grained access control. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withAdvancedSecurityOptions(AdvancedSecurityOptionsInput advancedSecurityOptions) { setAdvancedSecurityOptions(advancedSecurityOptions); return this; } /** *

* List of tags to add to the domain upon creation. *

* * @return List of tags to add to the domain upon creation. */ public java.util.List getTagList() { return tagList; } /** *

* List of tags to add to the domain upon creation. *

* * @param tagList * List of tags to add to the domain upon creation. */ public void setTagList(java.util.Collection tagList) { if (tagList == null) { this.tagList = null; return; } this.tagList = new java.util.ArrayList(tagList); } /** *

* List of tags to add to the domain upon creation. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTagList(java.util.Collection)} or {@link #withTagList(java.util.Collection)} if you want to override * the existing values. *

* * @param tagList * List of tags to add to the domain upon creation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withTagList(Tag... tagList) { if (this.tagList == null) { setTagList(new java.util.ArrayList(tagList.length)); } for (Tag ele : tagList) { this.tagList.add(ele); } return this; } /** *

* List of tags to add to the domain upon creation. *

* * @param tagList * List of tags to add to the domain upon creation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withTagList(java.util.Collection tagList) { setTagList(tagList); return this; } /** *

* Options for Auto-Tune. *

* * @param autoTuneOptions * Options for Auto-Tune. */ public void setAutoTuneOptions(AutoTuneOptionsInput autoTuneOptions) { this.autoTuneOptions = autoTuneOptions; } /** *

* Options for Auto-Tune. *

* * @return Options for Auto-Tune. */ public AutoTuneOptionsInput getAutoTuneOptions() { return this.autoTuneOptions; } /** *

* Options for Auto-Tune. *

* * @param autoTuneOptions * Options for Auto-Tune. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withAutoTuneOptions(AutoTuneOptionsInput autoTuneOptions) { setAutoTuneOptions(autoTuneOptions); return this; } /** *

* Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on the * domain, including service software updates and Auto-Tune enhancements that require a blue/green deployment. If no * options are specified, the default start time of 10:00 P.M. local time (for the Region that the domain is created * in) is used. *

* * @param offPeakWindowOptions * Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on * the domain, including service software updates and Auto-Tune enhancements that require a blue/green * deployment. If no options are specified, the default start time of 10:00 P.M. local time (for the Region * that the domain is created in) is used. */ public void setOffPeakWindowOptions(OffPeakWindowOptions offPeakWindowOptions) { this.offPeakWindowOptions = offPeakWindowOptions; } /** *

* Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on the * domain, including service software updates and Auto-Tune enhancements that require a blue/green deployment. If no * options are specified, the default start time of 10:00 P.M. local time (for the Region that the domain is created * in) is used. *

* * @return Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on * the domain, including service software updates and Auto-Tune enhancements that require a blue/green * deployment. If no options are specified, the default start time of 10:00 P.M. local time (for the Region * that the domain is created in) is used. */ public OffPeakWindowOptions getOffPeakWindowOptions() { return this.offPeakWindowOptions; } /** *

* Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on the * domain, including service software updates and Auto-Tune enhancements that require a blue/green deployment. If no * options are specified, the default start time of 10:00 P.M. local time (for the Region that the domain is created * in) is used. *

* * @param offPeakWindowOptions * Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on * the domain, including service software updates and Auto-Tune enhancements that require a blue/green * deployment. If no options are specified, the default start time of 10:00 P.M. local time (for the Region * that the domain is created in) is used. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withOffPeakWindowOptions(OffPeakWindowOptions offPeakWindowOptions) { setOffPeakWindowOptions(offPeakWindowOptions); return this; } /** *

* Software update options for the domain. *

* * @param softwareUpdateOptions * Software update options for the domain. */ public void setSoftwareUpdateOptions(SoftwareUpdateOptions softwareUpdateOptions) { this.softwareUpdateOptions = softwareUpdateOptions; } /** *

* Software update options for the domain. *

* * @return Software update options for the domain. */ public SoftwareUpdateOptions getSoftwareUpdateOptions() { return this.softwareUpdateOptions; } /** *

* Software update options for the domain. *

* * @param softwareUpdateOptions * Software update options for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDomainRequest withSoftwareUpdateOptions(SoftwareUpdateOptions softwareUpdateOptions) { setSoftwareUpdateOptions(softwareUpdateOptions); 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 (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getClusterConfig() != null) sb.append("ClusterConfig: ").append(getClusterConfig()).append(","); if (getEBSOptions() != null) sb.append("EBSOptions: ").append(getEBSOptions()).append(","); if (getAccessPolicies() != null) sb.append("AccessPolicies: ").append(getAccessPolicies()).append(","); if (getSnapshotOptions() != null) sb.append("SnapshotOptions: ").append(getSnapshotOptions()).append(","); if (getVPCOptions() != null) sb.append("VPCOptions: ").append(getVPCOptions()).append(","); if (getCognitoOptions() != null) sb.append("CognitoOptions: ").append(getCognitoOptions()).append(","); if (getEncryptionAtRestOptions() != null) sb.append("EncryptionAtRestOptions: ").append(getEncryptionAtRestOptions()).append(","); if (getNodeToNodeEncryptionOptions() != null) sb.append("NodeToNodeEncryptionOptions: ").append(getNodeToNodeEncryptionOptions()).append(","); if (getAdvancedOptions() != null) sb.append("AdvancedOptions: ").append(getAdvancedOptions()).append(","); if (getLogPublishingOptions() != null) sb.append("LogPublishingOptions: ").append(getLogPublishingOptions()).append(","); if (getDomainEndpointOptions() != null) sb.append("DomainEndpointOptions: ").append(getDomainEndpointOptions()).append(","); if (getAdvancedSecurityOptions() != null) sb.append("AdvancedSecurityOptions: ").append(getAdvancedSecurityOptions()).append(","); if (getTagList() != null) sb.append("TagList: ").append(getTagList()).append(","); if (getAutoTuneOptions() != null) sb.append("AutoTuneOptions: ").append(getAutoTuneOptions()).append(","); if (getOffPeakWindowOptions() != null) sb.append("OffPeakWindowOptions: ").append(getOffPeakWindowOptions()).append(","); if (getSoftwareUpdateOptions() != null) sb.append("SoftwareUpdateOptions: ").append(getSoftwareUpdateOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDomainRequest == false) return false; CreateDomainRequest other = (CreateDomainRequest) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getClusterConfig() == null ^ this.getClusterConfig() == null) return false; if (other.getClusterConfig() != null && other.getClusterConfig().equals(this.getClusterConfig()) == 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.getVPCOptions() == null ^ this.getVPCOptions() == null) return false; if (other.getVPCOptions() != null && other.getVPCOptions().equals(this.getVPCOptions()) == false) return false; if (other.getCognitoOptions() == null ^ this.getCognitoOptions() == null) return false; if (other.getCognitoOptions() != null && other.getCognitoOptions().equals(this.getCognitoOptions()) == false) return false; if (other.getEncryptionAtRestOptions() == null ^ this.getEncryptionAtRestOptions() == null) return false; if (other.getEncryptionAtRestOptions() != null && other.getEncryptionAtRestOptions().equals(this.getEncryptionAtRestOptions()) == false) return false; if (other.getNodeToNodeEncryptionOptions() == null ^ this.getNodeToNodeEncryptionOptions() == null) return false; if (other.getNodeToNodeEncryptionOptions() != null && other.getNodeToNodeEncryptionOptions().equals(this.getNodeToNodeEncryptionOptions()) == false) return false; if (other.getAdvancedOptions() == null ^ this.getAdvancedOptions() == null) return false; if (other.getAdvancedOptions() != null && other.getAdvancedOptions().equals(this.getAdvancedOptions()) == false) return false; if (other.getLogPublishingOptions() == null ^ this.getLogPublishingOptions() == null) return false; if (other.getLogPublishingOptions() != null && other.getLogPublishingOptions().equals(this.getLogPublishingOptions()) == false) return false; if (other.getDomainEndpointOptions() == null ^ this.getDomainEndpointOptions() == null) return false; if (other.getDomainEndpointOptions() != null && other.getDomainEndpointOptions().equals(this.getDomainEndpointOptions()) == false) return false; if (other.getAdvancedSecurityOptions() == null ^ this.getAdvancedSecurityOptions() == null) return false; if (other.getAdvancedSecurityOptions() != null && other.getAdvancedSecurityOptions().equals(this.getAdvancedSecurityOptions()) == false) return false; if (other.getTagList() == null ^ this.getTagList() == null) return false; if (other.getTagList() != null && other.getTagList().equals(this.getTagList()) == false) return false; if (other.getAutoTuneOptions() == null ^ this.getAutoTuneOptions() == null) return false; if (other.getAutoTuneOptions() != null && other.getAutoTuneOptions().equals(this.getAutoTuneOptions()) == false) return false; if (other.getOffPeakWindowOptions() == null ^ this.getOffPeakWindowOptions() == null) return false; if (other.getOffPeakWindowOptions() != null && other.getOffPeakWindowOptions().equals(this.getOffPeakWindowOptions()) == false) return false; if (other.getSoftwareUpdateOptions() == null ^ this.getSoftwareUpdateOptions() == null) return false; if (other.getSoftwareUpdateOptions() != null && other.getSoftwareUpdateOptions().equals(this.getSoftwareUpdateOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getClusterConfig() == null) ? 0 : getClusterConfig().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 + ((getVPCOptions() == null) ? 0 : getVPCOptions().hashCode()); hashCode = prime * hashCode + ((getCognitoOptions() == null) ? 0 : getCognitoOptions().hashCode()); hashCode = prime * hashCode + ((getEncryptionAtRestOptions() == null) ? 0 : getEncryptionAtRestOptions().hashCode()); hashCode = prime * hashCode + ((getNodeToNodeEncryptionOptions() == null) ? 0 : getNodeToNodeEncryptionOptions().hashCode()); hashCode = prime * hashCode + ((getAdvancedOptions() == null) ? 0 : getAdvancedOptions().hashCode()); hashCode = prime * hashCode + ((getLogPublishingOptions() == null) ? 0 : getLogPublishingOptions().hashCode()); hashCode = prime * hashCode + ((getDomainEndpointOptions() == null) ? 0 : getDomainEndpointOptions().hashCode()); hashCode = prime * hashCode + ((getAdvancedSecurityOptions() == null) ? 0 : getAdvancedSecurityOptions().hashCode()); hashCode = prime * hashCode + ((getTagList() == null) ? 0 : getTagList().hashCode()); hashCode = prime * hashCode + ((getAutoTuneOptions() == null) ? 0 : getAutoTuneOptions().hashCode()); hashCode = prime * hashCode + ((getOffPeakWindowOptions() == null) ? 0 : getOffPeakWindowOptions().hashCode()); hashCode = prime * hashCode + ((getSoftwareUpdateOptions() == null) ? 0 : getSoftwareUpdateOptions().hashCode()); return hashCode; } @Override public CreateDomainRequest clone() { return (CreateDomainRequest) super.clone(); } }