All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.media.outputs.JobErrorResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.media.outputs;

import com.pulumi.azurenative.media.outputs.JobErrorDetailResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class JobErrorResponse {
    /**
     * @return Helps with categorization of errors.
     * 
     */
    private String category;
    /**
     * @return Error code describing the error.
     * 
     */
    private String code;
    /**
     * @return An array of details about specific errors that led to this reported error.
     * 
     */
    private List details;
    /**
     * @return A human-readable language-dependent representation of the error.
     * 
     */
    private String message;
    /**
     * @return Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.
     * 
     */
    private String retry;

    private JobErrorResponse() {}
    /**
     * @return Helps with categorization of errors.
     * 
     */
    public String category() {
        return this.category;
    }
    /**
     * @return Error code describing the error.
     * 
     */
    public String code() {
        return this.code;
    }
    /**
     * @return An array of details about specific errors that led to this reported error.
     * 
     */
    public List details() {
        return this.details;
    }
    /**
     * @return A human-readable language-dependent representation of the error.
     * 
     */
    public String message() {
        return this.message;
    }
    /**
     * @return Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.
     * 
     */
    public String retry() {
        return this.retry;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(JobErrorResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String category;
        private String code;
        private List details;
        private String message;
        private String retry;
        public Builder() {}
        public Builder(JobErrorResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.category = defaults.category;
    	      this.code = defaults.code;
    	      this.details = defaults.details;
    	      this.message = defaults.message;
    	      this.retry = defaults.retry;
        }

        @CustomType.Setter
        public Builder category(String category) {
            if (category == null) {
              throw new MissingRequiredPropertyException("JobErrorResponse", "category");
            }
            this.category = category;
            return this;
        }
        @CustomType.Setter
        public Builder code(String code) {
            if (code == null) {
              throw new MissingRequiredPropertyException("JobErrorResponse", "code");
            }
            this.code = code;
            return this;
        }
        @CustomType.Setter
        public Builder details(List details) {
            if (details == null) {
              throw new MissingRequiredPropertyException("JobErrorResponse", "details");
            }
            this.details = details;
            return this;
        }
        public Builder details(JobErrorDetailResponse... details) {
            return details(List.of(details));
        }
        @CustomType.Setter
        public Builder message(String message) {
            if (message == null) {
              throw new MissingRequiredPropertyException("JobErrorResponse", "message");
            }
            this.message = message;
            return this;
        }
        @CustomType.Setter
        public Builder retry(String retry) {
            if (retry == null) {
              throw new MissingRequiredPropertyException("JobErrorResponse", "retry");
            }
            this.retry = retry;
            return this;
        }
        public JobErrorResponse build() {
            final var _resultValue = new JobErrorResponse();
            _resultValue.category = category;
            _resultValue.code = code;
            _resultValue.details = details;
            _resultValue.message = message;
            _resultValue.retry = retry;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy