com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceAllocationResultPatch 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.DeviceAllocationConfigurationPatch;
import com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceRequestAllocationResultPatch;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class DeviceAllocationResultPatch {
/**
* @return This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
*
* This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
*
*/
private @Nullable List config;
/**
* @return Results lists all allocated devices.
*
*/
private @Nullable List results;
private DeviceAllocationResultPatch() {}
/**
* @return This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
*
* This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
*
*/
public List config() {
return this.config == null ? List.of() : this.config;
}
/**
* @return Results lists all allocated devices.
*
*/
public List results() {
return this.results == null ? List.of() : this.results;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DeviceAllocationResultPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List config;
private @Nullable List results;
public Builder() {}
public Builder(DeviceAllocationResultPatch defaults) {
Objects.requireNonNull(defaults);
this.config = defaults.config;
this.results = defaults.results;
}
@CustomType.Setter
public Builder config(@Nullable List config) {
this.config = config;
return this;
}
public Builder config(DeviceAllocationConfigurationPatch... config) {
return config(List.of(config));
}
@CustomType.Setter
public Builder results(@Nullable List results) {
this.results = results;
return this;
}
public Builder results(DeviceRequestAllocationResultPatch... results) {
return results(List.of(results));
}
public DeviceAllocationResultPatch build() {
final var _resultValue = new DeviceAllocationResultPatch();
_resultValue.config = config;
_resultValue.results = results;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy