
com.pulumi.azurenative.network.outputs.ApplicationGatewayBackendAddressPoolResponse 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.azurenative.network.outputs;
import com.pulumi.azurenative.network.outputs.ApplicationGatewayBackendAddressResponse;
import com.pulumi.azurenative.network.outputs.NetworkInterfaceIPConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApplicationGatewayBackendAddressPoolResponse {
/**
* @return Backend addresses.
*
*/
private @Nullable List backendAddresses;
/**
* @return Collection of references to IPs defined in network interfaces.
*
*/
private List backendIPConfigurations;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return Name of the backend address pool that is unique within an Application Gateway.
*
*/
private @Nullable String name;
/**
* @return The provisioning state of the backend address pool resource.
*
*/
private String provisioningState;
/**
* @return Type of the resource.
*
*/
private String type;
private ApplicationGatewayBackendAddressPoolResponse() {}
/**
* @return Backend addresses.
*
*/
public List backendAddresses() {
return this.backendAddresses == null ? List.of() : this.backendAddresses;
}
/**
* @return Collection of references to IPs defined in network interfaces.
*
*/
public List backendIPConfigurations() {
return this.backendIPConfigurations;
}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Name of the backend address pool that is unique within an Application Gateway.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The provisioning state of the backend address pool resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Type of the resource.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApplicationGatewayBackendAddressPoolResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List backendAddresses;
private List backendIPConfigurations;
private String etag;
private @Nullable String id;
private @Nullable String name;
private String provisioningState;
private String type;
public Builder() {}
public Builder(ApplicationGatewayBackendAddressPoolResponse defaults) {
Objects.requireNonNull(defaults);
this.backendAddresses = defaults.backendAddresses;
this.backendIPConfigurations = defaults.backendIPConfigurations;
this.etag = defaults.etag;
this.id = defaults.id;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.type = defaults.type;
}
@CustomType.Setter
public Builder backendAddresses(@Nullable List backendAddresses) {
this.backendAddresses = backendAddresses;
return this;
}
public Builder backendAddresses(ApplicationGatewayBackendAddressResponse... backendAddresses) {
return backendAddresses(List.of(backendAddresses));
}
@CustomType.Setter
public Builder backendIPConfigurations(List backendIPConfigurations) {
if (backendIPConfigurations == null) {
throw new MissingRequiredPropertyException("ApplicationGatewayBackendAddressPoolResponse", "backendIPConfigurations");
}
this.backendIPConfigurations = backendIPConfigurations;
return this;
}
public Builder backendIPConfigurations(NetworkInterfaceIPConfigurationResponse... backendIPConfigurations) {
return backendIPConfigurations(List.of(backendIPConfigurations));
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("ApplicationGatewayBackendAddressPoolResponse", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("ApplicationGatewayBackendAddressPoolResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ApplicationGatewayBackendAddressPoolResponse", "type");
}
this.type = type;
return this;
}
public ApplicationGatewayBackendAddressPoolResponse build() {
final var _resultValue = new ApplicationGatewayBackendAddressPoolResponse();
_resultValue.backendAddresses = backendAddresses;
_resultValue.backendIPConfigurations = backendIPConfigurations;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy