com.pulumi.azure.mobile.outputs.NetworkSimStaticIpConfiguration 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.azure.mobile.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NetworkSimStaticIpConfiguration {
/**
* @return The ID of attached data network on which the static IP address will be used. The combination of attached data network and slice defines the network scope of the IP address.
*
*/
private String attachedDataNetworkId;
/**
* @return The ID of network slice on which the static IP address will be used. The combination of attached data network and slice defines the network scope of the IP address.
*
*/
private String sliceId;
/**
* @return The IPv4 address assigned to the SIM at this network scope. This address must be in the userEquipmentStaticAddressPoolPrefix defined in the attached data network.
*
*/
private @Nullable String staticIpv4Address;
private NetworkSimStaticIpConfiguration() {}
/**
* @return The ID of attached data network on which the static IP address will be used. The combination of attached data network and slice defines the network scope of the IP address.
*
*/
public String attachedDataNetworkId() {
return this.attachedDataNetworkId;
}
/**
* @return The ID of network slice on which the static IP address will be used. The combination of attached data network and slice defines the network scope of the IP address.
*
*/
public String sliceId() {
return this.sliceId;
}
/**
* @return The IPv4 address assigned to the SIM at this network scope. This address must be in the userEquipmentStaticAddressPoolPrefix defined in the attached data network.
*
*/
public Optional staticIpv4Address() {
return Optional.ofNullable(this.staticIpv4Address);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkSimStaticIpConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String attachedDataNetworkId;
private String sliceId;
private @Nullable String staticIpv4Address;
public Builder() {}
public Builder(NetworkSimStaticIpConfiguration defaults) {
Objects.requireNonNull(defaults);
this.attachedDataNetworkId = defaults.attachedDataNetworkId;
this.sliceId = defaults.sliceId;
this.staticIpv4Address = defaults.staticIpv4Address;
}
@CustomType.Setter
public Builder attachedDataNetworkId(String attachedDataNetworkId) {
if (attachedDataNetworkId == null) {
throw new MissingRequiredPropertyException("NetworkSimStaticIpConfiguration", "attachedDataNetworkId");
}
this.attachedDataNetworkId = attachedDataNetworkId;
return this;
}
@CustomType.Setter
public Builder sliceId(String sliceId) {
if (sliceId == null) {
throw new MissingRequiredPropertyException("NetworkSimStaticIpConfiguration", "sliceId");
}
this.sliceId = sliceId;
return this;
}
@CustomType.Setter
public Builder staticIpv4Address(@Nullable String staticIpv4Address) {
this.staticIpv4Address = staticIpv4Address;
return this;
}
public NetworkSimStaticIpConfiguration build() {
final var _resultValue = new NetworkSimStaticIpConfiguration();
_resultValue.attachedDataNetworkId = attachedDataNetworkId;
_resultValue.sliceId = sliceId;
_resultValue.staticIpv4Address = staticIpv4Address;
return _resultValue;
}
}
}