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

com.pulumi.kubernetes.meta.v1.inputs.StatusCausePatchArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.meta.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
 * 
 */
public final class StatusCausePatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final StatusCausePatchArgs Empty = new StatusCausePatchArgs();

    /**
     * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed.  Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
     * 
     * Examples:
     *   "name" - the field "name" on the current resource
     *   "items[0].name" - the field "name" on the first array entry in "items"
     * 
     */
    @Import(name="field")
    private @Nullable Output field;

    /**
     * @return The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed.  Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
     * 
     * Examples:
     *   "name" - the field "name" on the current resource
     *   "items[0].name" - the field "name" on the first array entry in "items"
     * 
     */
    public Optional> field() {
        return Optional.ofNullable(this.field);
    }

    /**
     * A human-readable description of the cause of the error.  This field may be presented as-is to a reader.
     * 
     */
    @Import(name="message")
    private @Nullable Output message;

    /**
     * @return A human-readable description of the cause of the error.  This field may be presented as-is to a reader.
     * 
     */
    public Optional> message() {
        return Optional.ofNullable(this.message);
    }

    /**
     * A machine-readable description of the cause of the error. If this value is empty there is no information available.
     * 
     */
    @Import(name="reason")
    private @Nullable Output reason;

    /**
     * @return A machine-readable description of the cause of the error. If this value is empty there is no information available.
     * 
     */
    public Optional> reason() {
        return Optional.ofNullable(this.reason);
    }

    private StatusCausePatchArgs() {}

    private StatusCausePatchArgs(StatusCausePatchArgs $) {
        this.field = $.field;
        this.message = $.message;
        this.reason = $.reason;
    }

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

    public static final class Builder {
        private StatusCausePatchArgs $;

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

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

        /**
         * @param field The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed.  Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
         * 
         * Examples:
         *   "name" - the field "name" on the current resource
         *   "items[0].name" - the field "name" on the first array entry in "items"
         * 
         * @return builder
         * 
         */
        public Builder field(@Nullable Output field) {
            $.field = field;
            return this;
        }

        /**
         * @param field The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed.  Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
         * 
         * Examples:
         *   "name" - the field "name" on the current resource
         *   "items[0].name" - the field "name" on the first array entry in "items"
         * 
         * @return builder
         * 
         */
        public Builder field(String field) {
            return field(Output.of(field));
        }

        /**
         * @param message A human-readable description of the cause of the error.  This field may be presented as-is to a reader.
         * 
         * @return builder
         * 
         */
        public Builder message(@Nullable Output message) {
            $.message = message;
            return this;
        }

        /**
         * @param message A human-readable description of the cause of the error.  This field may be presented as-is to a reader.
         * 
         * @return builder
         * 
         */
        public Builder message(String message) {
            return message(Output.of(message));
        }

        /**
         * @param reason A machine-readable description of the cause of the error. If this value is empty there is no information available.
         * 
         * @return builder
         * 
         */
        public Builder reason(@Nullable Output reason) {
            $.reason = reason;
            return this;
        }

        /**
         * @param reason A machine-readable description of the cause of the error. If this value is empty there is no information available.
         * 
         * @return builder
         * 
         */
        public Builder reason(String reason) {
            return reason(Output.of(reason));
        }

        public StatusCausePatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy