com.pulumi.azurenative.voiceservices.outputs.PrimaryRegionPropertiesResponse 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.voiceservices.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class PrimaryRegionPropertiesResponse {
/**
* @return The allowed source IP address or CIDR ranges for media
*
*/
private @Nullable List allowedMediaSourceAddressPrefixes;
/**
* @return The allowed source IP address or CIDR ranges for signaling
*
*/
private @Nullable List allowedSignalingSourceAddressPrefixes;
/**
* @return IP address to use to contact the ESRP from this region
*
*/
private @Nullable List esrpAddresses;
/**
* @return IP address to use to contact the operator network from this region
*
*/
private List operatorAddresses;
private PrimaryRegionPropertiesResponse() {}
/**
* @return The allowed source IP address or CIDR ranges for media
*
*/
public List allowedMediaSourceAddressPrefixes() {
return this.allowedMediaSourceAddressPrefixes == null ? List.of() : this.allowedMediaSourceAddressPrefixes;
}
/**
* @return The allowed source IP address or CIDR ranges for signaling
*
*/
public List allowedSignalingSourceAddressPrefixes() {
return this.allowedSignalingSourceAddressPrefixes == null ? List.of() : this.allowedSignalingSourceAddressPrefixes;
}
/**
* @return IP address to use to contact the ESRP from this region
*
*/
public List esrpAddresses() {
return this.esrpAddresses == null ? List.of() : this.esrpAddresses;
}
/**
* @return IP address to use to contact the operator network from this region
*
*/
public List operatorAddresses() {
return this.operatorAddresses;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PrimaryRegionPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List allowedMediaSourceAddressPrefixes;
private @Nullable List allowedSignalingSourceAddressPrefixes;
private @Nullable List esrpAddresses;
private List operatorAddresses;
public Builder() {}
public Builder(PrimaryRegionPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.allowedMediaSourceAddressPrefixes = defaults.allowedMediaSourceAddressPrefixes;
this.allowedSignalingSourceAddressPrefixes = defaults.allowedSignalingSourceAddressPrefixes;
this.esrpAddresses = defaults.esrpAddresses;
this.operatorAddresses = defaults.operatorAddresses;
}
@CustomType.Setter
public Builder allowedMediaSourceAddressPrefixes(@Nullable List allowedMediaSourceAddressPrefixes) {
this.allowedMediaSourceAddressPrefixes = allowedMediaSourceAddressPrefixes;
return this;
}
public Builder allowedMediaSourceAddressPrefixes(String... allowedMediaSourceAddressPrefixes) {
return allowedMediaSourceAddressPrefixes(List.of(allowedMediaSourceAddressPrefixes));
}
@CustomType.Setter
public Builder allowedSignalingSourceAddressPrefixes(@Nullable List allowedSignalingSourceAddressPrefixes) {
this.allowedSignalingSourceAddressPrefixes = allowedSignalingSourceAddressPrefixes;
return this;
}
public Builder allowedSignalingSourceAddressPrefixes(String... allowedSignalingSourceAddressPrefixes) {
return allowedSignalingSourceAddressPrefixes(List.of(allowedSignalingSourceAddressPrefixes));
}
@CustomType.Setter
public Builder esrpAddresses(@Nullable List esrpAddresses) {
this.esrpAddresses = esrpAddresses;
return this;
}
public Builder esrpAddresses(String... esrpAddresses) {
return esrpAddresses(List.of(esrpAddresses));
}
@CustomType.Setter
public Builder operatorAddresses(List operatorAddresses) {
if (operatorAddresses == null) {
throw new MissingRequiredPropertyException("PrimaryRegionPropertiesResponse", "operatorAddresses");
}
this.operatorAddresses = operatorAddresses;
return this;
}
public Builder operatorAddresses(String... operatorAddresses) {
return operatorAddresses(List.of(operatorAddresses));
}
public PrimaryRegionPropertiesResponse build() {
final var _resultValue = new PrimaryRegionPropertiesResponse();
_resultValue.allowedMediaSourceAddressPrefixes = allowedMediaSourceAddressPrefixes;
_resultValue.allowedSignalingSourceAddressPrefixes = allowedSignalingSourceAddressPrefixes;
_resultValue.esrpAddresses = esrpAddresses;
_resultValue.operatorAddresses = operatorAddresses;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy