com.pulumi.azurenative.network.outputs.ApplicationGatewayLoadDistributionPolicyResponse 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.azurenative.network.outputs.ApplicationGatewayLoadDistributionTargetResponse;
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 ApplicationGatewayLoadDistributionPolicyResponse {
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return Load Distribution Targets resource of an application gateway.
*
*/
private @Nullable String loadDistributionAlgorithm;
/**
* @return Load Distribution Targets resource of an application gateway.
*
*/
private @Nullable List loadDistributionTargets;
/**
* @return Name of the load distribution policy that is unique within an Application Gateway.
*
*/
private @Nullable String name;
/**
* @return The provisioning state of the Load Distribution Policy resource.
*
*/
private String provisioningState;
/**
* @return Type of the resource.
*
*/
private String type;
private ApplicationGatewayLoadDistributionPolicyResponse() {}
/**
* @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 Load Distribution Targets resource of an application gateway.
*
*/
public Optional loadDistributionAlgorithm() {
return Optional.ofNullable(this.loadDistributionAlgorithm);
}
/**
* @return Load Distribution Targets resource of an application gateway.
*
*/
public List loadDistributionTargets() {
return this.loadDistributionTargets == null ? List.of() : this.loadDistributionTargets;
}
/**
* @return Name of the load distribution policy that is unique within an Application Gateway.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The provisioning state of the Load Distribution Policy 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(ApplicationGatewayLoadDistributionPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String etag;
private @Nullable String id;
private @Nullable String loadDistributionAlgorithm;
private @Nullable List loadDistributionTargets;
private @Nullable String name;
private String provisioningState;
private String type;
public Builder() {}
public Builder(ApplicationGatewayLoadDistributionPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.etag = defaults.etag;
this.id = defaults.id;
this.loadDistributionAlgorithm = defaults.loadDistributionAlgorithm;
this.loadDistributionTargets = defaults.loadDistributionTargets;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.type = defaults.type;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("ApplicationGatewayLoadDistributionPolicyResponse", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder loadDistributionAlgorithm(@Nullable String loadDistributionAlgorithm) {
this.loadDistributionAlgorithm = loadDistributionAlgorithm;
return this;
}
@CustomType.Setter
public Builder loadDistributionTargets(@Nullable List loadDistributionTargets) {
this.loadDistributionTargets = loadDistributionTargets;
return this;
}
public Builder loadDistributionTargets(ApplicationGatewayLoadDistributionTargetResponse... loadDistributionTargets) {
return loadDistributionTargets(List.of(loadDistributionTargets));
}
@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("ApplicationGatewayLoadDistributionPolicyResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ApplicationGatewayLoadDistributionPolicyResponse", "type");
}
this.type = type;
return this;
}
public ApplicationGatewayLoadDistributionPolicyResponse build() {
final var _resultValue = new ApplicationGatewayLoadDistributionPolicyResponse();
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.loadDistributionAlgorithm = loadDistributionAlgorithm;
_resultValue.loadDistributionTargets = loadDistributionTargets;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy