// *** 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.core.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * volumeDevice describes a mapping of a raw block device within a container.
 * 
 */
public final class VolumeDevicePatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final VolumeDevicePatchArgs Empty = new VolumeDevicePatchArgs();

    /**
     * devicePath is the path inside of the container that the device will be mapped to.
     * 
     */
    @Import(name="devicePath")
    private @Nullable Output<String> devicePath;

    /**
     * @return devicePath is the path inside of the container that the device will be mapped to.
     * 
     */
    public Optional<Output<String>> devicePath() {
        return Optional.ofNullable(this.devicePath);
    }

    /**
     * name must match the name of a persistentVolumeClaim in the pod
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return name must match the name of a persistentVolumeClaim in the pod
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    private VolumeDevicePatchArgs() {}

    private VolumeDevicePatchArgs(VolumeDevicePatchArgs $) {
        this.devicePath = $.devicePath;
        this.name = $.name;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(VolumeDevicePatchArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private VolumeDevicePatchArgs $;

        public Builder() {
            $ = new VolumeDevicePatchArgs();
        }

        public Builder(VolumeDevicePatchArgs defaults) {
            $ = new VolumeDevicePatchArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param devicePath devicePath is the path inside of the container that the device will be mapped to.
         * 
         * @return builder
         * 
         */
        public Builder devicePath(@Nullable Output<String> devicePath) {
            $.devicePath = devicePath;
            return this;
        }

        /**
         * @param devicePath devicePath is the path inside of the container that the device will be mapped to.
         * 
         * @return builder
         * 
         */
        public Builder devicePath(String devicePath) {
            return devicePath(Output.of(devicePath));
        }

        /**
         * @param name name must match the name of a persistentVolumeClaim in the pod
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name name must match the name of a persistentVolumeClaim in the pod
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public VolumeDevicePatchArgs build() {
            return $;
        }
    }

}
