/* * 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; /** *

* Container for the request parameters to the UpdateDomain operation. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateDomainConfigRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the domain that you're updating. *

*/ private String domainName; /** *

* Changes that you want to make to the cluster configuration, such as the instance type and number of EC2 * instances. *

*/ private ClusterConfig clusterConfig; /** *

* The type and size of the EBS volume to attach to instances in the domain. *

*/ private EBSOptions eBSOptions; /** *

* Option to set the time, in UTC format, for the daily automated snapshot. Default value is 0 hours. *

*/ private SnapshotOptions snapshotOptions; /** *

* Options to specify the subnets and security groups for a VPC 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 OpenSearch Dashboards. *

*/ private CognitoOptions cognitoOptions; /** *

* 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; /** *

* Identity and Access Management (IAM) access policy as a JSON-formatted string. *

*/ private String accessPolicies; /** *

* Options to publish OpenSearch logs to Amazon CloudWatch Logs. *

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

* Encryption at rest options for the domain. *

*/ private EncryptionAtRestOptions encryptionAtRestOptions; /** *

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

*/ private DomainEndpointOptions domainEndpointOptions; /** *

* Node-to-node encryption options for the domain. *

*/ private NodeToNodeEncryptionOptions nodeToNodeEncryptionOptions; /** *

* Options for fine-grained access control. *

*/ private AdvancedSecurityOptionsInput advancedSecurityOptions; /** *

* Options for Auto-Tune. *

*/ private AutoTuneOptions autoTuneOptions; /** *

* This flag, when set to True, specifies whether the UpdateDomain request should return the results of * a dry run analysis without actually applying the change. A dry run determines what type of deployment the update * will cause. *

*/ private Boolean dryRun; /** *

* The type of dry run to perform. *

* */ private String dryRunMode; /** *

* Off-peak window options for the domain. *

*/ private OffPeakWindowOptions offPeakWindowOptions; /** *

* Service software update options for the domain. *

*/ private SoftwareUpdateOptions softwareUpdateOptions; /** *

* The name of the domain that you're updating. *

* * @param domainName * The name of the domain that you're updating. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** *

* The name of the domain that you're updating. *

* * @return The name of the domain that you're updating. */ public String getDomainName() { return this.domainName; } /** *

* The name of the domain that you're updating. *

* * @param domainName * The name of the domain that you're updating. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withDomainName(String domainName) { setDomainName(domainName); return this; } /** *

* Changes that you want to make to the cluster configuration, such as the instance type and number of EC2 * instances. *

* * @param clusterConfig * Changes that you want to make to the cluster configuration, such as the instance type and number of EC2 * instances. */ public void setClusterConfig(ClusterConfig clusterConfig) { this.clusterConfig = clusterConfig; } /** *

* Changes that you want to make to the cluster configuration, such as the instance type and number of EC2 * instances. *

* * @return Changes that you want to make to the cluster configuration, such as the instance type and number of EC2 * instances. */ public ClusterConfig getClusterConfig() { return this.clusterConfig; } /** *

* Changes that you want to make to the cluster configuration, such as the instance type and number of EC2 * instances. *

* * @param clusterConfig * Changes that you want to make to the cluster configuration, such as the instance type and number of EC2 * instances. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withClusterConfig(ClusterConfig clusterConfig) { setClusterConfig(clusterConfig); return this; } /** *

* The type and size of the EBS volume to attach to instances in the domain. *

* * @param eBSOptions * The type and size of the EBS volume to attach to instances in the domain. */ public void setEBSOptions(EBSOptions eBSOptions) { this.eBSOptions = eBSOptions; } /** *

* The type and size of the EBS volume to attach to instances in the domain. *

* * @return The type and size of the EBS volume to attach to instances in the domain. */ public EBSOptions getEBSOptions() { return this.eBSOptions; } /** *

* The type and size of the EBS volume to attach to instances in the domain. *

* * @param eBSOptions * The type and size of the EBS volume to attach to instances in the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withEBSOptions(EBSOptions eBSOptions) { setEBSOptions(eBSOptions); return this; } /** *

* Option to set the time, in UTC format, for the daily automated snapshot. Default value is 0 hours. *

* * @param snapshotOptions * Option to set the time, in UTC format, for the daily automated snapshot. Default value is 0 * hours. */ public void setSnapshotOptions(SnapshotOptions snapshotOptions) { this.snapshotOptions = snapshotOptions; } /** *

* Option to set the time, in UTC format, for the daily automated snapshot. Default value is 0 hours. *

* * @return Option to set the time, in UTC format, for the daily automated snapshot. Default value is 0 * hours. */ public SnapshotOptions getSnapshotOptions() { return this.snapshotOptions; } /** *

* Option to set the time, in UTC format, for the daily automated snapshot. Default value is 0 hours. *

* * @param snapshotOptions * Option to set the time, in UTC format, for the daily automated snapshot. Default value is 0 * hours. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withSnapshotOptions(SnapshotOptions snapshotOptions) { setSnapshotOptions(snapshotOptions); return this; } /** *

* Options to specify the subnets and security groups for a VPC endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. *

* * @param vPCOptions * Options to specify the subnets and security groups for a VPC endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. */ public void setVPCOptions(VPCOptions vPCOptions) { this.vPCOptions = vPCOptions; } /** *

* Options to specify the subnets and security groups for a VPC endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. *

* * @return Options to specify the subnets and security groups for a VPC endpoint. For more information, see Launching your * Amazon OpenSearch Service domains using a VPC. */ public VPCOptions getVPCOptions() { return this.vPCOptions; } /** *

* Options to specify the subnets and security groups for a VPC endpoint. For more information, see Launching your Amazon * OpenSearch Service domains using a VPC. *

* * @param vPCOptions * Options to specify the subnets and security groups for a VPC 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 UpdateDomainConfigRequest withVPCOptions(VPCOptions vPCOptions) { setVPCOptions(vPCOptions); return this; } /** *

* Key-value pairs to configure Amazon Cognito authentication for OpenSearch Dashboards. *

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

* Key-value pairs to configure Amazon Cognito authentication for OpenSearch Dashboards. *

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

* Key-value pairs to configure Amazon Cognito authentication for OpenSearch Dashboards. *

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

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

* *

* For more information, see Advanced cluster parameters. *

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

* *

* 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: *

* *

* For more information, see Advanced cluster parameters. *

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

* *

* 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: *

* *

* For more information, see Advanced cluster parameters. *

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

* *

* For more information, see Advanced cluster parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withAdvancedOptions(java.util.Map advancedOptions) { setAdvancedOptions(advancedOptions); return this; } /** * Add a single AdvancedOptions entry * * @see UpdateDomainConfigRequest#withAdvancedOptions * @returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest 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 UpdateDomainConfigRequest clearAdvancedOptionsEntries() { this.advancedOptions = null; return this; } /** *

* Identity and Access Management (IAM) access policy as a JSON-formatted string. *

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

* Identity and Access Management (IAM) access policy as a JSON-formatted string. *

* * @return Identity and Access Management (IAM) access policy as a JSON-formatted string. */ public String getAccessPolicies() { return this.accessPolicies; } /** *

* Identity and Access Management (IAM) access policy as a JSON-formatted string. *

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

* Options to publish OpenSearch logs to Amazon CloudWatch Logs. *

* * @return Options to publish OpenSearch logs to Amazon CloudWatch Logs. */ public java.util.Map getLogPublishingOptions() { return logPublishingOptions; } /** *

* Options to publish OpenSearch logs to Amazon CloudWatch Logs. *

* * @param logPublishingOptions * Options to publish OpenSearch logs to Amazon CloudWatch Logs. */ public void setLogPublishingOptions(java.util.Map logPublishingOptions) { this.logPublishingOptions = logPublishingOptions; } /** *

* Options to publish OpenSearch logs to Amazon CloudWatch Logs. *

* * @param logPublishingOptions * Options to publish OpenSearch logs to Amazon CloudWatch Logs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withLogPublishingOptions(java.util.Map logPublishingOptions) { setLogPublishingOptions(logPublishingOptions); return this; } /** * Add a single LogPublishingOptions entry * * @see UpdateDomainConfigRequest#withLogPublishingOptions * @returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest 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 UpdateDomainConfigRequest clearLogPublishingOptionsEntries() { this.logPublishingOptions = null; return this; } /** *

* Encryption at rest options for the domain. *

* * @param encryptionAtRestOptions * Encryption at rest options for the domain. */ public void setEncryptionAtRestOptions(EncryptionAtRestOptions encryptionAtRestOptions) { this.encryptionAtRestOptions = encryptionAtRestOptions; } /** *

* Encryption at rest options for the domain. *

* * @return Encryption at rest options for the domain. */ public EncryptionAtRestOptions getEncryptionAtRestOptions() { return this.encryptionAtRestOptions; } /** *

* Encryption at rest options for the domain. *

* * @param encryptionAtRestOptions * Encryption at rest options for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withEncryptionAtRestOptions(EncryptionAtRestOptions encryptionAtRestOptions) { setEncryptionAtRestOptions(encryptionAtRestOptions); 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 UpdateDomainConfigRequest withDomainEndpointOptions(DomainEndpointOptions domainEndpointOptions) { setDomainEndpointOptions(domainEndpointOptions); return this; } /** *

* Node-to-node encryption options for the domain. *

* * @param nodeToNodeEncryptionOptions * Node-to-node encryption options for the domain. */ public void setNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptions nodeToNodeEncryptionOptions) { this.nodeToNodeEncryptionOptions = nodeToNodeEncryptionOptions; } /** *

* Node-to-node encryption options for the domain. *

* * @return Node-to-node encryption options for the domain. */ public NodeToNodeEncryptionOptions getNodeToNodeEncryptionOptions() { return this.nodeToNodeEncryptionOptions; } /** *

* Node-to-node encryption options for the domain. *

* * @param nodeToNodeEncryptionOptions * Node-to-node encryption options for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptions nodeToNodeEncryptionOptions) { setNodeToNodeEncryptionOptions(nodeToNodeEncryptionOptions); 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 UpdateDomainConfigRequest withAdvancedSecurityOptions(AdvancedSecurityOptionsInput advancedSecurityOptions) { setAdvancedSecurityOptions(advancedSecurityOptions); return this; } /** *

* Options for Auto-Tune. *

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

* Options for Auto-Tune. *

* * @return Options for Auto-Tune. */ public AutoTuneOptions 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 UpdateDomainConfigRequest withAutoTuneOptions(AutoTuneOptions autoTuneOptions) { setAutoTuneOptions(autoTuneOptions); return this; } /** *

* This flag, when set to True, specifies whether the UpdateDomain request should return the results of * a dry run analysis without actually applying the change. A dry run determines what type of deployment the update * will cause. *

* * @param dryRun * This flag, when set to True, specifies whether the UpdateDomain request should return the * results of a dry run analysis without actually applying the change. A dry run determines what type of * deployment the update will cause. */ public void setDryRun(Boolean dryRun) { this.dryRun = dryRun; } /** *

* This flag, when set to True, specifies whether the UpdateDomain request should return the results of * a dry run analysis without actually applying the change. A dry run determines what type of deployment the update * will cause. *

* * @return This flag, when set to True, specifies whether the UpdateDomain request should return the * results of a dry run analysis without actually applying the change. A dry run determines what type of * deployment the update will cause. */ public Boolean getDryRun() { return this.dryRun; } /** *

* This flag, when set to True, specifies whether the UpdateDomain request should return the results of * a dry run analysis without actually applying the change. A dry run determines what type of deployment the update * will cause. *

* * @param dryRun * This flag, when set to True, specifies whether the UpdateDomain request should return the * results of a dry run analysis without actually applying the change. A dry run determines what type of * deployment the update will cause. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withDryRun(Boolean dryRun) { setDryRun(dryRun); return this; } /** *

* This flag, when set to True, specifies whether the UpdateDomain request should return the results of * a dry run analysis without actually applying the change. A dry run determines what type of deployment the update * will cause. *

* * @return This flag, when set to True, specifies whether the UpdateDomain request should return the * results of a dry run analysis without actually applying the change. A dry run determines what type of * deployment the update will cause. */ public Boolean isDryRun() { return this.dryRun; } /** *

* The type of dry run to perform. *

*
    *
  • *

    * Basic only returns the type of deployment (blue/green or dynamic) that the update will cause. *

    *
  • *
  • *

    * Verbose runs an additional check to validate the changes you're making. For more information, see Validating a domain update. *

    *
  • *
* * @param dryRunMode * The type of dry run to perform.

*
    *
  • *

    * Basic only returns the type of deployment (blue/green or dynamic) that the update will cause. *

    *
  • *
  • *

    * Verbose runs an additional check to validate the changes you're making. For more information, * see Validating a domain update. *

    *
  • * @see DryRunMode */ public void setDryRunMode(String dryRunMode) { this.dryRunMode = dryRunMode; } /** *

    * The type of dry run to perform. *

    *
      *
    • *

      * Basic only returns the type of deployment (blue/green or dynamic) that the update will cause. *

      *
    • *
    • *

      * Verbose runs an additional check to validate the changes you're making. For more information, see Validating a domain update. *

      *
    • *
    * * @return The type of dry run to perform.

    *
      *
    • *

      * Basic only returns the type of deployment (blue/green or dynamic) that the update will * cause. *

      *
    • *
    • *

      * Verbose runs an additional check to validate the changes you're making. For more * information, see Validating a domain update. *

      *
    • * @see DryRunMode */ public String getDryRunMode() { return this.dryRunMode; } /** *

      * The type of dry run to perform. *

      *
        *
      • *

        * Basic only returns the type of deployment (blue/green or dynamic) that the update will cause. *

        *
      • *
      • *

        * Verbose runs an additional check to validate the changes you're making. For more information, see Validating a domain update. *

        *
      • *
      * * @param dryRunMode * The type of dry run to perform.

      *
        *
      • *

        * Basic only returns the type of deployment (blue/green or dynamic) that the update will cause. *

        *
      • *
      • *

        * Verbose runs an additional check to validate the changes you're making. For more information, * see Validating a domain update. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see DryRunMode */ public UpdateDomainConfigRequest withDryRunMode(String dryRunMode) { setDryRunMode(dryRunMode); return this; } /** *

        * The type of dry run to perform. *

        *
          *
        • *

          * Basic only returns the type of deployment (blue/green or dynamic) that the update will cause. *

          *
        • *
        • *

          * Verbose runs an additional check to validate the changes you're making. For more information, see Validating a domain update. *

          *
        • *
        * * @param dryRunMode * The type of dry run to perform.

        *
          *
        • *

          * Basic only returns the type of deployment (blue/green or dynamic) that the update will cause. *

          *
        • *
        • *

          * Verbose runs an additional check to validate the changes you're making. For more information, * see Validating a domain update. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see DryRunMode */ public UpdateDomainConfigRequest withDryRunMode(DryRunMode dryRunMode) { this.dryRunMode = dryRunMode.toString(); return this; } /** *

          * Off-peak window options for the domain. *

          * * @param offPeakWindowOptions * Off-peak window options for the domain. */ public void setOffPeakWindowOptions(OffPeakWindowOptions offPeakWindowOptions) { this.offPeakWindowOptions = offPeakWindowOptions; } /** *

          * Off-peak window options for the domain. *

          * * @return Off-peak window options for the domain. */ public OffPeakWindowOptions getOffPeakWindowOptions() { return this.offPeakWindowOptions; } /** *

          * Off-peak window options for the domain. *

          * * @param offPeakWindowOptions * Off-peak window options for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest withOffPeakWindowOptions(OffPeakWindowOptions offPeakWindowOptions) { setOffPeakWindowOptions(offPeakWindowOptions); return this; } /** *

          * Service software update options for the domain. *

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

          * Service software update options for the domain. *

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

          * Service software update options for the domain. *

          * * @param softwareUpdateOptions * Service software update options for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainConfigRequest 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 (getClusterConfig() != null) sb.append("ClusterConfig: ").append(getClusterConfig()).append(","); if (getEBSOptions() != null) sb.append("EBSOptions: ").append(getEBSOptions()).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 (getAdvancedOptions() != null) sb.append("AdvancedOptions: ").append(getAdvancedOptions()).append(","); if (getAccessPolicies() != null) sb.append("AccessPolicies: ").append(getAccessPolicies()).append(","); if (getLogPublishingOptions() != null) sb.append("LogPublishingOptions: ").append(getLogPublishingOptions()).append(","); if (getEncryptionAtRestOptions() != null) sb.append("EncryptionAtRestOptions: ").append(getEncryptionAtRestOptions()).append(","); if (getDomainEndpointOptions() != null) sb.append("DomainEndpointOptions: ").append(getDomainEndpointOptions()).append(","); if (getNodeToNodeEncryptionOptions() != null) sb.append("NodeToNodeEncryptionOptions: ").append(getNodeToNodeEncryptionOptions()).append(","); if (getAdvancedSecurityOptions() != null) sb.append("AdvancedSecurityOptions: ").append(getAdvancedSecurityOptions()).append(","); if (getAutoTuneOptions() != null) sb.append("AutoTuneOptions: ").append(getAutoTuneOptions()).append(","); if (getDryRun() != null) sb.append("DryRun: ").append(getDryRun()).append(","); if (getDryRunMode() != null) sb.append("DryRunMode: ").append(getDryRunMode()).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 UpdateDomainConfigRequest == false) return false; UpdateDomainConfigRequest other = (UpdateDomainConfigRequest) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == 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.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.getAdvancedOptions() == null ^ this.getAdvancedOptions() == null) return false; if (other.getAdvancedOptions() != null && other.getAdvancedOptions().equals(this.getAdvancedOptions()) == 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.getLogPublishingOptions() == null ^ this.getLogPublishingOptions() == null) return false; if (other.getLogPublishingOptions() != null && other.getLogPublishingOptions().equals(this.getLogPublishingOptions()) == 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.getDomainEndpointOptions() == null ^ this.getDomainEndpointOptions() == null) return false; if (other.getDomainEndpointOptions() != null && other.getDomainEndpointOptions().equals(this.getDomainEndpointOptions()) == 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.getAdvancedSecurityOptions() == null ^ this.getAdvancedSecurityOptions() == null) return false; if (other.getAdvancedSecurityOptions() != null && other.getAdvancedSecurityOptions().equals(this.getAdvancedSecurityOptions()) == 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.getDryRun() == null ^ this.getDryRun() == null) return false; if (other.getDryRun() != null && other.getDryRun().equals(this.getDryRun()) == false) return false; if (other.getDryRunMode() == null ^ this.getDryRunMode() == null) return false; if (other.getDryRunMode() != null && other.getDryRunMode().equals(this.getDryRunMode()) == 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 + ((getClusterConfig() == null) ? 0 : getClusterConfig().hashCode()); hashCode = prime * hashCode + ((getEBSOptions() == null) ? 0 : getEBSOptions().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 + ((getAdvancedOptions() == null) ? 0 : getAdvancedOptions().hashCode()); hashCode = prime * hashCode + ((getAccessPolicies() == null) ? 0 : getAccessPolicies().hashCode()); hashCode = prime * hashCode + ((getLogPublishingOptions() == null) ? 0 : getLogPublishingOptions().hashCode()); hashCode = prime * hashCode + ((getEncryptionAtRestOptions() == null) ? 0 : getEncryptionAtRestOptions().hashCode()); hashCode = prime * hashCode + ((getDomainEndpointOptions() == null) ? 0 : getDomainEndpointOptions().hashCode()); hashCode = prime * hashCode + ((getNodeToNodeEncryptionOptions() == null) ? 0 : getNodeToNodeEncryptionOptions().hashCode()); hashCode = prime * hashCode + ((getAdvancedSecurityOptions() == null) ? 0 : getAdvancedSecurityOptions().hashCode()); hashCode = prime * hashCode + ((getAutoTuneOptions() == null) ? 0 : getAutoTuneOptions().hashCode()); hashCode = prime * hashCode + ((getDryRun() == null) ? 0 : getDryRun().hashCode()); hashCode = prime * hashCode + ((getDryRunMode() == null) ? 0 : getDryRunMode().hashCode()); hashCode = prime * hashCode + ((getOffPeakWindowOptions() == null) ? 0 : getOffPeakWindowOptions().hashCode()); hashCode = prime * hashCode + ((getSoftwareUpdateOptions() == null) ? 0 : getSoftwareUpdateOptions().hashCode()); return hashCode; } @Override public UpdateDomainConfigRequest clone() { return (UpdateDomainConfigRequest) super.clone(); } }