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

com.pulumi.kubernetes.extensions.v1beta1.inputs.ReplicaSetStatusArgs 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.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.extensions.v1beta1.inputs.ReplicaSetConditionArgs;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * ReplicaSetStatus represents the current status of a ReplicaSet.
 * 
 */
public final class ReplicaSetStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final ReplicaSetStatusArgs Empty = new ReplicaSetStatusArgs();

    /**
     * The number of available replicas (ready for at least minReadySeconds) for this replica set.
     * 
     */
    @Import(name="availableReplicas")
    private @Nullable Output availableReplicas;

    /**
     * @return The number of available replicas (ready for at least minReadySeconds) for this replica set.
     * 
     */
    public Optional> availableReplicas() {
        return Optional.ofNullable(this.availableReplicas);
    }

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

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

    /**
     * The number of pods that have labels matching the labels of the pod template of the replicaset.
     * 
     */
    @Import(name="fullyLabeledReplicas")
    private @Nullable Output fullyLabeledReplicas;

    /**
     * @return The number of pods that have labels matching the labels of the pod template of the replicaset.
     * 
     */
    public Optional> fullyLabeledReplicas() {
        return Optional.ofNullable(this.fullyLabeledReplicas);
    }

    /**
     * ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
     * 
     */
    @Import(name="observedGeneration")
    private @Nullable Output observedGeneration;

    /**
     * @return ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
     * 
     */
    public Optional> observedGeneration() {
        return Optional.ofNullable(this.observedGeneration);
    }

    /**
     * The number of ready replicas for this replica set.
     * 
     */
    @Import(name="readyReplicas")
    private @Nullable Output readyReplicas;

    /**
     * @return The number of ready replicas for this replica set.
     * 
     */
    public Optional> readyReplicas() {
        return Optional.ofNullable(this.readyReplicas);
    }

    /**
     * Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
     * 
     */
    @Import(name="replicas", required=true)
    private Output replicas;

    /**
     * @return Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
     * 
     */
    public Output replicas() {
        return this.replicas;
    }

    private ReplicaSetStatusArgs() {}

    private ReplicaSetStatusArgs(ReplicaSetStatusArgs $) {
        this.availableReplicas = $.availableReplicas;
        this.conditions = $.conditions;
        this.fullyLabeledReplicas = $.fullyLabeledReplicas;
        this.observedGeneration = $.observedGeneration;
        this.readyReplicas = $.readyReplicas;
        this.replicas = $.replicas;
    }

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

    public static final class Builder {
        private ReplicaSetStatusArgs $;

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

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

        /**
         * @param availableReplicas The number of available replicas (ready for at least minReadySeconds) for this replica set.
         * 
         * @return builder
         * 
         */
        public Builder availableReplicas(@Nullable Output availableReplicas) {
            $.availableReplicas = availableReplicas;
            return this;
        }

        /**
         * @param availableReplicas The number of available replicas (ready for at least minReadySeconds) for this replica set.
         * 
         * @return builder
         * 
         */
        public Builder availableReplicas(Integer availableReplicas) {
            return availableReplicas(Output.of(availableReplicas));
        }

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

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

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

        /**
         * @param fullyLabeledReplicas The number of pods that have labels matching the labels of the pod template of the replicaset.
         * 
         * @return builder
         * 
         */
        public Builder fullyLabeledReplicas(@Nullable Output fullyLabeledReplicas) {
            $.fullyLabeledReplicas = fullyLabeledReplicas;
            return this;
        }

        /**
         * @param fullyLabeledReplicas The number of pods that have labels matching the labels of the pod template of the replicaset.
         * 
         * @return builder
         * 
         */
        public Builder fullyLabeledReplicas(Integer fullyLabeledReplicas) {
            return fullyLabeledReplicas(Output.of(fullyLabeledReplicas));
        }

        /**
         * @param observedGeneration ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
         * 
         * @return builder
         * 
         */
        public Builder observedGeneration(@Nullable Output observedGeneration) {
            $.observedGeneration = observedGeneration;
            return this;
        }

        /**
         * @param observedGeneration ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
         * 
         * @return builder
         * 
         */
        public Builder observedGeneration(Integer observedGeneration) {
            return observedGeneration(Output.of(observedGeneration));
        }

        /**
         * @param readyReplicas The number of ready replicas for this replica set.
         * 
         * @return builder
         * 
         */
        public Builder readyReplicas(@Nullable Output readyReplicas) {
            $.readyReplicas = readyReplicas;
            return this;
        }

        /**
         * @param readyReplicas The number of ready replicas for this replica set.
         * 
         * @return builder
         * 
         */
        public Builder readyReplicas(Integer readyReplicas) {
            return readyReplicas(Output.of(readyReplicas));
        }

        /**
         * @param replicas Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
         * 
         * @return builder
         * 
         */
        public Builder replicas(Output replicas) {
            $.replicas = replicas;
            return this;
        }

        /**
         * @param replicas Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
         * 
         * @return builder
         * 
         */
        public Builder replicas(Integer replicas) {
            return replicas(Output.of(replicas));
        }

        public ReplicaSetStatusArgs build() {
            if ($.replicas == null) {
                throw new MissingRequiredPropertyException("ReplicaSetStatusArgs", "replicas");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy