com.pulumi.azurenative.networkcloud.outputs.ControlPlaneNodeConfigurationResponse 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.networkcloud.outputs;
import com.pulumi.azurenative.networkcloud.outputs.AdministratorConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ControlPlaneNodeConfigurationResponse {
/**
* @return The administrator credentials to be used for the nodes in the control plane.
*
*/
private @Nullable AdministratorConfigurationResponse administratorConfiguration;
/**
* @return The list of availability zones of the Network Cloud cluster to be used for the provisioning of nodes in the control plane. If not specified, all availability zones will be used.
*
*/
private @Nullable List availabilityZones;
/**
* @return The number of virtual machines that use this configuration.
*
*/
private Double count;
/**
* @return The name of the VM SKU supplied during creation.
*
*/
private String vmSkuName;
private ControlPlaneNodeConfigurationResponse() {}
/**
* @return The administrator credentials to be used for the nodes in the control plane.
*
*/
public Optional administratorConfiguration() {
return Optional.ofNullable(this.administratorConfiguration);
}
/**
* @return The list of availability zones of the Network Cloud cluster to be used for the provisioning of nodes in the control plane. If not specified, all availability zones will be used.
*
*/
public List availabilityZones() {
return this.availabilityZones == null ? List.of() : this.availabilityZones;
}
/**
* @return The number of virtual machines that use this configuration.
*
*/
public Double count() {
return this.count;
}
/**
* @return The name of the VM SKU supplied during creation.
*
*/
public String vmSkuName() {
return this.vmSkuName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ControlPlaneNodeConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AdministratorConfigurationResponse administratorConfiguration;
private @Nullable List availabilityZones;
private Double count;
private String vmSkuName;
public Builder() {}
public Builder(ControlPlaneNodeConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.administratorConfiguration = defaults.administratorConfiguration;
this.availabilityZones = defaults.availabilityZones;
this.count = defaults.count;
this.vmSkuName = defaults.vmSkuName;
}
@CustomType.Setter
public Builder administratorConfiguration(@Nullable AdministratorConfigurationResponse administratorConfiguration) {
this.administratorConfiguration = administratorConfiguration;
return this;
}
@CustomType.Setter
public Builder availabilityZones(@Nullable List availabilityZones) {
this.availabilityZones = availabilityZones;
return this;
}
public Builder availabilityZones(String... availabilityZones) {
return availabilityZones(List.of(availabilityZones));
}
@CustomType.Setter
public Builder count(Double count) {
if (count == null) {
throw new MissingRequiredPropertyException("ControlPlaneNodeConfigurationResponse", "count");
}
this.count = count;
return this;
}
@CustomType.Setter
public Builder vmSkuName(String vmSkuName) {
if (vmSkuName == null) {
throw new MissingRequiredPropertyException("ControlPlaneNodeConfigurationResponse", "vmSkuName");
}
this.vmSkuName = vmSkuName;
return this;
}
public ControlPlaneNodeConfigurationResponse build() {
final var _resultValue = new ControlPlaneNodeConfigurationResponse();
_resultValue.administratorConfiguration = administratorConfiguration;
_resultValue.availabilityZones = availabilityZones;
_resultValue.count = count;
_resultValue.vmSkuName = vmSkuName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy