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

com.amazonaws.services.securityhub.model.AwsOpenSearchServiceDomainClusterConfigDetails 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 2016-2021 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 AwsOpenSearchServiceDomainClusterConfigDetails implements Serializable, Cloneable, StructuredPojo { /** *

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

*/ private Integer instanceCount; /** *

* Whether UltraWarm is enabled. *

*/ private Boolean warmEnabled; /** *

* The number of UltraWarm instances. *

*/ private Integer warmCount; /** *

* Whether to use a dedicated master node for the OpenSearch domain. A dedicated master node performs cluster * management tasks, but does not hold data or respond to data upload requests. *

*/ private Boolean dedicatedMasterEnabled; /** *

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

*/ private AwsOpenSearchServiceDomainClusterConfigZoneAwarenessConfigDetails zoneAwarenessConfig; /** *

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

*/ private Integer dedicatedMasterCount; /** *

* The instance type for your data nodes. *

*/ private String instanceType; /** *

* The type of UltraWarm instance. *

*/ private String warmType; /** *

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

*/ private Boolean zoneAwarenessEnabled; /** *

* The hardware configuration of the computer that hosts the dedicated master node. *

*

* If this attribute is specified, then DedicatedMasterEnabled must be true. *

*/ private String dedicatedMasterType; /** *

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

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

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

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

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

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

* Whether UltraWarm is enabled. *

* * @param warmEnabled * Whether UltraWarm is enabled. */ public void setWarmEnabled(Boolean warmEnabled) { this.warmEnabled = warmEnabled; } /** *

* Whether UltraWarm is enabled. *

* * @return Whether UltraWarm is enabled. */ public Boolean getWarmEnabled() { return this.warmEnabled; } /** *

* Whether UltraWarm is enabled. *

* * @param warmEnabled * Whether UltraWarm is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsOpenSearchServiceDomainClusterConfigDetails withWarmEnabled(Boolean warmEnabled) { setWarmEnabled(warmEnabled); return this; } /** *

* Whether UltraWarm is enabled. *

* * @return Whether UltraWarm is enabled. */ public Boolean isWarmEnabled() { return this.warmEnabled; } /** *

* The number of UltraWarm instances. *

* * @param warmCount * The number of UltraWarm instances. */ public void setWarmCount(Integer warmCount) { this.warmCount = warmCount; } /** *

* The number of UltraWarm instances. *

* * @return The number of UltraWarm instances. */ public Integer getWarmCount() { return this.warmCount; } /** *

* The number of UltraWarm instances. *

* * @param warmCount * The number of UltraWarm instances. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsOpenSearchServiceDomainClusterConfigDetails withWarmCount(Integer warmCount) { setWarmCount(warmCount); return this; } /** *

* Whether to use a dedicated master node for the OpenSearch domain. A dedicated master node performs cluster * management tasks, but does not hold data or respond to data upload requests. *

* * @param dedicatedMasterEnabled * Whether to use a dedicated master node for the OpenSearch domain. A dedicated master node performs cluster * management tasks, but does not 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 OpenSearch domain. A dedicated master node performs cluster * management tasks, but does not hold data or respond to data upload requests. *

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

* Whether to use a dedicated master node for the OpenSearch domain. A dedicated master node performs cluster * management tasks, but does not hold data or respond to data upload requests. *

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

* Whether to use a dedicated master node for the OpenSearch domain. A dedicated master node performs cluster * management tasks, but does not hold data or respond to data upload requests. *

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

* 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(AwsOpenSearchServiceDomainClusterConfigZoneAwarenessConfigDetails 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 AwsOpenSearchServiceDomainClusterConfigZoneAwarenessConfigDetails 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 AwsOpenSearchServiceDomainClusterConfigDetails withZoneAwarenessConfig( AwsOpenSearchServiceDomainClusterConfigZoneAwarenessConfigDetails zoneAwarenessConfig) { setZoneAwarenessConfig(zoneAwarenessConfig); return this; } /** *

* 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 AwsOpenSearchServiceDomainClusterConfigDetails withDedicatedMasterCount(Integer dedicatedMasterCount) { setDedicatedMasterCount(dedicatedMasterCount); return this; } /** *

* The instance type for your data nodes. *

* * @param instanceType * The instance type for your data nodes. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** *

* The instance type for your data nodes. *

* * @return The instance type for your data nodes. */ public String getInstanceType() { return this.instanceType; } /** *

* The instance type for your data nodes. *

* * @param instanceType * The instance type for your data nodes. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsOpenSearchServiceDomainClusterConfigDetails withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *

* The type of UltraWarm instance. *

* * @param warmType * The type of UltraWarm instance. */ public void setWarmType(String warmType) { this.warmType = warmType; } /** *

* The type of UltraWarm instance. *

* * @return The type of UltraWarm instance. */ public String getWarmType() { return this.warmType; } /** *

* The type of UltraWarm instance. *

* * @param warmType * The type of UltraWarm instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsOpenSearchServiceDomainClusterConfigDetails withWarmType(String warmType) { setWarmType(warmType); return this; } /** *

* Whether to enable zone awareness for the OpenSearch domain. When zone awareness is enabled, OpenSearch Service * allocates the cluster's nodes and replica index shards across Availability Zones (AZs) 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 OpenSearch domain. When zone awareness is enabled, OpenSearch * Service allocates the cluster's nodes and replica index shards across Availability Zones (AZs) 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 OpenSearch domain. When zone awareness is enabled, OpenSearch Service * allocates the cluster's nodes and replica index shards across Availability Zones (AZs) 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 OpenSearch domain. When zone awareness is enabled, OpenSearch * Service allocates the cluster's nodes and replica index shards across Availability Zones (AZs) 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 OpenSearch domain. When zone awareness is enabled, OpenSearch Service * allocates the cluster's nodes and replica index shards across Availability Zones (AZs) 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 OpenSearch domain. When zone awareness is enabled, OpenSearch * Service allocates the cluster's nodes and replica index shards across Availability Zones (AZs) 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 AwsOpenSearchServiceDomainClusterConfigDetails withZoneAwarenessEnabled(Boolean zoneAwarenessEnabled) { setZoneAwarenessEnabled(zoneAwarenessEnabled); return this; } /** *

* Whether to enable zone awareness for the OpenSearch domain. When zone awareness is enabled, OpenSearch Service * allocates the cluster's nodes and replica index shards across Availability Zones (AZs) 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 OpenSearch domain. When zone awareness is enabled, OpenSearch * Service allocates the cluster's nodes and replica index shards across Availability Zones (AZs) in the * same Region. This prevents data loss and minimizes downtime if a node or data center fails. */ public Boolean isZoneAwarenessEnabled() { return this.zoneAwarenessEnabled; } /** *

* The hardware configuration of the computer that hosts the dedicated master node. *

*

* If this attribute is specified, then DedicatedMasterEnabled must be true. *

* * @param dedicatedMasterType * The hardware configuration of the computer that hosts the dedicated master node.

*

* If this attribute is specified, then DedicatedMasterEnabled must be true. */ public void setDedicatedMasterType(String dedicatedMasterType) { this.dedicatedMasterType = dedicatedMasterType; } /** *

* The hardware configuration of the computer that hosts the dedicated master node. *

*

* If this attribute is specified, then DedicatedMasterEnabled must be true. *

* * @return The hardware configuration of the computer that hosts the dedicated master node.

*

* If this attribute is specified, then DedicatedMasterEnabled must be true. */ public String getDedicatedMasterType() { return this.dedicatedMasterType; } /** *

* The hardware configuration of the computer that hosts the dedicated master node. *

*

* If this attribute is specified, then DedicatedMasterEnabled must be true. *

* * @param dedicatedMasterType * The hardware configuration of the computer that hosts the dedicated 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 AwsOpenSearchServiceDomainClusterConfigDetails withDedicatedMasterType(String dedicatedMasterType) { setDedicatedMasterType(dedicatedMasterType); 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 (getInstanceCount() != null) sb.append("InstanceCount: ").append(getInstanceCount()).append(","); if (getWarmEnabled() != null) sb.append("WarmEnabled: ").append(getWarmEnabled()).append(","); if (getWarmCount() != null) sb.append("WarmCount: ").append(getWarmCount()).append(","); if (getDedicatedMasterEnabled() != null) sb.append("DedicatedMasterEnabled: ").append(getDedicatedMasterEnabled()).append(","); if (getZoneAwarenessConfig() != null) sb.append("ZoneAwarenessConfig: ").append(getZoneAwarenessConfig()).append(","); if (getDedicatedMasterCount() != null) sb.append("DedicatedMasterCount: ").append(getDedicatedMasterCount()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getWarmType() != null) sb.append("WarmType: ").append(getWarmType()).append(","); if (getZoneAwarenessEnabled() != null) sb.append("ZoneAwarenessEnabled: ").append(getZoneAwarenessEnabled()).append(","); if (getDedicatedMasterType() != null) sb.append("DedicatedMasterType: ").append(getDedicatedMasterType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsOpenSearchServiceDomainClusterConfigDetails == false) return false; AwsOpenSearchServiceDomainClusterConfigDetails other = (AwsOpenSearchServiceDomainClusterConfigDetails) obj; if (other.getInstanceCount() == null ^ this.getInstanceCount() == null) return false; if (other.getInstanceCount() != null && other.getInstanceCount().equals(this.getInstanceCount()) == false) return false; if (other.getWarmEnabled() == null ^ this.getWarmEnabled() == null) return false; if (other.getWarmEnabled() != null && other.getWarmEnabled().equals(this.getWarmEnabled()) == false) return false; if (other.getWarmCount() == null ^ this.getWarmCount() == null) return false; if (other.getWarmCount() != null && other.getWarmCount().equals(this.getWarmCount()) == 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.getZoneAwarenessConfig() == null ^ this.getZoneAwarenessConfig() == null) return false; if (other.getZoneAwarenessConfig() != null && other.getZoneAwarenessConfig().equals(this.getZoneAwarenessConfig()) == false) return false; if (other.getDedicatedMasterCount() == null ^ this.getDedicatedMasterCount() == null) return false; if (other.getDedicatedMasterCount() != null && other.getDedicatedMasterCount().equals(this.getDedicatedMasterCount()) == 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.getWarmType() == null ^ this.getWarmType() == null) return false; if (other.getWarmType() != null && other.getWarmType().equals(this.getWarmType()) == false) return false; if (other.getZoneAwarenessEnabled() == null ^ this.getZoneAwarenessEnabled() == null) return false; if (other.getZoneAwarenessEnabled() != null && other.getZoneAwarenessEnabled().equals(this.getZoneAwarenessEnabled()) == false) return false; if (other.getDedicatedMasterType() == null ^ this.getDedicatedMasterType() == null) return false; if (other.getDedicatedMasterType() != null && other.getDedicatedMasterType().equals(this.getDedicatedMasterType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInstanceCount() == null) ? 0 : getInstanceCount().hashCode()); hashCode = prime * hashCode + ((getWarmEnabled() == null) ? 0 : getWarmEnabled().hashCode()); hashCode = prime * hashCode + ((getWarmCount() == null) ? 0 : getWarmCount().hashCode()); hashCode = prime * hashCode + ((getDedicatedMasterEnabled() == null) ? 0 : getDedicatedMasterEnabled().hashCode()); hashCode = prime * hashCode + ((getZoneAwarenessConfig() == null) ? 0 : getZoneAwarenessConfig().hashCode()); hashCode = prime * hashCode + ((getDedicatedMasterCount() == null) ? 0 : getDedicatedMasterCount().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getWarmType() == null) ? 0 : getWarmType().hashCode()); hashCode = prime * hashCode + ((getZoneAwarenessEnabled() == null) ? 0 : getZoneAwarenessEnabled().hashCode()); hashCode = prime * hashCode + ((getDedicatedMasterType() == null) ? 0 : getDedicatedMasterType().hashCode()); return hashCode; } @Override public AwsOpenSearchServiceDomainClusterConfigDetails clone() { try { return (AwsOpenSearchServiceDomainClusterConfigDetails) 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.AwsOpenSearchServiceDomainClusterConfigDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy