com.pulumi.ec.outputs.GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ec Show documentation
Show all versions of ec Show documentation
A Pulumi package for creating and managing ElasticCloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.ec.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling {
private Boolean autoscale;
private String maxSize;
private String maxSizeResource;
private String minSize;
private String minSizeResource;
private GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling() {}
public Boolean autoscale() {
return this.autoscale;
}
public String maxSize() {
return this.maxSize;
}
public String maxSizeResource() {
return this.maxSizeResource;
}
public String minSize() {
return this.minSize;
}
public String minSizeResource() {
return this.minSizeResource;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean autoscale;
private String maxSize;
private String maxSizeResource;
private String minSize;
private String minSizeResource;
public Builder() {}
public Builder(GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling defaults) {
Objects.requireNonNull(defaults);
this.autoscale = defaults.autoscale;
this.maxSize = defaults.maxSize;
this.maxSizeResource = defaults.maxSizeResource;
this.minSize = defaults.minSize;
this.minSizeResource = defaults.minSizeResource;
}
@CustomType.Setter
public Builder autoscale(Boolean autoscale) {
if (autoscale == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling", "autoscale");
}
this.autoscale = autoscale;
return this;
}
@CustomType.Setter
public Builder maxSize(String maxSize) {
if (maxSize == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling", "maxSize");
}
this.maxSize = maxSize;
return this;
}
@CustomType.Setter
public Builder maxSizeResource(String maxSizeResource) {
if (maxSizeResource == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling", "maxSizeResource");
}
this.maxSizeResource = maxSizeResource;
return this;
}
@CustomType.Setter
public Builder minSize(String minSize) {
if (minSize == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling", "minSize");
}
this.minSize = minSize;
return this;
}
@CustomType.Setter
public Builder minSizeResource(String minSizeResource) {
if (minSizeResource == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling", "minSizeResource");
}
this.minSizeResource = minSizeResource;
return this;
}
public GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling build() {
final var _resultValue = new GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling();
_resultValue.autoscale = autoscale;
_resultValue.maxSize = maxSize;
_resultValue.maxSizeResource = maxSizeResource;
_resultValue.minSize = minSize;
_resultValue.minSizeResource = minSizeResource;
return _resultValue;
}
}
}