
com.pulumi.junipermist.org.outputs.DeviceprofileGatewayIpConfigs 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.junipermist.org.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DeviceprofileGatewayIpConfigs {
private String ip;
private String netmask;
/**
* @return optional list of secondary IPs in CIDR format
*
*/
private @Nullable List secondaryIps;
/**
* @return enum: `dhcp`, `static`
*
*/
private @Nullable String type;
private DeviceprofileGatewayIpConfigs() {}
public String ip() {
return this.ip;
}
public String netmask() {
return this.netmask;
}
/**
* @return optional list of secondary IPs in CIDR format
*
*/
public List secondaryIps() {
return this.secondaryIps == null ? List.of() : this.secondaryIps;
}
/**
* @return enum: `dhcp`, `static`
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DeviceprofileGatewayIpConfigs defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String ip;
private String netmask;
private @Nullable List secondaryIps;
private @Nullable String type;
public Builder() {}
public Builder(DeviceprofileGatewayIpConfigs defaults) {
Objects.requireNonNull(defaults);
this.ip = defaults.ip;
this.netmask = defaults.netmask;
this.secondaryIps = defaults.secondaryIps;
this.type = defaults.type;
}
@CustomType.Setter
public Builder ip(String ip) {
if (ip == null) {
throw new MissingRequiredPropertyException("DeviceprofileGatewayIpConfigs", "ip");
}
this.ip = ip;
return this;
}
@CustomType.Setter
public Builder netmask(String netmask) {
if (netmask == null) {
throw new MissingRequiredPropertyException("DeviceprofileGatewayIpConfigs", "netmask");
}
this.netmask = netmask;
return this;
}
@CustomType.Setter
public Builder secondaryIps(@Nullable List secondaryIps) {
this.secondaryIps = secondaryIps;
return this;
}
public Builder secondaryIps(String... secondaryIps) {
return secondaryIps(List.of(secondaryIps));
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public DeviceprofileGatewayIpConfigs build() {
final var _resultValue = new DeviceprofileGatewayIpConfigs();
_resultValue.ip = ip;
_resultValue.netmask = netmask;
_resultValue.secondaryIps = secondaryIps;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy