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

com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs.ExpressionWarning Maven / Gradle / Ivy

There is a newer version: 4.19.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.kubernetes.admissionregistration.v1alpha1.outputs;

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

@CustomType
public final class ExpressionWarning {
    /**
     * @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"
     * 
     */
    private String fieldRef;
    /**
     * @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.
     * 
     */
    private String warning;

    private ExpressionWarning() {}
    /**
     * @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 String fieldRef() {
        return this.fieldRef;
    }
    /**
     * @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 String warning() {
        return this.warning;
    }

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

    public static Builder builder(ExpressionWarning defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String fieldRef;
        private String warning;
        public Builder() {}
        public Builder(ExpressionWarning defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.fieldRef = defaults.fieldRef;
    	      this.warning = defaults.warning;
        }

        @CustomType.Setter
        public Builder fieldRef(String fieldRef) {
            if (fieldRef == null) {
              throw new MissingRequiredPropertyException("ExpressionWarning", "fieldRef");
            }
            this.fieldRef = fieldRef;
            return this;
        }
        @CustomType.Setter
        public Builder warning(String warning) {
            if (warning == null) {
              throw new MissingRequiredPropertyException("ExpressionWarning", "warning");
            }
            this.warning = warning;
            return this;
        }
        public ExpressionWarning build() {
            final var _resultValue = new ExpressionWarning();
            _resultValue.fieldRef = fieldRef;
            _resultValue.warning = warning;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy