
com.pulumi.azurenative.migrate.outputs.HealthErrorModelResponse 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.migrate.outputs;
import com.pulumi.azurenative.migrate.outputs.InnerHealthErrorModelResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class HealthErrorModelResponse {
/**
* @return Gets or sets the list of affected resource correlation Ids. This can be used to
* uniquely identify the count of items affected by a specific category and severity
* as well as count of item affected by an specific issue.
*
*/
private @Nullable List affectedResourceCorrelationIds;
/**
* @return Gets or sets the type of affected resource type.
*
*/
private @Nullable String affectedResourceType;
/**
* @return Gets or sets the error category.
*
*/
private String category;
/**
* @return Gets or sets possible causes of the error.
*
*/
private String causes;
/**
* @return Gets or sets a list of child health errors associated with this error.
*
*/
private @Nullable List childErrors;
/**
* @return Gets or sets the error code.
*
*/
private String code;
/**
* @return Gets or sets the error creation time.
*
*/
private String creationTime;
/**
* @return Gets or sets the health category.
*
*/
private String healthCategory;
/**
* @return Gets the ID.
*
*/
private String id;
/**
* @return Gets or sets a value indicating whether the error is customer resolvable.
*
*/
private Boolean isCustomerResolvable;
/**
* @return Gets or sets the error message.
*
*/
private String message;
/**
* @return Gets or sets recommended action to resolve the error.
*
*/
private String recommendation;
/**
* @return Gets or sets the error severity.
*
*/
private String severity;
/**
* @return Gets or sets the error source.
*
*/
private String source;
/**
* @return Gets or sets the error summary.
*
*/
private String summary;
private HealthErrorModelResponse() {}
/**
* @return Gets or sets the list of affected resource correlation Ids. This can be used to
* uniquely identify the count of items affected by a specific category and severity
* as well as count of item affected by an specific issue.
*
*/
public List affectedResourceCorrelationIds() {
return this.affectedResourceCorrelationIds == null ? List.of() : this.affectedResourceCorrelationIds;
}
/**
* @return Gets or sets the type of affected resource type.
*
*/
public Optional affectedResourceType() {
return Optional.ofNullable(this.affectedResourceType);
}
/**
* @return Gets or sets the error category.
*
*/
public String category() {
return this.category;
}
/**
* @return Gets or sets possible causes of the error.
*
*/
public String causes() {
return this.causes;
}
/**
* @return Gets or sets a list of child health errors associated with this error.
*
*/
public List childErrors() {
return this.childErrors == null ? List.of() : this.childErrors;
}
/**
* @return Gets or sets the error code.
*
*/
public String code() {
return this.code;
}
/**
* @return Gets or sets the error creation time.
*
*/
public String creationTime() {
return this.creationTime;
}
/**
* @return Gets or sets the health category.
*
*/
public String healthCategory() {
return this.healthCategory;
}
/**
* @return Gets the ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets a value indicating whether the error is customer resolvable.
*
*/
public Boolean isCustomerResolvable() {
return this.isCustomerResolvable;
}
/**
* @return Gets or sets the error message.
*
*/
public String message() {
return this.message;
}
/**
* @return Gets or sets recommended action to resolve the error.
*
*/
public String recommendation() {
return this.recommendation;
}
/**
* @return Gets or sets the error severity.
*
*/
public String severity() {
return this.severity;
}
/**
* @return Gets or sets the error source.
*
*/
public String source() {
return this.source;
}
/**
* @return Gets or sets the error summary.
*
*/
public String summary() {
return this.summary;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HealthErrorModelResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List affectedResourceCorrelationIds;
private @Nullable String affectedResourceType;
private String category;
private String causes;
private @Nullable List childErrors;
private String code;
private String creationTime;
private String healthCategory;
private String id;
private Boolean isCustomerResolvable;
private String message;
private String recommendation;
private String severity;
private String source;
private String summary;
public Builder() {}
public Builder(HealthErrorModelResponse defaults) {
Objects.requireNonNull(defaults);
this.affectedResourceCorrelationIds = defaults.affectedResourceCorrelationIds;
this.affectedResourceType = defaults.affectedResourceType;
this.category = defaults.category;
this.causes = defaults.causes;
this.childErrors = defaults.childErrors;
this.code = defaults.code;
this.creationTime = defaults.creationTime;
this.healthCategory = defaults.healthCategory;
this.id = defaults.id;
this.isCustomerResolvable = defaults.isCustomerResolvable;
this.message = defaults.message;
this.recommendation = defaults.recommendation;
this.severity = defaults.severity;
this.source = defaults.source;
this.summary = defaults.summary;
}
@CustomType.Setter
public Builder affectedResourceCorrelationIds(@Nullable List affectedResourceCorrelationIds) {
this.affectedResourceCorrelationIds = affectedResourceCorrelationIds;
return this;
}
public Builder affectedResourceCorrelationIds(String... affectedResourceCorrelationIds) {
return affectedResourceCorrelationIds(List.of(affectedResourceCorrelationIds));
}
@CustomType.Setter
public Builder affectedResourceType(@Nullable String affectedResourceType) {
this.affectedResourceType = affectedResourceType;
return this;
}
@CustomType.Setter
public Builder category(String category) {
if (category == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "category");
}
this.category = category;
return this;
}
@CustomType.Setter
public Builder causes(String causes) {
if (causes == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "causes");
}
this.causes = causes;
return this;
}
@CustomType.Setter
public Builder childErrors(@Nullable List childErrors) {
this.childErrors = childErrors;
return this;
}
public Builder childErrors(InnerHealthErrorModelResponse... childErrors) {
return childErrors(List.of(childErrors));
}
@CustomType.Setter
public Builder code(String code) {
if (code == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "code");
}
this.code = code;
return this;
}
@CustomType.Setter
public Builder creationTime(String creationTime) {
if (creationTime == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "creationTime");
}
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder healthCategory(String healthCategory) {
if (healthCategory == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "healthCategory");
}
this.healthCategory = healthCategory;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder isCustomerResolvable(Boolean isCustomerResolvable) {
if (isCustomerResolvable == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "isCustomerResolvable");
}
this.isCustomerResolvable = isCustomerResolvable;
return this;
}
@CustomType.Setter
public Builder message(String message) {
if (message == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "message");
}
this.message = message;
return this;
}
@CustomType.Setter
public Builder recommendation(String recommendation) {
if (recommendation == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "recommendation");
}
this.recommendation = recommendation;
return this;
}
@CustomType.Setter
public Builder severity(String severity) {
if (severity == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "severity");
}
this.severity = severity;
return this;
}
@CustomType.Setter
public Builder source(String source) {
if (source == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "source");
}
this.source = source;
return this;
}
@CustomType.Setter
public Builder summary(String summary) {
if (summary == null) {
throw new MissingRequiredPropertyException("HealthErrorModelResponse", "summary");
}
this.summary = summary;
return this;
}
public HealthErrorModelResponse build() {
final var _resultValue = new HealthErrorModelResponse();
_resultValue.affectedResourceCorrelationIds = affectedResourceCorrelationIds;
_resultValue.affectedResourceType = affectedResourceType;
_resultValue.category = category;
_resultValue.causes = causes;
_resultValue.childErrors = childErrors;
_resultValue.code = code;
_resultValue.creationTime = creationTime;
_resultValue.healthCategory = healthCategory;
_resultValue.id = id;
_resultValue.isCustomerResolvable = isCustomerResolvable;
_resultValue.message = message;
_resultValue.recommendation = recommendation;
_resultValue.severity = severity;
_resultValue.source = source;
_resultValue.summary = summary;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy