com.pulumi.azurenative.network.outputs.TrafficSelectorPolicyResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.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 TrafficSelectorPolicyResponse {
/**
* @return A collection of local address spaces in CIDR format.
*
*/
private List localAddressRanges;
/**
* @return A collection of remote address spaces in CIDR format.
*
*/
private List remoteAddressRanges;
private TrafficSelectorPolicyResponse() {}
/**
* @return A collection of local address spaces in CIDR format.
*
*/
public List localAddressRanges() {
return this.localAddressRanges;
}
/**
* @return A collection of remote address spaces in CIDR format.
*
*/
public List remoteAddressRanges() {
return this.remoteAddressRanges;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TrafficSelectorPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List localAddressRanges;
private List remoteAddressRanges;
public Builder() {}
public Builder(TrafficSelectorPolicyResponse 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("TrafficSelectorPolicyResponse", "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("TrafficSelectorPolicyResponse", "remoteAddressRanges");
}
this.remoteAddressRanges = remoteAddressRanges;
return this;
}
public Builder remoteAddressRanges(String... remoteAddressRanges) {
return remoteAddressRanges(List.of(remoteAddressRanges));
}
public TrafficSelectorPolicyResponse build() {
final var _resultValue = new TrafficSelectorPolicyResponse();
_resultValue.localAddressRanges = localAddressRanges;
_resultValue.remoteAddressRanges = remoteAddressRanges;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy