com.pulumi.azure.network.outputs.VirtualNetworkGatewayConnectionTrafficSelectorPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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 VirtualNetworkGatewayConnectionTrafficSelectorPolicy {
/**
* @return List of local CIDRs.
*
*/
private List localAddressCidrs;
/**
* @return List of remote CIDRs.
*
*/
private List remoteAddressCidrs;
private VirtualNetworkGatewayConnectionTrafficSelectorPolicy() {}
/**
* @return List of local CIDRs.
*
*/
public List localAddressCidrs() {
return this.localAddressCidrs;
}
/**
* @return List of remote CIDRs.
*
*/
public List remoteAddressCidrs() {
return this.remoteAddressCidrs;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualNetworkGatewayConnectionTrafficSelectorPolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List localAddressCidrs;
private List remoteAddressCidrs;
public Builder() {}
public Builder(VirtualNetworkGatewayConnectionTrafficSelectorPolicy defaults) {
Objects.requireNonNull(defaults);
this.localAddressCidrs = defaults.localAddressCidrs;
this.remoteAddressCidrs = defaults.remoteAddressCidrs;
}
@CustomType.Setter
public Builder localAddressCidrs(List localAddressCidrs) {
if (localAddressCidrs == null) {
throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionTrafficSelectorPolicy", "localAddressCidrs");
}
this.localAddressCidrs = localAddressCidrs;
return this;
}
public Builder localAddressCidrs(String... localAddressCidrs) {
return localAddressCidrs(List.of(localAddressCidrs));
}
@CustomType.Setter
public Builder remoteAddressCidrs(List remoteAddressCidrs) {
if (remoteAddressCidrs == null) {
throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionTrafficSelectorPolicy", "remoteAddressCidrs");
}
this.remoteAddressCidrs = remoteAddressCidrs;
return this;
}
public Builder remoteAddressCidrs(String... remoteAddressCidrs) {
return remoteAddressCidrs(List.of(remoteAddressCidrs));
}
public VirtualNetworkGatewayConnectionTrafficSelectorPolicy build() {
final var _resultValue = new VirtualNetworkGatewayConnectionTrafficSelectorPolicy();
_resultValue.localAddressCidrs = localAddressCidrs;
_resultValue.remoteAddressCidrs = remoteAddressCidrs;
return _resultValue;
}
}
}