com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceAllocationConfigurationPatch 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.OpaqueDeviceConfigurationPatch;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DeviceAllocationConfigurationPatch {
/**
* @return Opaque provides driver-specific configuration parameters.
*
*/
private @Nullable OpaqueDeviceConfigurationPatch opaque;
/**
* @return Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
*
*/
private @Nullable List requests;
/**
* @return Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
*
*/
private @Nullable String source;
private DeviceAllocationConfigurationPatch() {}
/**
* @return Opaque provides driver-specific configuration parameters.
*
*/
public Optional opaque() {
return Optional.ofNullable(this.opaque);
}
/**
* @return Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
*
*/
public List requests() {
return this.requests == null ? List.of() : this.requests;
}
/**
* @return Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
*
*/
public Optional source() {
return Optional.ofNullable(this.source);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DeviceAllocationConfigurationPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable OpaqueDeviceConfigurationPatch opaque;
private @Nullable List requests;
private @Nullable String source;
public Builder() {}
public Builder(DeviceAllocationConfigurationPatch defaults) {
Objects.requireNonNull(defaults);
this.opaque = defaults.opaque;
this.requests = defaults.requests;
this.source = defaults.source;
}
@CustomType.Setter
public Builder opaque(@Nullable OpaqueDeviceConfigurationPatch opaque) {
this.opaque = opaque;
return this;
}
@CustomType.Setter
public Builder requests(@Nullable List requests) {
this.requests = requests;
return this;
}
public Builder requests(String... requests) {
return requests(List.of(requests));
}
@CustomType.Setter
public Builder source(@Nullable String source) {
this.source = source;
return this;
}
public DeviceAllocationConfigurationPatch build() {
final var _resultValue = new DeviceAllocationConfigurationPatch();
_resultValue.opaque = opaque;
_resultValue.requests = requests;
_resultValue.source = source;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy