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

com.amazonaws.services.securityhub.model.AwsElasticsearchDomainElasticsearchClusterConfigDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* details about the configuration of an OpenSearch cluster. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsElasticsearchDomainElasticsearchClusterConfigDetails implements Serializable, Cloneable, StructuredPojo { /** *

* The number of instances to use for the master node. If this attribute is specified, then * DedicatedMasterEnabled must be true. *

*/ private Integer dedicatedMasterCount; /** *

* Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs cluster * management tasks, but doesn't hold data or respond to data upload requests. *

*/ private Boolean dedicatedMasterEnabled; /** *

* The hardware configuration of the computer that hosts the dedicated master node. A sample value is * m3.medium.elasticsearch. If this attribute is specified, then DedicatedMasterEnabled * must be true. *

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. *

*/ private String dedicatedMasterType; /** *

* The number of data nodes to use in the Elasticsearch domain. *

*/ private Integer instanceCount; /** *

* The instance type for your data nodes. For example, m3.medium.elasticsearch. *

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. *

*/ private String instanceType; /** *

* Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is true. *

*/ private AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails zoneAwarenessConfig; /** *

* Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch * allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This * prevents data loss and minimizes downtime if a node or data center fails. *

*/ private Boolean zoneAwarenessEnabled; /** *

* The number of instances to use for the master node. If this attribute is specified, then * DedicatedMasterEnabled must be true. *

* * @param dedicatedMasterCount * The number of instances to use for the master node. If this attribute is specified, then * DedicatedMasterEnabled must be true. */ public void setDedicatedMasterCount(Integer dedicatedMasterCount) { this.dedicatedMasterCount = dedicatedMasterCount; } /** *

* The number of instances to use for the master node. If this attribute is specified, then * DedicatedMasterEnabled must be true. *

* * @return The number of instances to use for the master node. If this attribute is specified, then * DedicatedMasterEnabled must be true. */ public Integer getDedicatedMasterCount() { return this.dedicatedMasterCount; } /** *

* The number of instances to use for the master node. If this attribute is specified, then * DedicatedMasterEnabled must be true. *

* * @param dedicatedMasterCount * The number of instances to use for the master node. If this attribute is specified, then * DedicatedMasterEnabled must be true. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticsearchDomainElasticsearchClusterConfigDetails withDedicatedMasterCount(Integer dedicatedMasterCount) { setDedicatedMasterCount(dedicatedMasterCount); return this; } /** *

* Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs cluster * management tasks, but doesn't hold data or respond to data upload requests. *

* * @param dedicatedMasterEnabled * Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs * cluster management tasks, but doesn't hold data or respond to data upload requests. */ public void setDedicatedMasterEnabled(Boolean dedicatedMasterEnabled) { this.dedicatedMasterEnabled = dedicatedMasterEnabled; } /** *

* Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs cluster * management tasks, but doesn't hold data or respond to data upload requests. *

* * @return Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs * cluster management tasks, but doesn't hold data or respond to data upload requests. */ public Boolean getDedicatedMasterEnabled() { return this.dedicatedMasterEnabled; } /** *

* Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs cluster * management tasks, but doesn't hold data or respond to data upload requests. *

* * @param dedicatedMasterEnabled * Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs * cluster management tasks, but doesn't hold data or respond to data upload requests. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticsearchDomainElasticsearchClusterConfigDetails withDedicatedMasterEnabled(Boolean dedicatedMasterEnabled) { setDedicatedMasterEnabled(dedicatedMasterEnabled); return this; } /** *

* Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs cluster * management tasks, but doesn't hold data or respond to data upload requests. *

* * @return Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs * cluster management tasks, but doesn't hold data or respond to data upload requests. */ public Boolean isDedicatedMasterEnabled() { return this.dedicatedMasterEnabled; } /** *

* The hardware configuration of the computer that hosts the dedicated master node. A sample value is * m3.medium.elasticsearch. If this attribute is specified, then DedicatedMasterEnabled * must be true. *

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. *

* * @param dedicatedMasterType * The hardware configuration of the computer that hosts the dedicated master node. A sample value is * m3.medium.elasticsearch. If this attribute is specified, then * DedicatedMasterEnabled must be true.

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. */ public void setDedicatedMasterType(String dedicatedMasterType) { this.dedicatedMasterType = dedicatedMasterType; } /** *

* The hardware configuration of the computer that hosts the dedicated master node. A sample value is * m3.medium.elasticsearch. If this attribute is specified, then DedicatedMasterEnabled * must be true. *

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. *

* * @return The hardware configuration of the computer that hosts the dedicated master node. A sample value is * m3.medium.elasticsearch. If this attribute is specified, then * DedicatedMasterEnabled must be true.

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. */ public String getDedicatedMasterType() { return this.dedicatedMasterType; } /** *

* The hardware configuration of the computer that hosts the dedicated master node. A sample value is * m3.medium.elasticsearch. If this attribute is specified, then DedicatedMasterEnabled * must be true. *

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. *

* * @param dedicatedMasterType * The hardware configuration of the computer that hosts the dedicated master node. A sample value is * m3.medium.elasticsearch. If this attribute is specified, then * DedicatedMasterEnabled must be true.

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticsearchDomainElasticsearchClusterConfigDetails withDedicatedMasterType(String dedicatedMasterType) { setDedicatedMasterType(dedicatedMasterType); return this; } /** *

* The number of data nodes to use in the Elasticsearch domain. *

* * @param instanceCount * The number of data nodes to use in the Elasticsearch domain. */ public void setInstanceCount(Integer instanceCount) { this.instanceCount = instanceCount; } /** *

* The number of data nodes to use in the Elasticsearch domain. *

* * @return The number of data nodes to use in the Elasticsearch domain. */ public Integer getInstanceCount() { return this.instanceCount; } /** *

* The number of data nodes to use in the Elasticsearch domain. *

* * @param instanceCount * The number of data nodes to use in the Elasticsearch domain. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticsearchDomainElasticsearchClusterConfigDetails withInstanceCount(Integer instanceCount) { setInstanceCount(instanceCount); return this; } /** *

* The instance type for your data nodes. For example, m3.medium.elasticsearch. *

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. *

* * @param instanceType * The instance type for your data nodes. For example, m3.medium.elasticsearch.

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** *

* The instance type for your data nodes. For example, m3.medium.elasticsearch. *

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. *

* * @return The instance type for your data nodes. For example, m3.medium.elasticsearch.

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. */ public String getInstanceType() { return this.instanceType; } /** *

* The instance type for your data nodes. For example, m3.medium.elasticsearch. *

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. *

* * @param instanceType * The instance type for your data nodes. For example, m3.medium.elasticsearch.

*

* For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer * Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticsearchDomainElasticsearchClusterConfigDetails withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *

* Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is true. *

* * @param zoneAwarenessConfig * Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is * true. */ public void setZoneAwarenessConfig(AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails zoneAwarenessConfig) { this.zoneAwarenessConfig = zoneAwarenessConfig; } /** *

* Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is true. *

* * @return Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is * true. */ public AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails getZoneAwarenessConfig() { return this.zoneAwarenessConfig; } /** *

* Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is true. *

* * @param zoneAwarenessConfig * Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is * true. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticsearchDomainElasticsearchClusterConfigDetails withZoneAwarenessConfig( AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails zoneAwarenessConfig) { setZoneAwarenessConfig(zoneAwarenessConfig); return this; } /** *

* Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch * allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This * prevents data loss and minimizes downtime if a node or data center fails. *

* * @param zoneAwarenessEnabled * Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch * allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This * prevents data loss and minimizes downtime if a node or data center fails. */ public void setZoneAwarenessEnabled(Boolean zoneAwarenessEnabled) { this.zoneAwarenessEnabled = zoneAwarenessEnabled; } /** *

* Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch * allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This * prevents data loss and minimizes downtime if a node or data center fails. *

* * @return Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch * allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This * prevents data loss and minimizes downtime if a node or data center fails. */ public Boolean getZoneAwarenessEnabled() { return this.zoneAwarenessEnabled; } /** *

* Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch * allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This * prevents data loss and minimizes downtime if a node or data center fails. *

* * @param zoneAwarenessEnabled * Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch * allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This * prevents data loss and minimizes downtime if a node or data center fails. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticsearchDomainElasticsearchClusterConfigDetails withZoneAwarenessEnabled(Boolean zoneAwarenessEnabled) { setZoneAwarenessEnabled(zoneAwarenessEnabled); return this; } /** *

* Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch * allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This * prevents data loss and minimizes downtime if a node or data center fails. *

* * @return Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch * allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This * prevents data loss and minimizes downtime if a node or data center fails. */ public Boolean isZoneAwarenessEnabled() { return this.zoneAwarenessEnabled; } /** * 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 (getDedicatedMasterCount() != null) sb.append("DedicatedMasterCount: ").append(getDedicatedMasterCount()).append(","); if (getDedicatedMasterEnabled() != null) sb.append("DedicatedMasterEnabled: ").append(getDedicatedMasterEnabled()).append(","); if (getDedicatedMasterType() != null) sb.append("DedicatedMasterType: ").append(getDedicatedMasterType()).append(","); if (getInstanceCount() != null) sb.append("InstanceCount: ").append(getInstanceCount()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getZoneAwarenessConfig() != null) sb.append("ZoneAwarenessConfig: ").append(getZoneAwarenessConfig()).append(","); if (getZoneAwarenessEnabled() != null) sb.append("ZoneAwarenessEnabled: ").append(getZoneAwarenessEnabled()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsElasticsearchDomainElasticsearchClusterConfigDetails == false) return false; AwsElasticsearchDomainElasticsearchClusterConfigDetails other = (AwsElasticsearchDomainElasticsearchClusterConfigDetails) obj; if (other.getDedicatedMasterCount() == null ^ this.getDedicatedMasterCount() == null) return false; if (other.getDedicatedMasterCount() != null && other.getDedicatedMasterCount().equals(this.getDedicatedMasterCount()) == false) return false; if (other.getDedicatedMasterEnabled() == null ^ this.getDedicatedMasterEnabled() == null) return false; if (other.getDedicatedMasterEnabled() != null && other.getDedicatedMasterEnabled().equals(this.getDedicatedMasterEnabled()) == false) return false; if (other.getDedicatedMasterType() == null ^ this.getDedicatedMasterType() == null) return false; if (other.getDedicatedMasterType() != null && other.getDedicatedMasterType().equals(this.getDedicatedMasterType()) == false) return false; if (other.getInstanceCount() == null ^ this.getInstanceCount() == null) return false; if (other.getInstanceCount() != null && other.getInstanceCount().equals(this.getInstanceCount()) == false) return false; if (other.getInstanceType() == null ^ this.getInstanceType() == null) return false; if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false) return false; if (other.getZoneAwarenessConfig() == null ^ this.getZoneAwarenessConfig() == null) return false; if (other.getZoneAwarenessConfig() != null && other.getZoneAwarenessConfig().equals(this.getZoneAwarenessConfig()) == false) return false; if (other.getZoneAwarenessEnabled() == null ^ this.getZoneAwarenessEnabled() == null) return false; if (other.getZoneAwarenessEnabled() != null && other.getZoneAwarenessEnabled().equals(this.getZoneAwarenessEnabled()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDedicatedMasterCount() == null) ? 0 : getDedicatedMasterCount().hashCode()); hashCode = prime * hashCode + ((getDedicatedMasterEnabled() == null) ? 0 : getDedicatedMasterEnabled().hashCode()); hashCode = prime * hashCode + ((getDedicatedMasterType() == null) ? 0 : getDedicatedMasterType().hashCode()); hashCode = prime * hashCode + ((getInstanceCount() == null) ? 0 : getInstanceCount().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getZoneAwarenessConfig() == null) ? 0 : getZoneAwarenessConfig().hashCode()); hashCode = prime * hashCode + ((getZoneAwarenessEnabled() == null) ? 0 : getZoneAwarenessEnabled().hashCode()); return hashCode; } @Override public AwsElasticsearchDomainElasticsearchClusterConfigDetails clone() { try { return (AwsElasticsearchDomainElasticsearchClusterConfigDetails) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securityhub.model.transform.AwsElasticsearchDomainElasticsearchClusterConfigDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy