com.pulumi.azure.appservice.outputs.GetEnvironmentV3InboundNetworkDependency 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.appservice.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 GetEnvironmentV3InboundNetworkDependency {
/**
* @return A short description of the purpose of the network traffic.
*
*/
private String description;
/**
* @return A list of IP addresses that network traffic will originate from in CIDR notation.
*
*/
private List ipAddresses;
/**
* @return The ports that network traffic will arrive to the App Service Environment V3 on.
*
*/
private List ports;
private GetEnvironmentV3InboundNetworkDependency() {}
/**
* @return A short description of the purpose of the network traffic.
*
*/
public String description() {
return this.description;
}
/**
* @return A list of IP addresses that network traffic will originate from in CIDR notation.
*
*/
public List ipAddresses() {
return this.ipAddresses;
}
/**
* @return The ports that network traffic will arrive to the App Service Environment V3 on.
*
*/
public List ports() {
return this.ports;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetEnvironmentV3InboundNetworkDependency defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String description;
private List ipAddresses;
private List ports;
public Builder() {}
public Builder(GetEnvironmentV3InboundNetworkDependency defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.ipAddresses = defaults.ipAddresses;
this.ports = defaults.ports;
}
@CustomType.Setter
public Builder description(String description) {
if (description == null) {
throw new MissingRequiredPropertyException("GetEnvironmentV3InboundNetworkDependency", "description");
}
this.description = description;
return this;
}
@CustomType.Setter
public Builder ipAddresses(List ipAddresses) {
if (ipAddresses == null) {
throw new MissingRequiredPropertyException("GetEnvironmentV3InboundNetworkDependency", "ipAddresses");
}
this.ipAddresses = ipAddresses;
return this;
}
public Builder ipAddresses(String... ipAddresses) {
return ipAddresses(List.of(ipAddresses));
}
@CustomType.Setter
public Builder ports(List ports) {
if (ports == null) {
throw new MissingRequiredPropertyException("GetEnvironmentV3InboundNetworkDependency", "ports");
}
this.ports = ports;
return this;
}
public Builder ports(String... ports) {
return ports(List.of(ports));
}
public GetEnvironmentV3InboundNetworkDependency build() {
final var _resultValue = new GetEnvironmentV3InboundNetworkDependency();
_resultValue.description = description;
_resultValue.ipAddresses = ipAddresses;
_resultValue.ports = ports;
return _resultValue;
}
}
}