
com.pulumi.azurenative.recoveryservices.outputs.KPIResourceHealthDetailsResponse 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.recoveryservices.outputs;
import com.pulumi.azurenative.recoveryservices.outputs.ResourceHealthDetailsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class KPIResourceHealthDetailsResponse {
/**
* @return Resource Health Status
*
*/
private @Nullable List resourceHealthDetails;
/**
* @return Resource Health Status
*
*/
private @Nullable String resourceHealthStatus;
private KPIResourceHealthDetailsResponse() {}
/**
* @return Resource Health Status
*
*/
public List resourceHealthDetails() {
return this.resourceHealthDetails == null ? List.of() : this.resourceHealthDetails;
}
/**
* @return Resource Health Status
*
*/
public Optional resourceHealthStatus() {
return Optional.ofNullable(this.resourceHealthStatus);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KPIResourceHealthDetailsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List resourceHealthDetails;
private @Nullable String resourceHealthStatus;
public Builder() {}
public Builder(KPIResourceHealthDetailsResponse defaults) {
Objects.requireNonNull(defaults);
this.resourceHealthDetails = defaults.resourceHealthDetails;
this.resourceHealthStatus = defaults.resourceHealthStatus;
}
@CustomType.Setter
public Builder resourceHealthDetails(@Nullable List resourceHealthDetails) {
this.resourceHealthDetails = resourceHealthDetails;
return this;
}
public Builder resourceHealthDetails(ResourceHealthDetailsResponse... resourceHealthDetails) {
return resourceHealthDetails(List.of(resourceHealthDetails));
}
@CustomType.Setter
public Builder resourceHealthStatus(@Nullable String resourceHealthStatus) {
this.resourceHealthStatus = resourceHealthStatus;
return this;
}
public KPIResourceHealthDetailsResponse build() {
final var _resultValue = new KPIResourceHealthDetailsResponse();
_resultValue.resourceHealthDetails = resourceHealthDetails;
_resultValue.resourceHealthStatus = resourceHealthStatus;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy