com.pulumi.azure.network.outputs.VirtualNetworkGatewayNatRuleInternalMapping 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.network.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 VirtualNetworkGatewayNatRuleInternalMapping {
/**
* @return The string CIDR representing the address space for the Virtual Network Gateway Nat Rule internal mapping.
*
*/
private String addressSpace;
/**
* @return The single port range for the Virtual Network Gateway Nat Rule internal mapping.
*
*/
private @Nullable String portRange;
private VirtualNetworkGatewayNatRuleInternalMapping() {}
/**
* @return The string CIDR representing the address space for the Virtual Network Gateway Nat Rule internal mapping.
*
*/
public String addressSpace() {
return this.addressSpace;
}
/**
* @return The single port range for the Virtual Network Gateway Nat Rule internal mapping.
*
*/
public Optional portRange() {
return Optional.ofNullable(this.portRange);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualNetworkGatewayNatRuleInternalMapping defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String addressSpace;
private @Nullable String portRange;
public Builder() {}
public Builder(VirtualNetworkGatewayNatRuleInternalMapping defaults) {
Objects.requireNonNull(defaults);
this.addressSpace = defaults.addressSpace;
this.portRange = defaults.portRange;
}
@CustomType.Setter
public Builder addressSpace(String addressSpace) {
if (addressSpace == null) {
throw new MissingRequiredPropertyException("VirtualNetworkGatewayNatRuleInternalMapping", "addressSpace");
}
this.addressSpace = addressSpace;
return this;
}
@CustomType.Setter
public Builder portRange(@Nullable String portRange) {
this.portRange = portRange;
return this;
}
public VirtualNetworkGatewayNatRuleInternalMapping build() {
final var _resultValue = new VirtualNetworkGatewayNatRuleInternalMapping();
_resultValue.addressSpace = addressSpace;
_resultValue.portRange = portRange;
return _resultValue;
}
}
}