com.pulumi.azure.network.inputs.VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs Empty = new VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs();
/**
* List of local CIDRs.
*
*/
@Import(name="localAddressCidrs", required=true)
private Output> localAddressCidrs;
/**
* @return List of local CIDRs.
*
*/
public Output> localAddressCidrs() {
return this.localAddressCidrs;
}
/**
* List of remote CIDRs.
*
*/
@Import(name="remoteAddressCidrs", required=true)
private Output> remoteAddressCidrs;
/**
* @return List of remote CIDRs.
*
*/
public Output> remoteAddressCidrs() {
return this.remoteAddressCidrs;
}
private VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs() {}
private VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs(VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs $) {
this.localAddressCidrs = $.localAddressCidrs;
this.remoteAddressCidrs = $.remoteAddressCidrs;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs $;
public Builder() {
$ = new VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs();
}
public Builder(VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs defaults) {
$ = new VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param localAddressCidrs List of local CIDRs.
*
* @return builder
*
*/
public Builder localAddressCidrs(Output> localAddressCidrs) {
$.localAddressCidrs = localAddressCidrs;
return this;
}
/**
* @param localAddressCidrs List of local CIDRs.
*
* @return builder
*
*/
public Builder localAddressCidrs(List localAddressCidrs) {
return localAddressCidrs(Output.of(localAddressCidrs));
}
/**
* @param localAddressCidrs List of local CIDRs.
*
* @return builder
*
*/
public Builder localAddressCidrs(String... localAddressCidrs) {
return localAddressCidrs(List.of(localAddressCidrs));
}
/**
* @param remoteAddressCidrs List of remote CIDRs.
*
* @return builder
*
*/
public Builder remoteAddressCidrs(Output> remoteAddressCidrs) {
$.remoteAddressCidrs = remoteAddressCidrs;
return this;
}
/**
* @param remoteAddressCidrs List of remote CIDRs.
*
* @return builder
*
*/
public Builder remoteAddressCidrs(List remoteAddressCidrs) {
return remoteAddressCidrs(Output.of(remoteAddressCidrs));
}
/**
* @param remoteAddressCidrs List of remote CIDRs.
*
* @return builder
*
*/
public Builder remoteAddressCidrs(String... remoteAddressCidrs) {
return remoteAddressCidrs(List.of(remoteAddressCidrs));
}
public VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs build() {
if ($.localAddressCidrs == null) {
throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs", "localAddressCidrs");
}
if ($.remoteAddressCidrs == null) {
throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionTrafficSelectorPolicyArgs", "remoteAddressCidrs");
}
return $;
}
}
}