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

com.pulumi.azurenative.recoveryservices.inputs.HealthErrorArgs 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.recoveryservices.inputs;

import com.pulumi.azurenative.recoveryservices.enums.HealthErrorCustomerResolvability;
import com.pulumi.azurenative.recoveryservices.inputs.InnerHealthErrorArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Health Error.
 * 
 */
public final class HealthErrorArgs extends com.pulumi.resources.ResourceArgs {

    public static final HealthErrorArgs Empty = new HealthErrorArgs();

    /**
     * Error creation time (UTC).
     * 
     */
    @Import(name="creationTimeUtc")
    private @Nullable Output creationTimeUtc;

    /**
     * @return Error creation time (UTC).
     * 
     */
    public Optional> creationTimeUtc() {
        return Optional.ofNullable(this.creationTimeUtc);
    }

    /**
     * Value indicating whether the health error is customer resolvable.
     * 
     */
    @Import(name="customerResolvability")
    private @Nullable Output> customerResolvability;

    /**
     * @return Value indicating whether the health error is customer resolvable.
     * 
     */
    public Optional>> customerResolvability() {
        return Optional.ofNullable(this.customerResolvability);
    }

    /**
     * ID of the entity.
     * 
     */
    @Import(name="entityId")
    private @Nullable Output entityId;

    /**
     * @return ID of the entity.
     * 
     */
    public Optional> entityId() {
        return Optional.ofNullable(this.entityId);
    }

    /**
     * Category of error.
     * 
     */
    @Import(name="errorCategory")
    private @Nullable Output errorCategory;

    /**
     * @return Category of error.
     * 
     */
    public Optional> errorCategory() {
        return Optional.ofNullable(this.errorCategory);
    }

    /**
     * Error code.
     * 
     */
    @Import(name="errorCode")
    private @Nullable Output errorCode;

    /**
     * @return Error code.
     * 
     */
    public Optional> errorCode() {
        return Optional.ofNullable(this.errorCode);
    }

    /**
     * The health error unique id.
     * 
     */
    @Import(name="errorId")
    private @Nullable Output errorId;

    /**
     * @return The health error unique id.
     * 
     */
    public Optional> errorId() {
        return Optional.ofNullable(this.errorId);
    }

    /**
     * Level of error.
     * 
     */
    @Import(name="errorLevel")
    private @Nullable Output errorLevel;

    /**
     * @return Level of error.
     * 
     */
    public Optional> errorLevel() {
        return Optional.ofNullable(this.errorLevel);
    }

    /**
     * Error message.
     * 
     */
    @Import(name="errorMessage")
    private @Nullable Output errorMessage;

    /**
     * @return Error message.
     * 
     */
    public Optional> errorMessage() {
        return Optional.ofNullable(this.errorMessage);
    }

    /**
     * Source of error.
     * 
     */
    @Import(name="errorSource")
    private @Nullable Output errorSource;

    /**
     * @return Source of error.
     * 
     */
    public Optional> errorSource() {
        return Optional.ofNullable(this.errorSource);
    }

    /**
     * Type of error.
     * 
     */
    @Import(name="errorType")
    private @Nullable Output errorType;

    /**
     * @return Type of error.
     * 
     */
    public Optional> errorType() {
        return Optional.ofNullable(this.errorType);
    }

    /**
     * The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException.
     * 
     */
    @Import(name="innerHealthErrors")
    private @Nullable Output> innerHealthErrors;

    /**
     * @return The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException.
     * 
     */
    public Optional>> innerHealthErrors() {
        return Optional.ofNullable(this.innerHealthErrors);
    }

    /**
     * Possible causes of error.
     * 
     */
    @Import(name="possibleCauses")
    private @Nullable Output possibleCauses;

    /**
     * @return Possible causes of error.
     * 
     */
    public Optional> possibleCauses() {
        return Optional.ofNullable(this.possibleCauses);
    }

    /**
     * Recommended action to resolve error.
     * 
     */
    @Import(name="recommendedAction")
    private @Nullable Output recommendedAction;

    /**
     * @return Recommended action to resolve error.
     * 
     */
    public Optional> recommendedAction() {
        return Optional.ofNullable(this.recommendedAction);
    }

    /**
     * DRA error message.
     * 
     */
    @Import(name="recoveryProviderErrorMessage")
    private @Nullable Output recoveryProviderErrorMessage;

    /**
     * @return DRA error message.
     * 
     */
    public Optional> recoveryProviderErrorMessage() {
        return Optional.ofNullable(this.recoveryProviderErrorMessage);
    }

