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

com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs.ValidatingAdmissionPolicyStatus 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.v1alpha1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs.TypeChecking;
import com.pulumi.kubernetes.meta.v1.outputs.Condition;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ValidatingAdmissionPolicyStatus {
    /**
     * @return The conditions represent the latest available observations of a policy's current state.
     * 
     */
    private @Nullable List conditions;
    /**
     * @return The generation observed by the controller.
     * 
     */
    private @Nullable Integer observedGeneration;
    /**
     * @return The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
     * 
     */
    private @Nullable TypeChecking typeChecking;

    private ValidatingAdmissionPolicyStatus() {}
    /**
     * @return The conditions represent the latest available observations of a policy's current state.
     * 
     */
    public List conditions() {
        return this.conditions == null ? List.of() : this.conditions;
    }
    /**
     * @return The generation observed by the controller.
     * 
     */
    public Optional observedGeneration() {
        return Optional.ofNullable(this.observedGeneration);
    }
    /**
     * @return The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
     * 
     */
    public Optional typeChecking() {
        return Optional.ofNullable(this.typeChecking);
    }

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

    public static Builder builder(ValidatingAdmissionPolicyStatus defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List conditions;
        private @Nullable Integer observedGeneration;
        private @Nullable TypeChecking typeChecking;
        public Builder() {}
        public Builder(ValidatingAdmissionPolicyStatus defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.conditions = defaults.conditions;
    	      this.observedGeneration = defaults.observedGeneration;
    	      this.typeChecking = defaults.typeChecking;
        }

        @CustomType.Setter
        public Builder conditions(@Nullable List conditions) {

            this.conditions = conditions;
            return this;
        }
        public Builder conditions(Condition... conditions) {
            return conditions(List.of(conditions));
        }
        @CustomType.Setter
        public Builder observedGeneration(@Nullable Integer observedGeneration) {

            this.observedGeneration = observedGeneration;
            return this;
        }
        @CustomType.Setter
        public Builder typeChecking(@Nullable TypeChecking typeChecking) {

            this.typeChecking = typeChecking;
            return this;
        }
        public ValidatingAdmissionPolicyStatus build() {
            final var _resultValue = new ValidatingAdmissionPolicyStatus();
            _resultValue.conditions = conditions;
            _resultValue.observedGeneration = observedGeneration;
            _resultValue.typeChecking = typeChecking;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy