Class ClusterConfig
- java.lang.Object
-
- software.amazon.awssdk.services.opensearch.model.ClusterConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ClusterConfig.Builder,ClusterConfig>
@Generated("software.amazon.awssdk:codegen") public final class ClusterConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ClusterConfig.Builder,ClusterConfig>
Container for the cluster configuration of an OpenSearch Service domain. For more information, see Creating and managing Amazon OpenSearch Service domains.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceClusterConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClusterConfig.Builderbuilder()ColdStorageOptionscoldStorageOptions()Container for cold storage configuration options.IntegerdedicatedMasterCount()Number of dedicated master nodes in the cluster.BooleandedicatedMasterEnabled()Indicates whether dedicated master nodes are enabled for the cluster.Trueif the cluster will use a dedicated master node.Falseif the cluster will not.OpenSearchPartitionInstanceTypededicatedMasterType()OpenSearch Service instance type of the dedicated master nodes in the cluster.StringdedicatedMasterTypeAsString()OpenSearch Service instance type of the dedicated master nodes in the cluster.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasNodeOptions()For responses, this returns true if the service returned a value for the NodeOptions property.IntegerinstanceCount()Number of data nodes in the cluster.OpenSearchPartitionInstanceTypeinstanceType()Instance type of data nodes in the cluster.StringinstanceTypeAsString()Instance type of data nodes in the cluster.BooleanmultiAZWithStandbyEnabled()A boolean that indicates whether a multi-AZ domain is turned on with a standby AZ.List<NodeOption>nodeOptions()List of node options for the domain.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ClusterConfig.Builder>serializableBuilderClass()ClusterConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegerwarmCount()The number of warm nodes in the cluster.BooleanwarmEnabled()Whether to enable warm storage for the cluster.OpenSearchWarmPartitionInstanceTypewarmType()The instance type for the cluster's warm nodes.StringwarmTypeAsString()The instance type for the cluster's warm nodes.ZoneAwarenessConfigzoneAwarenessConfig()Container for zone awareness configuration options.BooleanzoneAwarenessEnabled()Indicates whether multiple Availability Zones are enabled.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
instanceType
public final OpenSearchPartitionInstanceType instanceType()
Instance type of data nodes in the cluster.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnOpenSearchPartitionInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- Instance type of data nodes in the cluster.
- See Also:
OpenSearchPartitionInstanceType
-
instanceTypeAsString
public final String instanceTypeAsString()
Instance type of data nodes in the cluster.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnOpenSearchPartitionInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- Instance type of data nodes in the cluster.
- See Also:
OpenSearchPartitionInstanceType
-
instanceCount
public final Integer instanceCount()
Number of data nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
- Returns:
- Number of data nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
-
dedicatedMasterEnabled
public final Boolean dedicatedMasterEnabled()
Indicates whether dedicated master nodes are enabled for the cluster.
Trueif the cluster will use a dedicated master node.Falseif the cluster will not.- Returns:
- Indicates whether dedicated master nodes are enabled for the cluster.
Trueif the cluster will use a dedicated master node.Falseif the cluster will not.
-
zoneAwarenessEnabled
public final Boolean zoneAwarenessEnabled()
Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
- Returns:
- Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
-
zoneAwarenessConfig
public final ZoneAwarenessConfig zoneAwarenessConfig()
Container for zone awareness configuration options. Only required if
ZoneAwarenessEnabledistrue.- Returns:
- Container for zone awareness configuration options. Only required if
ZoneAwarenessEnabledistrue.
-
dedicatedMasterType
public final OpenSearchPartitionInstanceType dedicatedMasterType()
OpenSearch Service instance type of the dedicated master nodes in the cluster.
If the service returns an enum value that is not available in the current SDK version,
dedicatedMasterTypewill returnOpenSearchPartitionInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdedicatedMasterTypeAsString().- Returns:
- OpenSearch Service instance type of the dedicated master nodes in the cluster.
- See Also:
OpenSearchPartitionInstanceType
-
dedicatedMasterTypeAsString
public final String dedicatedMasterTypeAsString()
OpenSearch Service instance type of the dedicated master nodes in the cluster.
If the service returns an enum value that is not available in the current SDK version,
dedicatedMasterTypewill returnOpenSearchPartitionInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdedicatedMasterTypeAsString().- Returns:
- OpenSearch Service instance type of the dedicated master nodes in the cluster.
- See Also:
OpenSearchPartitionInstanceType
-
dedicatedMasterCount
public final Integer dedicatedMasterCount()
Number of dedicated master nodes in the cluster. This number must be greater than 2 and not 4, otherwise you receive a validation exception.
- Returns:
- Number of dedicated master nodes in the cluster. This number must be greater than 2 and not 4, otherwise you receive a validation exception.
-
warmEnabled
public final Boolean warmEnabled()
Whether to enable warm storage for the cluster.
- Returns:
- Whether to enable warm storage for the cluster.
-
warmType
public final OpenSearchWarmPartitionInstanceType warmType()
The instance type for the cluster's warm nodes.
If the service returns an enum value that is not available in the current SDK version,
warmTypewill returnOpenSearchWarmPartitionInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromwarmTypeAsString().- Returns:
- The instance type for the cluster's warm nodes.
- See Also:
OpenSearchWarmPartitionInstanceType
-
warmTypeAsString
public final String warmTypeAsString()
The instance type for the cluster's warm nodes.
If the service returns an enum value that is not available in the current SDK version,
warmTypewill returnOpenSearchWarmPartitionInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromwarmTypeAsString().- Returns:
- The instance type for the cluster's warm nodes.
- See Also:
OpenSearchWarmPartitionInstanceType
-
warmCount
public final Integer warmCount()
The number of warm nodes in the cluster.
- Returns:
- The number of warm nodes in the cluster.
-
coldStorageOptions
public final ColdStorageOptions coldStorageOptions()
Container for cold storage configuration options.
- Returns:
- Container for cold storage configuration options.
-
multiAZWithStandbyEnabled
public final Boolean multiAZWithStandbyEnabled()
A boolean that indicates whether a multi-AZ domain is turned on with a standby AZ. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
- Returns:
- A boolean that indicates whether a multi-AZ domain is turned on with a standby AZ. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
-
hasNodeOptions
public final boolean hasNodeOptions()
For responses, this returns true if the service returned a value for the NodeOptions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
nodeOptions
public final List<NodeOption> nodeOptions()
List of node options for the domain.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasNodeOptions()method.- Returns:
- List of node options for the domain.
-
toBuilder
public ClusterConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ClusterConfig.Builder,ClusterConfig>
-
builder
public static ClusterConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends ClusterConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-