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

com.pulumi.kubernetes.resource.v1alpha2.inputs.PodSchedulingContextSpecPatchArgs 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.resource.v1alpha2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * PodSchedulingContextSpec describes where resources for the Pod are needed.
 * 
 */
public final class PodSchedulingContextSpecPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final PodSchedulingContextSpecPatchArgs Empty = new PodSchedulingContextSpecPatchArgs();

    /**
     * PotentialNodes lists nodes where the Pod might be able to run.
     * 
     * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
     * 
     */
    @Import(name="potentialNodes")
    private @Nullable Output> potentialNodes;

    /**
     * @return PotentialNodes lists nodes where the Pod might be able to run.
     * 
     * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
     * 
     */
    public Optional>> potentialNodes() {
        return Optional.ofNullable(this.potentialNodes);
    }

    /**
     * SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
     * 
     */
    @Import(name="selectedNode")
    private @Nullable Output selectedNode;

    /**
     * @return SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
     * 
     */
    public Optional> selectedNode() {
        return Optional.ofNullable(this.selectedNode);
    }

    private PodSchedulingContextSpecPatchArgs() {}

    private PodSchedulingContextSpecPatchArgs(PodSchedulingContextSpecPatchArgs $) {
        this.potentialNodes = $.potentialNodes;
        this.selectedNode = $.selectedNode;
    }

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

    public static final class Builder {
        private PodSchedulingContextSpecPatchArgs $;

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

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

        /**
         * @param potentialNodes PotentialNodes lists nodes where the Pod might be able to run.
         * 
         * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
         * 
         * @return builder
         * 
         */
        public Builder potentialNodes(@Nullable Output> potentialNodes) {
            $.potentialNodes = potentialNodes;
            return this;
        }

        /**
         * @param potentialNodes PotentialNodes lists nodes where the Pod might be able to run.
         * 
         * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
         * 
         * @return builder
         * 
         */
        public Builder potentialNodes(List potentialNodes) {
            return potentialNodes(Output.of(potentialNodes));
        }

        /**
         * @param potentialNodes PotentialNodes lists nodes where the Pod might be able to run.
         * 
         * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
         * 
         * @return builder
         * 
         */
        public Builder potentialNodes(String... potentialNodes) {
            return potentialNodes(List.of(potentialNodes));
        }

        /**
         * @param selectedNode SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
         * 
         * @return builder
         * 
         */
        public Builder selectedNode(@Nullable Output selectedNode) {
            $.selectedNode = selectedNode;
            return this;
        }

        /**
         * @param selectedNode SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
         * 
         * @return builder
         * 
         */
        public Builder selectedNode(String selectedNode) {
            return selectedNode(Output.of(selectedNode));
        }

        public PodSchedulingContextSpecPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy