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

com.pulumi.kubernetes.extensions.v1beta1.inputs.DeploymentStatusArgs 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.extensions.v1beta1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.extensions.v1beta1.inputs.DeploymentConditionArgs;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * DeploymentStatus is the most recently observed status of the Deployment.
 * 
 */
public final class DeploymentStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentStatusArgs Empty = new DeploymentStatusArgs();

    /**
     * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
     * 
     */
    @Import(name="availableReplicas")
    private @Nullable Output availableReplicas;

    /**
     * @return Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
     * 
     */
    public Optional> availableReplicas() {
        return Optional.ofNullable(this.availableReplicas);
    }

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

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

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

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

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

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

    /**
     * Total number of ready pods targeted by this deployment.
     * 
     */
    @Import(name="readyReplicas")
    private @Nullable Output readyReplicas;

    /**
     * @return Total number of ready pods targeted by this deployment.
     * 
     */
    public Optional> readyReplicas() {
        return Optional.ofNullable(this.readyReplicas);
    }

    /**
     * Total number of non-terminated pods targeted by this deployment (their labels match the selector).
     * 
     */
    @Import(name="replicas")
    private @Nullable Output replicas;

    /**
     * @return Total number of non-terminated pods targeted by this deployment (their labels match the selector).
     * 
     */
    public Optional> replicas() {
        return Optional.ofNullable(this.replicas);
    }

    /**
     * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
     * 
     */
    @Import(name="unavailableReplicas")
    private @Nullable Output unavailableReplicas;

    /**
     * @return Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
     * 
     */
    public Optional> unavailableReplicas() {
        return Optional.ofNullable(this.unavailableReplicas);
    }

    /**
     * Total number of non-terminated pods targeted by this deployment that have the desired template spec.
     * 
     */
    @Import(name="updatedReplicas")
    private @Nullable Output updatedReplicas;

    /**
     * @return Total number of non-terminated pods targeted by this deployment that have the desired template spec.
     * 
     */
    public Optional> updatedReplicas() {
        return Optional.ofNullable(this.updatedReplicas);
    }

    private DeploymentStatusArgs() {}

    private DeploymentStatusArgs(DeploymentStatusArgs $) {
        this.availableReplicas = $.availableReplicas;
        this.collisionCount = $.collisionCount;
        this.conditions = $.conditions;
        this.observedGeneration = $.observedGeneration;
        this.readyReplicas = $.readyReplicas;
        this.replicas = $.replicas;
        this.unavailableReplicas = $.unavailableReplicas;
        this.updatedReplicas = $.updatedReplicas;
    }

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

    public static final class Builder {
        private DeploymentStatusArgs $;

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

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

        /**
         * @param availableReplicas Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
         * 
         * @return builder
         * 
         */
        public Builder availableReplicas(@Nullable Output availableReplicas) {
            $.availableReplicas = availableReplicas;
            return this;
        }

        /**
         * @param availableReplicas Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
         * 
         * @return builder
         * 
         */
        public Builder availableReplicas(Integer availableReplicas) {
            return availableReplicas(Output.of(availableReplicas));
        }

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

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

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

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

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

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

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

        /**
         * @param readyReplicas Total number of ready pods targeted by this deployment.
         * 
         * @return builder
         * 
         */
        public Builder readyReplicas(@Nullable Output readyReplicas) {
            $.readyReplicas = readyReplicas;
            return this;
        }

        /**
         * @param readyReplicas Total number of ready pods targeted by this deployment.
         * 
         * @return builder
         * 
         */
        public Builder readyReplicas(Integer readyReplicas) {
            return readyReplicas(Output.of(readyReplicas));
        }

        /**
         * @param replicas Total number of non-terminated pods targeted by this deployment (their labels match the selector).
         * 
         * @return builder
         * 
         */
        public Builder replicas(@Nullable Output replicas) {
            $.replicas = replicas;
            return this;
        }

        /**
         * @param replicas Total number of non-terminated pods targeted by this deployment (their labels match the selector).
         * 
         * @return builder
         * 
         */
        public Builder replicas(Integer replicas) {
            return replicas(Output.of(replicas));
        }

        /**
         * @param unavailableReplicas Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
         * 
         * @return builder
         * 
         */
        public Builder unavailableReplicas(@Nullable Output unavailableReplicas) {
            $.unavailableReplicas = unavailableReplicas;
            return this;
        }

        /**
         * @param unavailableReplicas Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
         * 
         * @return builder
         * 
         */
        public Builder unavailableReplicas(Integer unavailableReplicas) {
            return unavailableReplicas(Output.of(unavailableReplicas));
        }

        /**
         * @param updatedReplicas Total number of non-terminated pods targeted by this deployment that have the desired template spec.
         * 
         * @return builder
         * 
         */
        public Builder updatedReplicas(@Nullable Output updatedReplicas) {
            $.updatedReplicas = updatedReplicas;
            return this;
        }

        /**
         * @param updatedReplicas Total number of non-terminated pods targeted by this deployment that have the desired template spec.
         * 
         * @return builder
         * 
         */
        public Builder updatedReplicas(Integer updatedReplicas) {
            return updatedReplicas(Output.of(updatedReplicas));
        }

        public DeploymentStatusArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy