
com.pulumi.azurenative.batch.outputs.AutoScaleRunErrorResponse 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.batch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class AutoScaleRunErrorResponse {
/**
* @return An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
*
*/
private String code;
private @Nullable List details;
/**
* @return A message describing the error, intended to be suitable for display in a user interface.
*
*/
private String message;
private AutoScaleRunErrorResponse() {}
/**
* @return An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
*
*/
public String code() {
return this.code;
}
public List details() {
return this.details == null ? List.of() : this.details;
}
/**
* @return A message describing the error, intended to be suitable for display in a user interface.
*
*/
public String message() {
return this.message;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoScaleRunErrorResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String code;
private @Nullable List details;
private String message;
public Builder() {}
public Builder(AutoScaleRunErrorResponse defaults) {
Objects.requireNonNull(defaults);
this.code = defaults.code;
this.details = defaults.details;
this.message = defaults.message;
}
@CustomType.Setter
public Builder code(String code) {
if (code == null) {
throw new MissingRequiredPropertyException("AutoScaleRunErrorResponse", "code");
}
this.code = code;
return this;
}
@CustomType.Setter
public Builder details(@Nullable List details) {
this.details = details;
return this;
}
public Builder details(AutoScaleRunErrorResponse... details) {
return details(List.of(details));
}
@CustomType.Setter
public Builder message(String message) {
if (message == null) {
throw new MissingRequiredPropertyException("AutoScaleRunErrorResponse", "message");
}
this.message = message;
return this;
}
public AutoScaleRunErrorResponse build() {
final var _resultValue = new AutoScaleRunErrorResponse();
_resultValue.code = code;
_resultValue.details = details;
_resultValue.message = message;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy