
com.pulumi.azurenative.azurestackhci.outputs.InfrastructureNetworkResponse Maven / Gradle / Ivy
// *** 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.azurestackhci.outputs;
import com.pulumi.azurenative.azurestackhci.outputs.IpPoolsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class InfrastructureNetworkResponse {
/**
* @return IPv4 address of the DNS servers in your environment.
*
*/
private @Nullable List dnsServers;
/**
* @return Default gateway that should be used for the provided IP address space.
*
*/
private @Nullable String gateway;
/**
* @return Range of IP addresses from which addresses are allocated for nodes within a subnet.
*
*/
private @Nullable List ipPools;
/**
* @return Subnet mask that matches the provided IP address space.
*
*/
private @Nullable String subnetMask;
/**
* @return Allows customers to use DHCP for Hosts and Cluster IPs. If not declared, the deployment will default to static IPs. When true, GW and DNS servers are not required
*
*/
private @Nullable Boolean useDhcp;
private InfrastructureNetworkResponse() {}
/**
* @return IPv4 address of the DNS servers in your environment.
*
*/
public List dnsServers() {
return this.dnsServers == null ? List.of() : this.dnsServers;
}
/**
* @return Default gateway that should be used for the provided IP address space.
*
*/
public Optional gateway() {
return Optional.ofNullable(this.gateway);
}
/**
* @return Range of IP addresses from which addresses are allocated for nodes within a subnet.
*
*/
public List ipPools() {
return this.ipPools == null ? List.of() : this.ipPools;
}
/**
* @return Subnet mask that matches the provided IP address space.
*
*/
public Optional subnetMask() {
return Optional.ofNullable(this.subnetMask);
}
/**
* @return Allows customers to use DHCP for Hosts and Cluster IPs. If not declared, the deployment will default to static IPs. When true, GW and DNS servers are not required
*
*/
public Optional useDhcp() {
return Optional.ofNullable(this.useDhcp);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InfrastructureNetworkResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dnsServers;
private @Nullable String gateway;
private @Nullable List ipPools;
private @Nullable String subnetMask;
private @Nullable Boolean useDhcp;
public Builder() {}
public Builder(InfrastructureNetworkResponse defaults) {
Objects.requireNonNull(defaults);
this.dnsServers = defaults.dnsServers;
this.gateway = defaults.gateway;
this.ipPools = defaults.ipPools;
this.subnetMask = defaults.subnetMask;
this.useDhcp = defaults.useDhcp;
}
@CustomType.Setter
public Builder dnsServers(@Nullable List dnsServers) {
this.dnsServers = dnsServers;
return this;
}
public Builder dnsServers(String... dnsServers) {
return dnsServers(List.of(dnsServers));
}
@CustomType.Setter
public Builder gateway(@Nullable String gateway) {
this.gateway = gateway;
return this;
}
@CustomType.Setter
public Builder ipPools(@Nullable List ipPools) {
this.ipPools = ipPools;
return this;
}
public Builder ipPools(IpPoolsResponse... ipPools) {
return ipPools(List.of(ipPools));
}
@CustomType.Setter
public Builder subnetMask(@Nullable String subnetMask) {
this.subnetMask = subnetMask;
return this;
}
@CustomType.Setter
public Builder useDhcp(@Nullable Boolean useDhcp) {
this.useDhcp = useDhcp;
return this;
}
public InfrastructureNetworkResponse build() {
final var _resultValue = new InfrastructureNetworkResponse();
_resultValue.dnsServers = dnsServers;
_resultValue.gateway = gateway;
_resultValue.ipPools = ipPools;
_resultValue.subnetMask = subnetMask;
_resultValue.useDhcp = useDhcp;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy