com.pulumi.ec.outputs.GetDeploymentTemplatesTemplateElasticsearchCold 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.
// *** 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.ec.outputs.GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetDeploymentTemplatesTemplateElasticsearchCold {
private GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling autoscaling;
private List availableSizes;
private String defaultSize;
private String instanceConfigurationId;
private Double instanceConfigurationVersion;
private String sizeResource;
private GetDeploymentTemplatesTemplateElasticsearchCold() {}
public GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling autoscaling() {
return this.autoscaling;
}
public List availableSizes() {
return this.availableSizes;
}
public String defaultSize() {
return this.defaultSize;
}
public String instanceConfigurationId() {
return this.instanceConfigurationId;
}
public Double instanceConfigurationVersion() {
return this.instanceConfigurationVersion;
}
public String sizeResource() {
return this.sizeResource;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDeploymentTemplatesTemplateElasticsearchCold defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling autoscaling;
private List availableSizes;
private String defaultSize;
private String instanceConfigurationId;
private Double instanceConfigurationVersion;
private String sizeResource;
public Builder() {}
public Builder(GetDeploymentTemplatesTemplateElasticsearchCold defaults) {
Objects.requireNonNull(defaults);
this.autoscaling = defaults.autoscaling;
this.availableSizes = defaults.availableSizes;
this.defaultSize = defaults.defaultSize;
this.instanceConfigurationId = defaults.instanceConfigurationId;
this.instanceConfigurationVersion = defaults.instanceConfigurationVersion;
this.sizeResource = defaults.sizeResource;
}
@CustomType.Setter
public Builder autoscaling(GetDeploymentTemplatesTemplateElasticsearchColdAutoscaling autoscaling) {
if (autoscaling == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchCold", "autoscaling");
}
this.autoscaling = autoscaling;
return this;
}
@CustomType.Setter
public Builder availableSizes(List availableSizes) {
if (availableSizes == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchCold", "availableSizes");
}
this.availableSizes = availableSizes;
return this;
}
public Builder availableSizes(String... availableSizes) {
return availableSizes(List.of(availableSizes));
}
@CustomType.Setter
public Builder defaultSize(String defaultSize) {
if (defaultSize == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchCold", "defaultSize");
}
this.defaultSize = defaultSize;
return this;
}
@CustomType.Setter
public Builder instanceConfigurationId(String instanceConfigurationId) {
if (instanceConfigurationId == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchCold", "instanceConfigurationId");
}
this.instanceConfigurationId = instanceConfigurationId;
return this;
}
@CustomType.Setter
public Builder instanceConfigurationVersion(Double instanceConfigurationVersion) {
if (instanceConfigurationVersion == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchCold", "instanceConfigurationVersion");
}
this.instanceConfigurationVersion = instanceConfigurationVersion;
return this;
}
@CustomType.Setter
public Builder sizeResource(String sizeResource) {
if (sizeResource == null) {
throw new MissingRequiredPropertyException("GetDeploymentTemplatesTemplateElasticsearchCold", "sizeResource");
}
this.sizeResource = sizeResource;
return this;
}
public GetDeploymentTemplatesTemplateElasticsearchCold build() {
final var _resultValue = new GetDeploymentTemplatesTemplateElasticsearchCold();
_resultValue.autoscaling = autoscaling;
_resultValue.availableSizes = availableSizes;
_resultValue.defaultSize = defaultSize;
_resultValue.instanceConfigurationId = instanceConfigurationId;
_resultValue.instanceConfigurationVersion = instanceConfigurationVersion;
_resultValue.sizeResource = sizeResource;
return _resultValue;
}
}
}