    /**
     * Summary message of the entity.
     * 
     */
    @Import(name="summaryMessage")
    private @Nullable Output summaryMessage;

    /**
     * @return Summary message of the entity.
     * 
     */
    public Optional> summaryMessage() {
        return Optional.ofNullable(this.summaryMessage);
    }

    private HealthErrorArgs() {}

    private HealthErrorArgs(HealthErrorArgs $) {
        this.creationTimeUtc = $.creationTimeUtc;
        this.customerResolvability = $.customerResolvability;
        this.entityId = $.entityId;
        this.errorCategory = $.errorCategory;
        this.errorCode = $.errorCode;
        this.errorId = $.errorId;
        this.errorLevel = $.errorLevel;
        this.errorMessage = $.errorMessage;
        this.errorSource = $.errorSource;
        this.errorType = $.errorType;
        this.innerHealthErrors = $.innerHealthErrors;
        this.possibleCauses = $.possibleCauses;
        this.recommendedAction = $.recommendedAction;
        this.recoveryProviderErrorMessage = $.recoveryProviderErrorMessage;
        this.summaryMessage = $.summaryMessage;
    }

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

    public static final class Builder {
        private HealthErrorArgs $;

        public Builder() {
            $ = new HealthErrorArgs();
        }

        public Builder(HealthErrorArgs defaults) {
            $ = new HealthErrorArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param creationTimeUtc Error creation time (UTC).
         * 
         * @return builder
         * 
         */
        public Builder creationTimeUtc(@Nullable Output creationTimeUtc) {
            $.creationTimeUtc = creationTimeUtc;
            return this;
        }

        /**
         * @param creationTimeUtc Error creation time (UTC).
         * 
         * @return builder
         * 
         */
        public Builder creationTimeUtc(String creationTimeUtc) {
            return creationTimeUtc(Output.of(creationTimeUtc));
        }

        /**
         * @param customerResolvability Value indicating whether the health error is customer resolvable.
         * 
         * @return builder
         * 
         */
        public Builder customerResolvability(@Nullable Output> customerResolvability) {
            $.customerResolvability = customerResolvability;
            return this;
        }

        /**
         * @param customerResolvability Value indicating whether the health error is customer resolvable.
         * 
         * @return builder
         * 
         */
        public Builder customerResolvability(Either customerResolvability) {
            return customerResolvability(Output.of(customerResolvability));
        }

        /**
         * @param customerResolvability Value indicating whether the health error is customer resolvable.
         * 
         * @return builder
         * 
         */
        public Builder customerResolvability(String customerResolvability) {
            return customerResolvability(Either.ofLeft(customerResolvability));
        }

        /**
         * @param customerResolvability Value indicating whether the health error is customer resolvable.
         * 
         * @return builder
         * 
         */
        public Builder customerResolvability(HealthErrorCustomerResolvability customerResolvability) {
            return customerResolvability(Either.ofRight(customerResolvability));
        }

        /**
         * @param entityId ID of the entity.
         * 
         * @return builder
         * 
         */
        public Builder entityId(@Nullable Output entityId) {
            $.entityId = entityId;
            return this;
        }

        /**
         * @param entityId ID of the entity.
         * 
         * @return builder
         * 
         */
        public Builder entityId(String entityId) {
            return entityId(Output.of(entityId));
        }

        /**
         * @param errorCategory Category of error.
         * 
         * @return builder
         * 
         */
        public Builder errorCategory(@Nullable Output errorCategory) {
            $.errorCategory = errorCategory;
            return this;
        }

        /**
         * @param errorCategory Category of error.
         * 
         * @return builder
         * 
         */
        public Builder errorCategory(String errorCategory) {
            return errorCategory(Output.of(errorCategory));
        }

        /**
         * @param errorCode Error code.
         * 
         * @return builder
         * 
         */
        public Builder errorCode(@Nullable Output errorCode) {
            $.errorCode = errorCode;
            return this;
        }

        /**
         * @param errorCode Error code.
         * 
         * @return builder
         * 
         */
        public Builder errorCode(String errorCode) {
            return errorCode(Output.of(errorCode));
        }

        /**
         * @param errorId The health error unique id.
         * 
         * @return builder
         * 
         */
        public Builder errorId(@Nullable Output errorId) {
            $.errorId = errorId;
            return this;
        }

        /**
         * @param errorId The health error unique id.
         * 
         * @return builder
         * 
         */
        public Builder errorId(String errorId) {
            return errorId(Output.of(errorId));
        }

        /**
         * @param errorLevel Level of error.
         * 
         * @return builder
         * 
         */
        public Builder errorLevel(@Nullable Output errorLevel) {
            $.errorLevel = errorLevel;
            return this;
        }

        /**
         * @param errorLevel Level of error.
         * 
         * @return builder
         * 
         */
        public Builder errorLevel(String errorLevel) {
            return errorLevel(Output.of(errorLevel));
        }

        /**
         * @param errorMessage Error message.
         * 
         * @return builder
         * 
         */
        public Builder errorMessage(@Nullable Output errorMessage) {
            $.errorMessage = errorMessage;
            return this;
        }

        /**
         * @param errorMessage Error message.
         * 
         * @return builder
         * 
         */
        public Builder errorMessage(String errorMessage) {
            return errorMessage(Output.of(errorMessage));
        }

        /**
         * @param errorSource Source of error.
         * 
         * @return builder
         * 
         */
        public Builder errorSource(@Nullable Output errorSource) {
            $.errorSource = errorSource;
            return this;
        }

        /**
         * @param errorSource Source of error.
         * 
         * @return builder
         * 
         */
        public Builder errorSource(String errorSource) {
            return errorSource(Output.of(errorSource));
        }

        /**
         * @param errorType Type of error.
         * 
         * @return builder
         * 
         */
        public Builder errorType(@Nullable Output errorType) {
            $.errorType = errorType;
            return this;
        }

        /**
         * @param errorType Type of error.
         * 
         * @return builder
         * 
         */
        public Builder errorType(String errorType) {
            return errorType(Output.of(errorType));
        }

        /**
         * @param innerHealthErrors The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException.
         * 
         * @return builder
         * 
         */
        public Builder innerHealthErrors(@Nullable Output> innerHealthErrors) {
            $.innerHealthErrors = innerHealthErrors;
            return this;
        }

        /**
         * @param innerHealthErrors The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException.
         * 
         * @return builder
         * 
         */
        public Builder innerHealthErrors(List innerHealthErrors) {
            return innerHealthErrors(Output.of(innerHealthErrors));
        }

        /**
         * @param innerHealthErrors The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException.
         * 
         * @return builder
         * 
         */
        public Builder innerHealthErrors(InnerHealthErrorArgs... innerHealthErrors) {
            return innerHealthErrors(List.of(innerHealthErrors));
        }

        /**
         * @param possibleCauses Possible causes of error.
         * 
         * @return builder
         * 
         */
        public Builder possibleCauses(@Nullable Output possibleCauses) {
            $.possibleCauses = possibleCauses;
            return this;
        }

        /**
         * @param possibleCauses Possible causes of error.
         * 
         * @return builder
         * 
         */
        public Builder possibleCauses(String possibleCauses) {
            return possibleCauses(Output.of(possibleCauses));
        }

        /**
         * @param recommendedAction Recommended action to resolve error.
         * 
         * @return builder
         * 
         */
        public Builder recommendedAction(@Nullable Output recommendedAction) {
            $.recommendedAction = recommendedAction;
            return this;
        }

        /**
         * @param recommendedAction Recommended action to resolve error.
         * 
         * @return builder
         * 
         */
        public Builder recommendedAction(String recommendedAction) {
            return recommendedAction(Output.of(recommendedAction));
        }

        /**
         * @param recoveryProviderErrorMessage DRA error message.
         * 
         * @return builder
         * 
         */
        public Builder recoveryProviderErrorMessage(@Nullable Output recoveryProviderErrorMessage) {
            $.recoveryProviderErrorMessage = recoveryProviderErrorMessage;
            return this;
        }

        /**
         * @param recoveryProviderErrorMessage DRA error message.
         * 
         * @return builder
         * 
         */
        public Builder recoveryProviderErrorMessage(String recoveryProviderErrorMessage) {
            return recoveryProviderErrorMessage(Output.of(recoveryProviderErrorMessage));
        }

        /**
         * @param summaryMessage Summary message of the entity.
         * 
         * @return builder
         * 
         */
        public Builder summaryMessage(@Nullable Output summaryMessage) {
            $.summaryMessage = summaryMessage;
            return this;
        }

        /**
         * @param summaryMessage Summary message of the entity.
         * 
         * @return builder
         * 
         */
        public Builder summaryMessage(String summaryMessage) {
            return summaryMessage(Output.of(summaryMessage));
        }

        public HealthErrorArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy