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

com.pulumi.kubernetes.admissionregistration.v1.inputs.ExpressionWarningArgs 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.admissionregistration.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * ExpressionWarning is a warning information that targets a specific expression.
 * 
 */
public final class ExpressionWarningArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExpressionWarningArgs Empty = new ExpressionWarningArgs();

    /**
     * The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
     * 
     */
    @Import(name="fieldRef", required=true)
    private Output fieldRef;

    /**
     * @return The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
     * 
     */
    public Output fieldRef() {
        return this.fieldRef;
    }

    /**
     * The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
     * 
     */
    @Import(name="warning", required=true)
    private Output warning;

    /**
     * @return The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
     * 
     */
    public Output warning() {
        return this.warning;
    }

    private ExpressionWarningArgs() {}

    private ExpressionWarningArgs(ExpressionWarningArgs $) {
        this.fieldRef = $.fieldRef;
        this.warning = $.warning;
    }

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

    public static final class Builder {
        private ExpressionWarningArgs $;

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

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

        /**
         * @param fieldRef The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
         * 
         * @return builder
         * 
         */
        public Builder fieldRef(Output fieldRef) {
            $.fieldRef = fieldRef;
            return this;
        }

        /**
         * @param fieldRef The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
         * 
         * @return builder
         * 
         */
        public Builder fieldRef(String fieldRef) {
            return fieldRef(Output.of(fieldRef));
        }

        /**
         * @param warning The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
         * 
         * @return builder
         * 
         */
        public Builder warning(Output warning) {
            $.warning = warning;
            return this;
        }

        /**
         * @param warning The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
         * 
         * @return builder
         * 
         */
        public Builder warning(String warning) {
            return warning(Output.of(warning));
        }

        public ExpressionWarningArgs build() {
            if ($.fieldRef == null) {
                throw new MissingRequiredPropertyException("ExpressionWarningArgs", "fieldRef");
            }
            if ($.warning == null) {
                throw new MissingRequiredPropertyException("ExpressionWarningArgs", "warning");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy