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

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

There is a newer version: 2.72.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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of Tmpfs
 * 
 */
public final class TmpfsArgs extends com.pulumi.resources.ResourceArgs {

    public static final TmpfsArgs Empty = new TmpfsArgs();

    /**
     * The absolute file path where the tmpfs volume is to be mounted.
     * 
     */
    @Import(name="containerPath")
    private @Nullable Output containerPath;

    /**
     * @return The absolute file path where the tmpfs volume is to be mounted.
     * 
     */
    public Optional> containerPath() {
        return Optional.ofNullable(this.containerPath);
    }

    /**
     * The list of tmpfs volume mount options.
     * 
     */
    @Import(name="mountOptions")
    private @Nullable Output> mountOptions;

    /**
     * @return The list of tmpfs volume mount options.
     * 
     */
    public Optional>> mountOptions() {
        return Optional.ofNullable(this.mountOptions);
    }

    /**
     * The maximum size (in MiB) of the tmpfs volume.
     * 
     */
    @Import(name="size")
    private @Nullable Output size;

    /**
     * @return The maximum size (in MiB) of the tmpfs volume.
     * 
     */
    public Optional> size() {
        return Optional.ofNullable(this.size);
    }

    private TmpfsArgs() {}

    private TmpfsArgs(TmpfsArgs $) {
        this.containerPath = $.containerPath;
        this.mountOptions = $.mountOptions;
        this.size = $.size;
    }

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

    public static final class Builder {
        private TmpfsArgs $;

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

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

        /**
         * @param containerPath The absolute file path where the tmpfs volume is to be mounted.
         * 
         * @return builder
         * 
         */
        public Builder containerPath(@Nullable Output containerPath) {
            $.containerPath = containerPath;
            return this;
        }

        /**
         * @param containerPath The absolute file path where the tmpfs volume is to be mounted.
         * 
         * @return builder
         * 
         */
        public Builder containerPath(String containerPath) {
            return containerPath(Output.of(containerPath));
        }

        /**
         * @param mountOptions The list of tmpfs volume mount options.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(@Nullable Output> mountOptions) {
            $.mountOptions = mountOptions;
            return this;
        }

        /**
         * @param mountOptions The list of tmpfs volume mount options.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(List mountOptions) {
            return mountOptions(Output.of(mountOptions));
        }

        /**
         * @param mountOptions The list of tmpfs volume mount options.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(String... mountOptions) {
            return mountOptions(List.of(mountOptions));
        }

        /**
         * @param size The maximum size (in MiB) of the tmpfs volume.
         * 
         * @return builder
         * 
         */
        public Builder size(@Nullable Output size) {
            $.size = size;
            return this;
        }

        /**
         * @param size The maximum size (in MiB) of the tmpfs volume.
         * 
         * @return builder
         * 
         */
        public Builder size(Integer size) {
            return size(Output.of(size));
        }

        public TmpfsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy