com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceClaim Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** 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.kubernetes.resource.v1alpha3.outputs.DeviceClaimConfiguration;
import com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceConstraint;
import com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceRequest;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class DeviceClaim {
/**
* @return This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
*
*/
private @Nullable List config;
/**
* @return These constraints must be satisfied by the set of devices that get allocated for the claim.
*
*/
private @Nullable List constraints;
/**
* @return Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
*
*/
private @Nullable List requests;
private DeviceClaim() {}
/**
* @return This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
*
*/
public List config() {
return this.config == null ? List.of() : this.config;
}
/**
* @return These constraints must be satisfied by the set of devices that get allocated for the claim.
*
*/
public List constraints() {
return this.constraints == null ? List.of() : this.constraints;
}
/**
* @return Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
*
*/
public List requests() {
return this.requests == null ? List.of() : this.requests;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DeviceClaim defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List config;
private @Nullable List constraints;
private @Nullable List requests;
public Builder() {}
public Builder(DeviceClaim defaults) {
Objects.requireNonNull(defaults);
this.config = defaults.config;
this.constraints = defaults.constraints;
this.requests = defaults.requests;
}
@CustomType.Setter
public Builder config(@Nullable List config) {
this.config = config;
return this;
}
public Builder config(DeviceClaimConfiguration... config) {
return config(List.of(config));
}
@CustomType.Setter
public Builder constraints(@Nullable List constraints) {
this.constraints = constraints;
return this;
}
public Builder constraints(DeviceConstraint... constraints) {
return constraints(List.of(constraints));
}
@CustomType.Setter
public Builder requests(@Nullable List requests) {
this.requests = requests;
return this;
}
public Builder requests(DeviceRequest... requests) {
return requests(List.of(requests));
}
public DeviceClaim build() {
final var _resultValue = new DeviceClaim();
_resultValue.config = config;
_resultValue.constraints = constraints;
_resultValue.requests = requests;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy