com.pulumi.azurenative.sql.outputs.RecommendedActionErrorInfoResponse 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.sql.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class RecommendedActionErrorInfoResponse {
/**
* @return Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
*
*/
private String errorCode;
/**
* @return Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
*
*/
private String isRetryable;
private RecommendedActionErrorInfoResponse() {}
/**
* @return Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
*
*/
public String errorCode() {
return this.errorCode;
}
/**
* @return Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
*
*/
public String isRetryable() {
return this.isRetryable;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RecommendedActionErrorInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String errorCode;
private String isRetryable;
public Builder() {}
public Builder(RecommendedActionErrorInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.errorCode = defaults.errorCode;
this.isRetryable = defaults.isRetryable;
}
@CustomType.Setter
public Builder errorCode(String errorCode) {
if (errorCode == null) {
throw new MissingRequiredPropertyException("RecommendedActionErrorInfoResponse", "errorCode");
}
this.errorCode = errorCode;
return this;
}
@CustomType.Setter
public Builder isRetryable(String isRetryable) {
if (isRetryable == null) {
throw new MissingRequiredPropertyException("RecommendedActionErrorInfoResponse", "isRetryable");
}
this.isRetryable = isRetryable;
return this;
}
public RecommendedActionErrorInfoResponse build() {
final var _resultValue = new RecommendedActionErrorInfoResponse();
_resultValue.errorCode = errorCode;
_resultValue.isRetryable = isRetryable;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy