com.pulumi.azurenative.network.outputs.BackendPoolResponse 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.BackendResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
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 BackendPoolResponse {
/**
* @return The set of backends for this pool
*
*/
private @Nullable List backends;
/**
* @return L7 health probe settings for a backend pool
*
*/
private @Nullable SubResourceResponse healthProbeSettings;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return Load balancing settings for a backend pool
*
*/
private @Nullable SubResourceResponse loadBalancingSettings;
/**
* @return Resource name.
*
*/
private @Nullable String name;
/**
* @return Resource status.
*
*/
private String resourceState;
/**
* @return Resource type.
*
*/
private String type;
private BackendPoolResponse() {}
/**
* @return The set of backends for this pool
*
*/
public List backends() {
return this.backends == null ? List.of() : this.backends;
}
/**
* @return L7 health probe settings for a backend pool
*
*/
public Optional healthProbeSettings() {
return Optional.ofNullable(this.healthProbeSettings);
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Load balancing settings for a backend pool
*
*/
public Optional loadBalancingSettings() {
return Optional.ofNullable(this.loadBalancingSettings);
}
/**
* @return Resource name.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Resource status.
*
*/
public String resourceState() {
return this.resourceState;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BackendPoolResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List backends;
private @Nullable SubResourceResponse healthProbeSettings;
private @Nullable String id;
private @Nullable SubResourceResponse loadBalancingSettings;
private @Nullable String name;
private String resourceState;
private String type;
public Builder() {}
public Builder(BackendPoolResponse defaults) {
Objects.requireNonNull(defaults);
this.backends = defaults.backends;
this.healthProbeSettings = defaults.healthProbeSettings;
this.id = defaults.id;
this.loadBalancingSettings = defaults.loadBalancingSettings;
this.name = defaults.name;
this.resourceState = defaults.resourceState;
this.type = defaults.type;
}
@CustomType.Setter
public Builder backends(@Nullable List backends) {
this.backends = backends;
return this;
}
public Builder backends(BackendResponse... backends) {
return backends(List.of(backends));
}
@CustomType.Setter
public Builder healthProbeSettings(@Nullable SubResourceResponse healthProbeSettings) {
this.healthProbeSettings = healthProbeSettings;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder loadBalancingSettings(@Nullable SubResourceResponse loadBalancingSettings) {
this.loadBalancingSettings = loadBalancingSettings;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder resourceState(String resourceState) {
if (resourceState == null) {
throw new MissingRequiredPropertyException("BackendPoolResponse", "resourceState");
}
this.resourceState = resourceState;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("BackendPoolResponse", "type");
}
this.type = type;
return this;
}
public BackendPoolResponse build() {
final var _resultValue = new BackendPoolResponse();
_resultValue.backends = backends;
_resultValue.healthProbeSettings = healthProbeSettings;
_resultValue.id = id;
_resultValue.loadBalancingSettings = loadBalancingSettings;
_resultValue.name = name;
_resultValue.resourceState = resourceState;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy