com.pulumi.azurenative.documentdb.outputs.NodeGroupSpecResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.documentdb.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NodeGroupSpecResponse {
/**
* @return The disk storage size for the node group in GB. Example values: 128, 256, 512, 1024.
*
*/
private @Nullable Double diskSizeGB;
/**
* @return Whether high availability is enabled on the node group.
*
*/
private @Nullable Boolean enableHa;
/**
* @return The node type deployed in the node group.
*
*/
private @Nullable String kind;
/**
* @return The number of nodes in the node group.
*
*/
private @Nullable Integer nodeCount;
/**
* @return The resource sku for the node group. This defines the size of CPU and memory that is provisioned for each node. Example values: 'M30', 'M40'.
*
*/
private @Nullable String sku;
private NodeGroupSpecResponse() {}
/**
* @return The disk storage size for the node group in GB. Example values: 128, 256, 512, 1024.
*
*/
public Optional diskSizeGB() {
return Optional.ofNullable(this.diskSizeGB);
}
/**
* @return Whether high availability is enabled on the node group.
*
*/
public Optional enableHa() {
return Optional.ofNullable(this.enableHa);
}
/**
* @return The node type deployed in the node group.
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return The number of nodes in the node group.
*
*/
public Optional nodeCount() {
return Optional.ofNullable(this.nodeCount);
}
/**
* @return The resource sku for the node group. This defines the size of CPU and memory that is provisioned for each node. Example values: 'M30', 'M40'.
*
*/
public Optional sku() {
return Optional.ofNullable(this.sku);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NodeGroupSpecResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Double diskSizeGB;
private @Nullable Boolean enableHa;
private @Nullable String kind;
private @Nullable Integer nodeCount;
private @Nullable String sku;
public Builder() {}
public Builder(NodeGroupSpecResponse defaults) {
Objects.requireNonNull(defaults);
this.diskSizeGB = defaults.diskSizeGB;
this.enableHa = defaults.enableHa;
this.kind = defaults.kind;
this.nodeCount = defaults.nodeCount;
this.sku = defaults.sku;
}
@CustomType.Setter
public Builder diskSizeGB(@Nullable Double diskSizeGB) {
this.diskSizeGB = diskSizeGB;
return this;
}
@CustomType.Setter
public Builder enableHa(@Nullable Boolean enableHa) {
this.enableHa = enableHa;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder nodeCount(@Nullable Integer nodeCount) {
this.nodeCount = nodeCount;
return this;
}
@CustomType.Setter
public Builder sku(@Nullable String sku) {
this.sku = sku;
return this;
}
public NodeGroupSpecResponse build() {
final var _resultValue = new NodeGroupSpecResponse();
_resultValue.diskSizeGB = diskSizeGB;
_resultValue.enableHa = enableHa;
_resultValue.kind = kind;
_resultValue.nodeCount = nodeCount;
_resultValue.sku = sku;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy