com.pulumi.kubernetes.policy.v1beta1.inputs.AllowedFlexVolumeArgs 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.policy.v1beta1.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* AllowedFlexVolume represents a single Flexvolume that is allowed to be used.
*
*/
public final class AllowedFlexVolumeArgs extends com.pulumi.resources.ResourceArgs {
public static final AllowedFlexVolumeArgs Empty = new AllowedFlexVolumeArgs();
/**
* driver is the name of the Flexvolume driver.
*
*/
@Import(name="driver", required=true)
private Output driver;
/**
* @return driver is the name of the Flexvolume driver.
*
*/
public Output driver() {
return this.driver;
}
private AllowedFlexVolumeArgs() {}
private AllowedFlexVolumeArgs(AllowedFlexVolumeArgs $) {
this.driver = $.driver;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AllowedFlexVolumeArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AllowedFlexVolumeArgs $;
public Builder() {
$ = new AllowedFlexVolumeArgs();
}
public Builder(AllowedFlexVolumeArgs defaults) {
$ = new AllowedFlexVolumeArgs(Objects.requireNonNull(defaults));
}
/**
* @param driver driver is the name of the Flexvolume driver.
*
* @return builder
*
*/
public Builder driver(Output driver) {
$.driver = driver;
return this;
}
/**
* @param driver driver is the name of the Flexvolume driver.
*
* @return builder
*
*/
public Builder driver(String driver) {
return driver(Output.of(driver));
}
public AllowedFlexVolumeArgs build() {
if ($.driver == null) {
throw new MissingRequiredPropertyException("AllowedFlexVolumeArgs", "driver");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy