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

com.pulumi.kubernetes.apps.v1.outputs.DaemonSetStatus 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.apps.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.apps.v1.outputs.DaemonSetCondition;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DaemonSetStatus {
    /**
     * @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.
     * 
     */
    private @Nullable Integer collisionCount;
    /**
     * @return Represents the latest available observations of a DaemonSet's current state.
     * 
     */
    private @Nullable List conditions;
    /**
     * @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/
     * 
     */
    private Integer currentNumberScheduled;
    /**
     * @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/
     * 
     */
    private Integer desiredNumberScheduled;
    /**
     * @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)
     * 
     */
    private @Nullable Integer numberAvailable;
    /**
     * @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/
     * 
     */
    private Integer numberMisscheduled;
    /**
     * @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.
     * 
     */
    private Integer numberReady;
    /**
     * @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)
     * 
     */
    private @Nullable Integer numberUnavailable;
    /**
     * @return The most recent generation observed by the daemon set controller.
     * 
     */
    private @Nullable Integer observedGeneration;
    /**
     * @return The total number of nodes that are running updated daemon pod
     * 
     */
    private @Nullable Integer updatedNumberScheduled;

    private DaemonSetStatus() {}
    /**
     * @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);
    }
    /**
     * @return Represents the latest available observations of a DaemonSet's current state.
     * 
     */
    public List conditions() {
        return this.conditions == null ? List.of() : this.conditions;
    }
    /**
     * @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 Integer currentNumberScheduled() {
        return this.currentNumberScheduled;
    }
    /**
     * @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 Integer desiredNumberScheduled() {
        return this.desiredNumberScheduled;
    }
    /**
     * @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);
    }
    /**
     * @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 Integer numberMisscheduled() {
        return this.numberMisscheduled;
    }
    /**
     * @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 Integer numberReady() {
        return this.numberReady;
    }
    /**
     * @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);
    }
    /**
     * @return The most recent generation observed by the daemon set controller.
     * 
     */
    public Optional observedGeneration() {
        return Optional.ofNullable(this.observedGeneration);
    }
    /**
     * @return The total number of nodes that are running updated daemon pod
     * 
     */
    public Optional updatedNumberScheduled() {
        return Optional.ofNullable(this.updatedNumberScheduled);
    }

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

    public static Builder builder(DaemonSetStatus defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer collisionCount;
        private @Nullable List conditions;
        private Integer currentNumberScheduled;
        private Integer desiredNumberScheduled;
        private @Nullable Integer numberAvailable;
        private Integer numberMisscheduled;
        private Integer numberReady;
        private @Nullable Integer numberUnavailable;
        private @Nullable Integer observedGeneration;
        private @Nullable Integer updatedNumberScheduled;
        public Builder() {}
        public Builder(DaemonSetStatus defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.collisionCount = defaults.collisionCount;
    	      this.conditions = defaults.conditions;
    	      this.currentNumberScheduled = defaults.currentNumberScheduled;
    	      this.desiredNumberScheduled = defaults.desiredNumberScheduled;
    	      this.numberAvailable = defaults.numberAvailable;
    	      this.numberMisscheduled = defaults.numberMisscheduled;
    	      this.numberReady = defaults.numberReady;
    	      this.numberUnavailable = defaults.numberUnavailable;
    	      this.observedGeneration = defaults.observedGeneration;
    	      this.updatedNumberScheduled = defaults.updatedNumberScheduled;
        }

        @CustomType.Setter
        public Builder collisionCount(@Nullable Integer collisionCount) {

            this.collisionCount = collisionCount;
            return this;
        }
        @CustomType.Setter
        public Builder conditions(@Nullable List conditions) {

            this.conditions = conditions;
            return this;
        }
        public Builder conditions(DaemonSetCondition... conditions) {
            return conditions(List.of(conditions));
        }
        @CustomType.Setter
        public Builder currentNumberScheduled(Integer currentNumberScheduled) {
            if (currentNumberScheduled == null) {
              throw new MissingRequiredPropertyException("DaemonSetStatus", "currentNumberScheduled");
            }
            this.currentNumberScheduled = currentNumberScheduled;
            return this;
        }
        @CustomType.Setter
        public Builder desiredNumberScheduled(Integer desiredNumberScheduled) {
            if (desiredNumberScheduled == null) {
              throw new MissingRequiredPropertyException("DaemonSetStatus", "desiredNumberScheduled");
            }
            this.desiredNumberScheduled = desiredNumberScheduled;
            return this;
        }
        @CustomType.Setter
        public Builder numberAvailable(@Nullable Integer numberAvailable) {

            this.numberAvailable = numberAvailable;
            return this;
        }
        @CustomType.Setter
        public Builder numberMisscheduled(Integer numberMisscheduled) {
            if (numberMisscheduled == null) {
              throw new MissingRequiredPropertyException("DaemonSetStatus", "numberMisscheduled");
            }
            this.numberMisscheduled = numberMisscheduled;
            return this;
        }
        @CustomType.Setter
        public Builder numberReady(Integer numberReady) {
            if (numberReady == null) {
              throw new MissingRequiredPropertyException("DaemonSetStatus", "numberReady");
            }
            this.numberReady = numberReady;
            return this;
        }
        @CustomType.Setter
        public Builder numberUnavailable(@Nullable Integer numberUnavailable) {

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

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

            this.updatedNumberScheduled = updatedNumberScheduled;
            return this;
        }
        public DaemonSetStatus build() {
            final var _resultValue = new DaemonSetStatus();
            _resultValue.collisionCount = collisionCount;
            _resultValue.conditions = conditions;
            _resultValue.currentNumberScheduled = currentNumberScheduled;
            _resultValue.desiredNumberScheduled = desiredNumberScheduled;
            _resultValue.numberAvailable = numberAvailable;
            _resultValue.numberMisscheduled = numberMisscheduled;
            _resultValue.numberReady = numberReady;
            _resultValue.numberUnavailable = numberUnavailable;
            _resultValue.observedGeneration = observedGeneration;
            _resultValue.updatedNumberScheduled = updatedNumberScheduled;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy