com.pulumi.ec.outputs.GetDeploymentApmTopology 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.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetDeploymentApmTopology {
/**
* @return Controls the allocation of this topology element as well as allowed sizes and node_types. It needs to match the ID of an existing instance configuration.
*
*/
private String instanceConfigurationId;
/**
* @return Amount of "size_resource" in Gigabytes. For example "4g".
*
*/
private String size;
/**
* @return Type of resource ("memory" or "storage")
*
*/
private String sizeResource;
/**
* @return Number of zones in which nodes will be placed.
*
*/
private Integer zoneCount;
private GetDeploymentApmTopology() {}
/**
* @return Controls the allocation of this topology element as well as allowed sizes and node_types. It needs to match the ID of an existing instance configuration.
*
*/
public String instanceConfigurationId() {
return this.instanceConfigurationId;
}
/**
* @return Amount of "size_resource" in Gigabytes. For example "4g".
*
*/
public String size() {
return this.size;
}
/**
* @return Type of resource ("memory" or "storage")
*
*/
public String sizeResource() {
return this.sizeResource;
}
/**
* @return Number of zones in which nodes will be placed.
*
*/
public Integer zoneCount() {
return this.zoneCount;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDeploymentApmTopology defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String instanceConfigurationId;
private String size;
private String sizeResource;
private Integer zoneCount;
public Builder() {}
public Builder(GetDeploymentApmTopology defaults) {
Objects.requireNonNull(defaults);
this.instanceConfigurationId = defaults.instanceConfigurationId;
this.size = defaults.size;
this.sizeResource = defaults.sizeResource;
this.zoneCount = defaults.zoneCount;
}
@CustomType.Setter
public Builder instanceConfigurationId(String instanceConfigurationId) {
if (instanceConfigurationId == null) {
throw new MissingRequiredPropertyException("GetDeploymentApmTopology", "instanceConfigurationId");
}
this.instanceConfigurationId = instanceConfigurationId;
return this;
}
@CustomType.Setter
public Builder size(String size) {
if (size == null) {
throw new MissingRequiredPropertyException("GetDeploymentApmTopology", "size");
}
this.size = size;
return this;
}
@CustomType.Setter
public Builder sizeResource(String sizeResource) {
if (sizeResource == null) {
throw new MissingRequiredPropertyException("GetDeploymentApmTopology", "sizeResource");
}
this.sizeResource = sizeResource;
return this;
}
@CustomType.Setter
public Builder zoneCount(Integer zoneCount) {
if (zoneCount == null) {
throw new MissingRequiredPropertyException("GetDeploymentApmTopology", "zoneCount");
}
this.zoneCount = zoneCount;
return this;
}
public GetDeploymentApmTopology build() {
final var _resultValue = new GetDeploymentApmTopology();
_resultValue.instanceConfigurationId = instanceConfigurationId;
_resultValue.size = size;
_resultValue.sizeResource = sizeResource;
_resultValue.zoneCount = zoneCount;
return _resultValue;
}
}
}