All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.awsconnector.inputs.DeviceArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.azurenative.awsconnector.inputs;

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


/**
 * Definition of Device
 * 
 */
public final class DeviceArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeviceArgs Empty = new DeviceArgs();

    /**
     * The path inside the container at which to expose the host device.
     * 
     */
    @Import(name="containerPath")
    private @Nullable Output containerPath;

    /**
     * @return The path inside the container at which to expose the host device.
     * 
     */
    public Optional> containerPath() {
        return Optional.ofNullable(this.containerPath);
    }

    /**
     * The path for the device on the host container instance.
     * 
     */
    @Import(name="hostPath")
    private @Nullable Output hostPath;

    /**
     * @return The path for the device on the host container instance.
     * 
     */
    public Optional> hostPath() {
        return Optional.ofNullable(this.hostPath);
    }

    /**
     * The explicit permissions to provide to the container for the device. By default, the container has permissions for ``read``, ``write``, and ``mknod`` for the device.
     * 
     */
    @Import(name="permissions")
    private @Nullable Output> permissions;

    /**
     * @return The explicit permissions to provide to the container for the device. By default, the container has permissions for ``read``, ``write``, and ``mknod`` for the device.
     * 
     */
    public Optional>> permissions() {
        return Optional.ofNullable(this.permissions);
    }

    private DeviceArgs() {}

    private DeviceArgs(DeviceArgs $) {
        this.containerPath = $.containerPath;
        this.hostPath = $.hostPath;
        this.permissions = $.permissions;
    }

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

    public static final class Builder {
        private DeviceArgs $;

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

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

        /**
         * @param containerPath The path inside the container at which to expose the host device.
         * 
         * @return builder
         * 
         */
        public Builder containerPath(@Nullable Output containerPath) {
            $.containerPath = containerPath;
            return this;
        }

        /**
         * @param containerPath The path inside the container at which to expose the host device.
         * 
         * @return builder
         * 
         */
        public Builder containerPath(String containerPath) {
            return containerPath(Output.of(containerPath));
        }

        /**
         * @param hostPath The path for the device on the host container instance.
         * 
         * @return builder
         * 
         */
        public Builder hostPath(@Nullable Output hostPath) {
            $.hostPath = hostPath;
            return this;
        }

        /**
         * @param hostPath The path for the device on the host container instance.
         * 
         * @return builder
         * 
         */
        public Builder hostPath(String hostPath) {
            return hostPath(Output.of(hostPath));
        }

        /**
         * @param permissions The explicit permissions to provide to the container for the device. By default, the container has permissions for ``read``, ``write``, and ``mknod`` for the device.
         * 
         * @return builder
         * 
         */
        public Builder permissions(@Nullable Output> permissions) {
            $.permissions = permissions;
            return this;
        }

        /**
         * @param permissions The explicit permissions to provide to the container for the device. By default, the container has permissions for ``read``, ``write``, and ``mknod`` for the device.
         * 
         * @return builder
         * 
         */
        public Builder permissions(List permissions) {
            return permissions(Output.of(permissions));
        }

        /**
         * @param permissions The explicit permissions to provide to the container for the device. By default, the container has permissions for ``read``, ``write``, and ``mknod`` for the device.
         * 
         * @return builder
         * 
         */
        public Builder permissions(String... permissions) {
            return permissions(List.of(permissions));
        }

        public DeviceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy