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

com.pulumi.kubernetes.apps.v1.inputs.DaemonSetStatusArgs 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.apps.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.apps.v1.inputs.DaemonSetConditionArgs;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * DaemonSetStatus represents the current status of a daemon set.
 * 
 */
public final class DaemonSetStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final DaemonSetStatusArgs Empty = new DaemonSetStatusArgs();

    /**
     * Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
     * 
     */
    @Import(name="collisionCount")
    private @Nullable Output collisionCount;

    /**
     * @return Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
     * 
     */
    public Optional> collisionCount() {
        return Optional.ofNullable(this.collisionCount);
    }

    /**
     * Represents the latest available observations of a DaemonSet's current state.
     * 
     */
    @Import(name="conditions")
    private @Nullable Output> conditions;

    /**
     * @return Represents the latest available observations of a DaemonSet's current state.
     * 
     */
    public Optional>> conditions() {
        return Optional.ofNullable(this.conditions);
    }

    /**
     * The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     * 
     */
    @Import(name="currentNumberScheduled", required=true)
    private Output currentNumberScheduled;

    /**
     * @return The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     * 
     */
    public Output currentNumberScheduled() {
        return this.currentNumberScheduled;
    }

    /**
     * The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     * 
     */
    @Import(name="desiredNumberScheduled", required=true)
    private Output desiredNumberScheduled;

    /**
     * @return The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     * 
     */
    public Output desiredNumberScheduled() {
        return this.desiredNumberScheduled;
    }

    /**
     * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)
     * 
     */
    @Import(name="numberAvailable")
    private @Nullable Output numberAvailable;

    /**
     * @return The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)
     * 
     */
    public Optional> numberAvailable() {
        return Optional.ofNullable(this.numberAvailable);
    }

    /**
     * The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     * 
     */
    @Import(name="numberMisscheduled", required=true)
    private Output numberMisscheduled;

    /**
     * @return The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     * 
     */
    public Output numberMisscheduled() {
        return this.numberMisscheduled;
    }

    /**
     * numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.
     * 
     */
    @Import(name="numberReady", required=true)
    private Output numberReady;

    /**
     * @return numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.
     * 
     */
    public Output numberReady() {
        return this.numberReady;
    }

    /**
     * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)
     * 
     */
    @Import(name="numberUnavailable")
    private @Nullable Output numberUnavailable;

    /**
     * @return The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)
     * 
     */
    public Optional> numberUnavailable() {
        return Optional.ofNullable(this.numberUnavailable);
    }

    /**
     * The most recent generation observed by the daemon set controller.
     * 
     */
    @Import(name="observedGeneration")
    private @Nullable Output observedGeneration;

    /**
     * @return The most recent generation observed by the daemon set controller.
     * 
     */
    public Optional> observedGeneration() {
        return Optional.ofNullable(this.observedGeneration);
    }

    /**
     * The total number of nodes that are running updated daemon pod
     * 
     */
    @Import(name="updatedNumberScheduled")
    private @Nullable Output updatedNumberScheduled;

    /**
     * @return The total number of nodes that are running updated daemon pod
     * 
     */
    public Optional> updatedNumberScheduled() {
        return Optional.ofNullable(this.updatedNumberScheduled);
    }

    private DaemonSetStatusArgs() {}

    private DaemonSetStatusArgs(DaemonSetStatusArgs $) {
        this.collisionCount = $.collisionCount;
        this.conditions = $.conditions;
        this.currentNumberScheduled = $.currentNumberScheduled;
        this.desiredNumberScheduled = $.desiredNumberScheduled;
        this.numberAvailable = $.numberAvailable;
        this.numberMisscheduled = $.numberMisscheduled;
        this.numberReady = $.numberReady;
        this.numberUnavailable = $.numberUnavailable;
        this.observedGeneration = $.observedGeneration;
        this.updatedNumberScheduled = $.updatedNumberScheduled;
    }

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

    public static final class Builder {
        private DaemonSetStatusArgs $;

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

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

        /**
         * @param collisionCount Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
         * 
         * @return builder
         * 
         */
        public Builder collisionCount(@Nullable Output collisionCount) {
            $.collisionCount = collisionCount;
            return this;
        }

        /**
         * @param collisionCount Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
         * 
         * @return builder
         * 
         */
        public Builder collisionCount(Integer collisionCount) {
            return collisionCount(Output.of(collisionCount));
        }

        /**
         * @param conditions Represents the latest available observations of a DaemonSet's current state.
         * 
         * @return builder
         * 
         */
        public Builder conditions(@Nullable Output> conditions) {
            $.conditions = conditions;
            return this;
        }

        /**
         * @param conditions Represents the latest available observations of a DaemonSet's current state.
         * 
         * @return builder
         * 
         */
        public Builder conditions(List conditions) {
            return conditions(Output.of(conditions));
        }

        /**
         * @param conditions Represents the latest available observations of a DaemonSet's current state.
         * 
         * @return builder
         * 
         */
        public Builder conditions(DaemonSetConditionArgs... conditions) {
            return conditions(List.of(conditions));
        }

        /**
         * @param currentNumberScheduled The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
         * 
         * @return builder
         * 
         */
        public Builder currentNumberScheduled(Output currentNumberScheduled) {
            $.currentNumberScheduled = currentNumberScheduled;
            return this;
        }

        /**
         * @param currentNumberScheduled The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
         * 
         * @return builder
         * 
         */
        public Builder currentNumberScheduled(Integer currentNumberScheduled) {
            return currentNumberScheduled(Output.of(currentNumberScheduled));
        }

        /**
         * @param desiredNumberScheduled The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
         * 
         * @return builder
         * 
         */
        public Builder desiredNumberScheduled(Output desiredNumberScheduled) {
            $.desiredNumberScheduled = desiredNumberScheduled;
            return this;
        }

        /**
         * @param desiredNumberScheduled The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
         * 
         * @return builder
         * 
         */
        public Builder desiredNumberScheduled(Integer desiredNumberScheduled) {
            return desiredNumberScheduled(Output.of(desiredNumberScheduled));
        }

        /**
         * @param numberAvailable The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)
         * 
         * @return builder
         * 
         */
        public Builder numberAvailable(@Nullable Output numberAvailable) {
            $.numberAvailable = numberAvailable;
            return this;
        }

        /**
         * @param numberAvailable The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)
         * 
         * @return builder
         * 
         */
        public Builder numberAvailable(Integer numberAvailable) {
            return numberAvailable(Output.of(numberAvailable));
        }

        /**
         * @param numberMisscheduled The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
         * 
         * @return builder
         * 
         */
        public Builder numberMisscheduled(Output numberMisscheduled) {
            $.numberMisscheduled = numberMisscheduled;
            return this;
        }

        /**
         * @param numberMisscheduled The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
         * 
         * @return builder
         * 
         */
        public Builder numberMisscheduled(Integer numberMisscheduled) {
            return numberMisscheduled(Output.of(numberMisscheduled));
        }

        /**
         * @param numberReady numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.
         * 
         * @return builder
         * 
         */
        public Builder numberReady(Output numberReady) {
            $.numberReady = numberReady;
            return this;
        }

        /**
         * @param numberReady numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.
         * 
         * @return builder
         * 
         */
        public Builder numberReady(Integer numberReady) {
            return numberReady(Output.of(numberReady));
        }

        /**
         * @param numberUnavailable The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)
         * 
         * @return builder
         * 
         */
        public Builder numberUnavailable(@Nullable Output numberUnavailable) {
            $.numberUnavailable = numberUnavailable;
            return this;
        }

        /**
         * @param numberUnavailable The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)
         * 
         * @return builder
         * 
         */
        public Builder numberUnavailable(Integer numberUnavailable) {
            return numberUnavailable(Output.of(numberUnavailable));
        }

        /**
         * @param observedGeneration The most recent generation observed by the daemon set controller.
         * 
         * @return builder
         * 
         */
        public Builder observedGeneration(@Nullable Output observedGeneration) {
            $.observedGeneration = observedGeneration;
            return this;
        }

        /**
         * @param observedGeneration The most recent generation observed by the daemon set controller.
         * 
         * @return builder
         * 
         */
        public Builder observedGeneration(Integer observedGeneration) {
            return observedGeneration(Output.of(observedGeneration));
        }

        /**
         * @param updatedNumberScheduled The total number of nodes that are running updated daemon pod
         * 
         * @return builder
         * 
         */
        public Builder updatedNumberScheduled(@Nullable Output updatedNumberScheduled) {
            $.updatedNumberScheduled = updatedNumberScheduled;
            return this;
        }

        /**
         * @param updatedNumberScheduled The total number of nodes that are running updated daemon pod
         * 
         * @return builder
         * 
         */
        public Builder updatedNumberScheduled(Integer updatedNumberScheduled) {
            return updatedNumberScheduled(Output.of(updatedNumberScheduled));
        }

        public DaemonSetStatusArgs build() {
            if ($.currentNumberScheduled == null) {
                throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "currentNumberScheduled");
            }
            if ($.desiredNumberScheduled == null) {
                throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "desiredNumberScheduled");
            }
            if ($.numberMisscheduled == null) {
                throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "numberMisscheduled");
            }
            if ($.numberReady == null) {
                throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "numberReady");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy