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

com.pulumi.kubernetes.resource.v1alpha3.outputs.ResourceClaimSchedulingStatus 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.v1alpha3.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class ResourceClaimSchedulingStatus {
    /**
     * @return Name matches the pod.spec.resourceClaims[*].Name field.
     * 
     */
    private String name;
    /**
     * @return UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
     * 
     * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
     * 
     */
    private @Nullable List unsuitableNodes;

    private ResourceClaimSchedulingStatus() {}
    /**
     * @return Name matches the pod.spec.resourceClaims[*].Name field.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
     * 
     * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
     * 
     */
    public List unsuitableNodes() {
        return this.unsuitableNodes == null ? List.of() : this.unsuitableNodes;
    }

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

    public static Builder builder(ResourceClaimSchedulingStatus defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private @Nullable List unsuitableNodes;
        public Builder() {}
        public Builder(ResourceClaimSchedulingStatus defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.unsuitableNodes = defaults.unsuitableNodes;
        }

        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ResourceClaimSchedulingStatus", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder unsuitableNodes(@Nullable List unsuitableNodes) {

            this.unsuitableNodes = unsuitableNodes;
            return this;
        }
        public Builder unsuitableNodes(String... unsuitableNodes) {
            return unsuitableNodes(List.of(unsuitableNodes));
        }
        public ResourceClaimSchedulingStatus build() {
            final var _resultValue = new ResourceClaimSchedulingStatus();
            _resultValue.name = name;
            _resultValue.unsuitableNodes = unsuitableNodes;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy