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

com.pulumi.azurenative.appplatform.inputs.TemporaryDiskArgs 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.appplatform.inputs;

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


/**
 * Temporary disk payload
 * 
 */
public final class TemporaryDiskArgs extends com.pulumi.resources.ResourceArgs {

    public static final TemporaryDiskArgs Empty = new TemporaryDiskArgs();

    /**
     * Mount path of the temporary disk
     * 
     */
    @Import(name="mountPath")
    private @Nullable Output mountPath;

    /**
     * @return Mount path of the temporary disk
     * 
     */
    public Optional> mountPath() {
        return Optional.ofNullable(this.mountPath);
    }

    /**
     * Size of the temporary disk in GB
     * 
     */
    @Import(name="sizeInGB")
    private @Nullable Output sizeInGB;

    /**
     * @return Size of the temporary disk in GB
     * 
     */
    public Optional> sizeInGB() {
        return Optional.ofNullable(this.sizeInGB);
    }

    private TemporaryDiskArgs() {}

    private TemporaryDiskArgs(TemporaryDiskArgs $) {
        this.mountPath = $.mountPath;
        this.sizeInGB = $.sizeInGB;
    }

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

    public static final class Builder {
        private TemporaryDiskArgs $;

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

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

        /**
         * @param mountPath Mount path of the temporary disk
         * 
         * @return builder
         * 
         */
        public Builder mountPath(@Nullable Output mountPath) {
            $.mountPath = mountPath;
            return this;
        }

        /**
         * @param mountPath Mount path of the temporary disk
         * 
         * @return builder
         * 
         */
        public Builder mountPath(String mountPath) {
            return mountPath(Output.of(mountPath));
        }

        /**
         * @param sizeInGB Size of the temporary disk in GB
         * 
         * @return builder
         * 
         */
        public Builder sizeInGB(@Nullable Output sizeInGB) {
            $.sizeInGB = sizeInGB;
            return this;
        }

        /**
         * @param sizeInGB Size of the temporary disk in GB
         * 
         * @return builder
         * 
         */
        public Builder sizeInGB(Integer sizeInGB) {
            return sizeInGB(Output.of(sizeInGB));
        }

        public TemporaryDiskArgs build() {
            $.mountPath = Codegen.stringProp("mountPath").output().arg($.mountPath).def("/tmp").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy