com.pulumi.kubernetes.resource.v1alpha1.outputs.PodSchedulingStatusPatch Maven / Gradle / Ivy
// *** 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.v1alpha1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClaimSchedulingStatusPatch;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class PodSchedulingStatusPatch {
/**
* @return ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
*
*/
private @Nullable List resourceClaims;
private PodSchedulingStatusPatch() {}
/**
* @return ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
*
*/
public List resourceClaims() {
return this.resourceClaims == null ? List.of() : this.resourceClaims;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PodSchedulingStatusPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List resourceClaims;
public Builder() {}
public Builder(PodSchedulingStatusPatch defaults) {
Objects.requireNonNull(defaults);
this.resourceClaims = defaults.resourceClaims;
}
@CustomType.Setter
public Builder resourceClaims(@Nullable List resourceClaims) {
this.resourceClaims = resourceClaims;
return this;
}
public Builder resourceClaims(ResourceClaimSchedulingStatusPatch... resourceClaims) {
return resourceClaims(List.of(resourceClaims));
}
public PodSchedulingStatusPatch build() {
final var _resultValue = new PodSchedulingStatusPatch();
_resultValue.resourceClaims = resourceClaims;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy