com.pulumi.azure.network.outputs.VpnGatewayConnectionTrafficSelectorPolicy 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.List;
import java.util.Objects;
@CustomType
public final class VpnGatewayConnectionTrafficSelectorPolicy {
/**
* @return A list of local address spaces in CIDR format for this VPN Gateway Connection.
*
*/
private List localAddressRanges;
/**
* @return A list of remote address spaces in CIDR format for this VPN Gateway Connection.
*
*/
private List remoteAddressRanges;
private VpnGatewayConnectionTrafficSelectorPolicy() {}
/**
* @return A list of local address spaces in CIDR format for this VPN Gateway Connection.
*
*/
public List localAddressRanges() {
return this.localAddressRanges;
}
/**
* @return A list of remote address spaces in CIDR format for this VPN Gateway Connection.
*
*/
public List remoteAddressRanges() {
return this.remoteAddressRanges;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VpnGatewayConnectionTrafficSelectorPolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List localAddressRanges;
private List remoteAddressRanges;
public Builder() {}
public Builder(VpnGatewayConnectionTrafficSelectorPolicy defaults) {
Objects.requireNonNull(defaults);
this.localAddressRanges = defaults.localAddressRanges;
this.remoteAddressRanges = defaults.remoteAddressRanges;
}
@CustomType.Setter
public Builder localAddressRanges(List localAddressRanges) {
if (localAddressRanges == null) {
throw new MissingRequiredPropertyException("VpnGatewayConnectionTrafficSelectorPolicy", "localAddressRanges");
}
this.localAddressRanges = localAddressRanges;
return this;
}
public Builder localAddressRanges(String... localAddressRanges) {
return localAddressRanges(List.of(localAddressRanges));
}
@CustomType.Setter
public Builder remoteAddressRanges(List remoteAddressRanges) {
if (remoteAddressRanges == null) {
throw new MissingRequiredPropertyException("VpnGatewayConnectionTrafficSelectorPolicy", "remoteAddressRanges");
}
this.remoteAddressRanges = remoteAddressRanges;
return this;
}
public Builder remoteAddressRanges(String... remoteAddressRanges) {
return remoteAddressRanges(List.of(remoteAddressRanges));
}
public VpnGatewayConnectionTrafficSelectorPolicy build() {
final var _resultValue = new VpnGatewayConnectionTrafficSelectorPolicy();
_resultValue.localAddressRanges = localAddressRanges;
_resultValue.remoteAddressRanges = remoteAddressRanges;
return _resultValue;
}
}
}