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

software.amazon.awssdk.services.elasticsearch.model.ElasticsearchClusterConfig Maven / Gradle / Ivy

/*
 * Copyright 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 software.amazon.awssdk.services.elasticsearch.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* Specifies the configuration for the domain cluster, such as the type and number of instances. *

*/ @Generated("software.amazon.awssdk:codegen") public final class ElasticsearchClusterConfig implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField INSTANCE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .getter(getter(ElasticsearchClusterConfig::instanceTypeAsString)).setter(setter(Builder::instanceType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("InstanceType").build()).build(); private static final SdkField INSTANCE_COUNT_FIELD = SdkField. builder(MarshallingType.INTEGER) .getter(getter(ElasticsearchClusterConfig::instanceCount)).setter(setter(Builder::instanceCount)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("InstanceCount").build()).build(); private static final SdkField DEDICATED_MASTER_ENABLED_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .getter(getter(ElasticsearchClusterConfig::dedicatedMasterEnabled)).setter(setter(Builder::dedicatedMasterEnabled)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DedicatedMasterEnabled").build()) .build(); private static final SdkField ZONE_AWARENESS_ENABLED_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .getter(getter(ElasticsearchClusterConfig::zoneAwarenessEnabled)).setter(setter(Builder::zoneAwarenessEnabled)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ZoneAwarenessEnabled").build()) .build(); private static final SdkField ZONE_AWARENESS_CONFIG_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .getter(getter(ElasticsearchClusterConfig::zoneAwarenessConfig)).setter(setter(Builder::zoneAwarenessConfig)) .constructor(ZoneAwarenessConfig::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ZoneAwarenessConfig").build()) .build(); private static final SdkField DEDICATED_MASTER_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .getter(getter(ElasticsearchClusterConfig::dedicatedMasterTypeAsString)).setter(setter(Builder::dedicatedMasterType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DedicatedMasterType").build()) .build(); private static final SdkField DEDICATED_MASTER_COUNT_FIELD = SdkField. builder(MarshallingType.INTEGER) .getter(getter(ElasticsearchClusterConfig::dedicatedMasterCount)).setter(setter(Builder::dedicatedMasterCount)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DedicatedMasterCount").build()) .build(); private static final SdkField WARM_ENABLED_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .getter(getter(ElasticsearchClusterConfig::warmEnabled)).setter(setter(Builder::warmEnabled)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("WarmEnabled").build()).build(); private static final SdkField WARM_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .getter(getter(ElasticsearchClusterConfig::warmTypeAsString)).setter(setter(Builder::warmType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("WarmType").build()).build(); private static final SdkField WARM_COUNT_FIELD = SdkField. builder(MarshallingType.INTEGER) .getter(getter(ElasticsearchClusterConfig::warmCount)).setter(setter(Builder::warmCount)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("WarmCount").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(INSTANCE_TYPE_FIELD, INSTANCE_COUNT_FIELD, DEDICATED_MASTER_ENABLED_FIELD, ZONE_AWARENESS_ENABLED_FIELD, ZONE_AWARENESS_CONFIG_FIELD, DEDICATED_MASTER_TYPE_FIELD, DEDICATED_MASTER_COUNT_FIELD, WARM_ENABLED_FIELD, WARM_TYPE_FIELD, WARM_COUNT_FIELD)); private static final long serialVersionUID = 1L; private final String instanceType; private final Integer instanceCount; private final Boolean dedicatedMasterEnabled; private final Boolean zoneAwarenessEnabled; private final ZoneAwarenessConfig zoneAwarenessConfig; private final String dedicatedMasterType; private final Integer dedicatedMasterCount; private final Boolean warmEnabled; private final String warmType; private final Integer warmCount; private ElasticsearchClusterConfig(BuilderImpl builder) { this.instanceType = builder.instanceType; this.instanceCount = builder.instanceCount; this.dedicatedMasterEnabled = builder.dedicatedMasterEnabled; this.zoneAwarenessEnabled = builder.zoneAwarenessEnabled; this.zoneAwarenessConfig = builder.zoneAwarenessConfig; this.dedicatedMasterType = builder.dedicatedMasterType; this.dedicatedMasterCount = builder.dedicatedMasterCount; this.warmEnabled = builder.warmEnabled; this.warmType = builder.warmType; this.warmCount = builder.warmCount; } /** *

* The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data instances. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #instanceType} will * return {@link ESPartitionInstanceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #instanceTypeAsString}. *

* * @return The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data * instances. * @see ESPartitionInstanceType */ public ESPartitionInstanceType instanceType() { return ESPartitionInstanceType.fromValue(instanceType); } /** *

* The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data instances. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #instanceType} will * return {@link ESPartitionInstanceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #instanceTypeAsString}. *

* * @return The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data * instances. * @see ESPartitionInstanceType */ public String instanceTypeAsString() { return instanceType; } /** *

* The number of instances in the specified domain cluster. *

* * @return The number of instances in the specified domain cluster. */ public Integer instanceCount() { return instanceCount; } /** *

* A boolean value to indicate whether a dedicated master node is enabled. See About Dedicated Master Nodes for more information. *

* * @return A boolean value to indicate whether a dedicated master node is enabled. See About Dedicated Master Nodes for more information. */ public Boolean dedicatedMasterEnabled() { return dedicatedMasterEnabled; } /** *

* A boolean value to indicate whether zone awareness is enabled. See About Zone Awareness for more information. *

* * @return A boolean value to indicate whether zone awareness is enabled. See About Zone Awareness for more information. */ public Boolean zoneAwarenessEnabled() { return zoneAwarenessEnabled; } /** *

* Specifies the zone awareness configuration for a domain when zone awareness is enabled. *

* * @return Specifies the zone awareness configuration for a domain when zone awareness is enabled. */ public ZoneAwarenessConfig zoneAwarenessConfig() { return zoneAwarenessConfig; } /** *

* The instance type for a dedicated master node. *

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #dedicatedMasterType} will return {@link ESPartitionInstanceType#UNKNOWN_TO_SDK_VERSION}. The raw value * returned by the service is available from {@link #dedicatedMasterTypeAsString}. *

* * @return The instance type for a dedicated master node. * @see ESPartitionInstanceType */ public ESPartitionInstanceType dedicatedMasterType() { return ESPartitionInstanceType.fromValue(dedicatedMasterType); } /** *

* The instance type for a dedicated master node. *

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #dedicatedMasterType} will return {@link ESPartitionInstanceType#UNKNOWN_TO_SDK_VERSION}. The raw value * returned by the service is available from {@link #dedicatedMasterTypeAsString}. *

* * @return The instance type for a dedicated master node. * @see ESPartitionInstanceType */ public String dedicatedMasterTypeAsString() { return dedicatedMasterType; } /** *

* Total number of dedicated master nodes, active and on standby, for the cluster. *

* * @return Total number of dedicated master nodes, active and on standby, for the cluster. */ public Integer dedicatedMasterCount() { return dedicatedMasterCount; } /** *

* True to enable warm storage. *

* * @return True to enable warm storage. */ public Boolean warmEnabled() { return warmEnabled; } /** *

* The instance type for the Elasticsearch cluster's warm nodes. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #warmType} will * return {@link ESWarmPartitionInstanceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is * available from {@link #warmTypeAsString}. *

* * @return The instance type for the Elasticsearch cluster's warm nodes. * @see ESWarmPartitionInstanceType */ public ESWarmPartitionInstanceType warmType() { return ESWarmPartitionInstanceType.fromValue(warmType); } /** *

* The instance type for the Elasticsearch cluster's warm nodes. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #warmType} will * return {@link ESWarmPartitionInstanceType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is * available from {@link #warmTypeAsString}. *

* * @return The instance type for the Elasticsearch cluster's warm nodes. * @see ESWarmPartitionInstanceType */ public String warmTypeAsString() { return warmType; } /** *

* The number of warm nodes in the cluster. *

* * @return The number of warm nodes in the cluster. */ public Integer warmCount() { return warmCount; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(instanceTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(instanceCount()); hashCode = 31 * hashCode + Objects.hashCode(dedicatedMasterEnabled()); hashCode = 31 * hashCode + Objects.hashCode(zoneAwarenessEnabled()); hashCode = 31 * hashCode + Objects.hashCode(zoneAwarenessConfig()); hashCode = 31 * hashCode + Objects.hashCode(dedicatedMasterTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(dedicatedMasterCount()); hashCode = 31 * hashCode + Objects.hashCode(warmEnabled()); hashCode = 31 * hashCode + Objects.hashCode(warmTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(warmCount()); return hashCode; } @Override public boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ElasticsearchClusterConfig)) { return false; } ElasticsearchClusterConfig other = (ElasticsearchClusterConfig) obj; return Objects.equals(instanceTypeAsString(), other.instanceTypeAsString()) && Objects.equals(instanceCount(), other.instanceCount()) && Objects.equals(dedicatedMasterEnabled(), other.dedicatedMasterEnabled()) && Objects.equals(zoneAwarenessEnabled(), other.zoneAwarenessEnabled()) && Objects.equals(zoneAwarenessConfig(), other.zoneAwarenessConfig()) && Objects.equals(dedicatedMasterTypeAsString(), other.dedicatedMasterTypeAsString()) && Objects.equals(dedicatedMasterCount(), other.dedicatedMasterCount()) && Objects.equals(warmEnabled(), other.warmEnabled()) && Objects.equals(warmTypeAsString(), other.warmTypeAsString()) && Objects.equals(warmCount(), other.warmCount()); } /** * 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. */ @Override public String toString() { return ToString.builder("ElasticsearchClusterConfig").add("InstanceType", instanceTypeAsString()) .add("InstanceCount", instanceCount()).add("DedicatedMasterEnabled", dedicatedMasterEnabled()) .add("ZoneAwarenessEnabled", zoneAwarenessEnabled()).add("ZoneAwarenessConfig", zoneAwarenessConfig()) .add("DedicatedMasterType", dedicatedMasterTypeAsString()).add("DedicatedMasterCount", dedicatedMasterCount()) .add("WarmEnabled", warmEnabled()).add("WarmType", warmTypeAsString()).add("WarmCount", warmCount()).build(); } public Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "InstanceType": return Optional.ofNullable(clazz.cast(instanceTypeAsString())); case "InstanceCount": return Optional.ofNullable(clazz.cast(instanceCount())); case "DedicatedMasterEnabled": return Optional.ofNullable(clazz.cast(dedicatedMasterEnabled())); case "ZoneAwarenessEnabled": return Optional.ofNullable(clazz.cast(zoneAwarenessEnabled())); case "ZoneAwarenessConfig": return Optional.ofNullable(clazz.cast(zoneAwarenessConfig())); case "DedicatedMasterType": return Optional.ofNullable(clazz.cast(dedicatedMasterTypeAsString())); case "DedicatedMasterCount": return Optional.ofNullable(clazz.cast(dedicatedMasterCount())); case "WarmEnabled": return Optional.ofNullable(clazz.cast(warmEnabled())); case "WarmType": return Optional.ofNullable(clazz.cast(warmTypeAsString())); case "WarmCount": return Optional.ofNullable(clazz.cast(warmCount())); default: return Optional.empty(); } } @Override public List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((ElasticsearchClusterConfig) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data * instances. *

* * @param instanceType * The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data * instances. * @see ESPartitionInstanceType * @return Returns a reference to this object so that method calls can be chained together. * @see ESPartitionInstanceType */ Builder instanceType(String instanceType); /** *

* The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data * instances. *

* * @param instanceType * The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data * instances. * @see ESPartitionInstanceType * @return Returns a reference to this object so that method calls can be chained together. * @see ESPartitionInstanceType */ Builder instanceType(ESPartitionInstanceType instanceType); /** *

* The number of instances in the specified domain cluster. *

* * @param instanceCount * The number of instances in the specified domain cluster. * @return Returns a reference to this object so that method calls can be chained together. */ Builder instanceCount(Integer instanceCount); /** *

* A boolean value to indicate whether a dedicated master node is enabled. See About Dedicated Master Nodes for more information. *

* * @param dedicatedMasterEnabled * A boolean value to indicate whether a dedicated master node is enabled. See About Dedicated Master Nodes for more information. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dedicatedMasterEnabled(Boolean dedicatedMasterEnabled); /** *

* A boolean value to indicate whether zone awareness is enabled. See About Zone Awareness for more information. *

* * @param zoneAwarenessEnabled * A boolean value to indicate whether zone awareness is enabled. See About Zone Awareness for more information. * @return Returns a reference to this object so that method calls can be chained together. */ Builder zoneAwarenessEnabled(Boolean zoneAwarenessEnabled); /** *

* Specifies the zone awareness configuration for a domain when zone awareness is enabled. *

* * @param zoneAwarenessConfig * Specifies the zone awareness configuration for a domain when zone awareness is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ Builder zoneAwarenessConfig(ZoneAwarenessConfig zoneAwarenessConfig); /** *

* Specifies the zone awareness configuration for a domain when zone awareness is enabled. *

* This is a convenience that creates an instance of the {@link ZoneAwarenessConfig.Builder} avoiding the need * to create one manually via {@link ZoneAwarenessConfig#builder()}. * * When the {@link Consumer} completes, {@link ZoneAwarenessConfig.Builder#build()} is called immediately and * its result is passed to {@link #zoneAwarenessConfig(ZoneAwarenessConfig)}. * * @param zoneAwarenessConfig * a consumer that will call methods on {@link ZoneAwarenessConfig.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #zoneAwarenessConfig(ZoneAwarenessConfig) */ default Builder zoneAwarenessConfig(Consumer zoneAwarenessConfig) { return zoneAwarenessConfig(ZoneAwarenessConfig.builder().applyMutation(zoneAwarenessConfig).build()); } /** *

* The instance type for a dedicated master node. *

* * @param dedicatedMasterType * The instance type for a dedicated master node. * @see ESPartitionInstanceType * @return Returns a reference to this object so that method calls can be chained together. * @see ESPartitionInstanceType */ Builder dedicatedMasterType(String dedicatedMasterType); /** *

* The instance type for a dedicated master node. *

* * @param dedicatedMasterType * The instance type for a dedicated master node. * @see ESPartitionInstanceType * @return Returns a reference to this object so that method calls can be chained together. * @see ESPartitionInstanceType */ Builder dedicatedMasterType(ESPartitionInstanceType dedicatedMasterType); /** *

* Total number of dedicated master nodes, active and on standby, for the cluster. *

* * @param dedicatedMasterCount * Total number of dedicated master nodes, active and on standby, for the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ Builder dedicatedMasterCount(Integer dedicatedMasterCount); /** *

* True to enable warm storage. *

* * @param warmEnabled * True to enable warm storage. * @return Returns a reference to this object so that method calls can be chained together. */ Builder warmEnabled(Boolean warmEnabled); /** *

* The instance type for the Elasticsearch cluster's warm nodes. *

* * @param warmType * The instance type for the Elasticsearch cluster's warm nodes. * @see ESWarmPartitionInstanceType * @return Returns a reference to this object so that method calls can be chained together. * @see ESWarmPartitionInstanceType */ Builder warmType(String warmType); /** *

* The instance type for the Elasticsearch cluster's warm nodes. *

* * @param warmType * The instance type for the Elasticsearch cluster's warm nodes. * @see ESWarmPartitionInstanceType * @return Returns a reference to this object so that method calls can be chained together. * @see ESWarmPartitionInstanceType */ Builder warmType(ESWarmPartitionInstanceType warmType); /** *

* The number of warm nodes in the cluster. *

* * @param warmCount * The number of warm nodes in the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ Builder warmCount(Integer warmCount); } static final class BuilderImpl implements Builder { private String instanceType; private Integer instanceCount; private Boolean dedicatedMasterEnabled; private Boolean zoneAwarenessEnabled; private ZoneAwarenessConfig zoneAwarenessConfig; private String dedicatedMasterType; private Integer dedicatedMasterCount; private Boolean warmEnabled; private String warmType; private Integer warmCount; private BuilderImpl() { } private BuilderImpl(ElasticsearchClusterConfig model) { instanceType(model.instanceType); instanceCount(model.instanceCount); dedicatedMasterEnabled(model.dedicatedMasterEnabled); zoneAwarenessEnabled(model.zoneAwarenessEnabled); zoneAwarenessConfig(model.zoneAwarenessConfig); dedicatedMasterType(model.dedicatedMasterType); dedicatedMasterCount(model.dedicatedMasterCount); warmEnabled(model.warmEnabled); warmType(model.warmType); warmCount(model.warmCount); } public final String getInstanceType() { return instanceType; } @Override public final Builder instanceType(String instanceType) { this.instanceType = instanceType; return this; } @Override public final Builder instanceType(ESPartitionInstanceType instanceType) { this.instanceType(instanceType == null ? null : instanceType.toString()); return this; } public final void setInstanceType(String instanceType) { this.instanceType = instanceType; } public final Integer getInstanceCount() { return instanceCount; } @Override public final Builder instanceCount(Integer instanceCount) { this.instanceCount = instanceCount; return this; } public final void setInstanceCount(Integer instanceCount) { this.instanceCount = instanceCount; } public final Boolean getDedicatedMasterEnabled() { return dedicatedMasterEnabled; } @Override public final Builder dedicatedMasterEnabled(Boolean dedicatedMasterEnabled) { this.dedicatedMasterEnabled = dedicatedMasterEnabled; return this; } public final void setDedicatedMasterEnabled(Boolean dedicatedMasterEnabled) { this.dedicatedMasterEnabled = dedicatedMasterEnabled; } public final Boolean getZoneAwarenessEnabled() { return zoneAwarenessEnabled; } @Override public final Builder zoneAwarenessEnabled(Boolean zoneAwarenessEnabled) { this.zoneAwarenessEnabled = zoneAwarenessEnabled; return this; } public final void setZoneAwarenessEnabled(Boolean zoneAwarenessEnabled) { this.zoneAwarenessEnabled = zoneAwarenessEnabled; } public final ZoneAwarenessConfig.Builder getZoneAwarenessConfig() { return zoneAwarenessConfig != null ? zoneAwarenessConfig.toBuilder() : null; } @Override public final Builder zoneAwarenessConfig(ZoneAwarenessConfig zoneAwarenessConfig) { this.zoneAwarenessConfig = zoneAwarenessConfig; return this; } public final void setZoneAwarenessConfig(ZoneAwarenessConfig.BuilderImpl zoneAwarenessConfig) { this.zoneAwarenessConfig = zoneAwarenessConfig != null ? zoneAwarenessConfig.build() : null; } public final String getDedicatedMasterType() { return dedicatedMasterType; } @Override public final Builder dedicatedMasterType(String dedicatedMasterType) { this.dedicatedMasterType = dedicatedMasterType; return this; } @Override public final Builder dedicatedMasterType(ESPartitionInstanceType dedicatedMasterType) { this.dedicatedMasterType(dedicatedMasterType == null ? null : dedicatedMasterType.toString()); return this; } public final void setDedicatedMasterType(String dedicatedMasterType) { this.dedicatedMasterType = dedicatedMasterType; } public final Integer getDedicatedMasterCount() { return dedicatedMasterCount; } @Override public final Builder dedicatedMasterCount(Integer dedicatedMasterCount) { this.dedicatedMasterCount = dedicatedMasterCount; return this; } public final void setDedicatedMasterCount(Integer dedicatedMasterCount) { this.dedicatedMasterCount = dedicatedMasterCount; } public final Boolean getWarmEnabled() { return warmEnabled; } @Override public final Builder warmEnabled(Boolean warmEnabled) { this.warmEnabled = warmEnabled; return this; } public final void setWarmEnabled(Boolean warmEnabled) { this.warmEnabled = warmEnabled; } public final String getWarmType() { return warmType; } @Override public final Builder warmType(String warmType) { this.warmType = warmType; return this; } @Override public final Builder warmType(ESWarmPartitionInstanceType warmType) { this.warmType(warmType == null ? null : warmType.toString()); return this; } public final void setWarmType(String warmType) { this.warmType = warmType; } public final Integer getWarmCount() { return warmCount; } @Override public final Builder warmCount(Integer warmCount) { this.warmCount = warmCount; return this; } public final void setWarmCount(Integer warmCount) { this.warmCount = warmCount; } @Override public ElasticsearchClusterConfig build() { return new ElasticsearchClusterConfig(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy