com.pulumi.azurenative.network.outputs.ApplicationGatewayLoadDistributionTargetResponse 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.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApplicationGatewayLoadDistributionTargetResponse {
/**
* @return Backend address pool resource of the application gateway.
*
*/
private @Nullable SubResourceResponse backendAddressPool;
/**
* @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 load distribution policy that is unique within an Application Gateway.
*
*/
private @Nullable String name;
/**
* @return Type of the resource.
*
*/
private String type;
/**
* @return Weight per server. Range between 1 and 100.
*
*/
private @Nullable Integer weightPerServer;
private ApplicationGatewayLoadDistributionTargetResponse() {}
/**
* @return Backend address pool resource of the application gateway.
*
*/
public Optional backendAddressPool() {
return Optional.ofNullable(this.backendAddressPool);
}
/**
* @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 load distribution policy that is unique within an Application Gateway.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Type of the resource.
*
*/
public String type() {
return this.type;
}
/**
* @return Weight per server. Range between 1 and 100.
*
*/
public Optional weightPerServer() {
return Optional.ofNullable(this.weightPerServer);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApplicationGatewayLoadDistributionTargetResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable SubResourceResponse backendAddressPool;
private String etag;
private @Nullable String id;
private @Nullable String name;
private String type;
private @Nullable Integer weightPerServer;
public Builder() {}
public Builder(ApplicationGatewayLoadDistributionTargetResponse defaults) {
Objects.requireNonNull(defaults);
this.backendAddressPool = defaults.backendAddressPool;
this.etag = defaults.etag;
this.id = defaults.id;
this.name = defaults.name;
this.type = defaults.type;
this.weightPerServer = defaults.weightPerServer;
}
@CustomType.Setter
public Builder backendAddressPool(@Nullable SubResourceResponse backendAddressPool) {
this.backendAddressPool = backendAddressPool;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("ApplicationGatewayLoadDistributionTargetResponse", "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 type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ApplicationGatewayLoadDistributionTargetResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder weightPerServer(@Nullable Integer weightPerServer) {
this.weightPerServer = weightPerServer;
return this;
}
public ApplicationGatewayLoadDistributionTargetResponse build() {
final var _resultValue = new ApplicationGatewayLoadDistributionTargetResponse();
_resultValue.backendAddressPool = backendAddressPool;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.type = type;
_resultValue.weightPerServer = weightPerServer;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy