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

com.pulumi.azurenative.awsconnector.inputs.DiskArgs 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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of Disk
 * 
 */
public final class DiskArgs extends com.pulumi.resources.ResourceArgs {

    public static final DiskArgs Empty = new DiskArgs();

    /**
     * Instance attached to the disk.
     * 
     */
    @Import(name="attachedTo")
    private @Nullable Output attachedTo;

    /**
     * @return Instance attached to the disk.
     * 
     */
    public Optional> attachedTo() {
        return Optional.ofNullable(this.attachedTo);
    }

    /**
     * Attachment state of the disk.
     * 
     */
    @Import(name="attachmentState")
    private @Nullable Output attachmentState;

    /**
     * @return Attachment state of the disk.
     * 
     */
    public Optional> attachmentState() {
        return Optional.ofNullable(this.attachmentState);
    }

    /**
     * The names to use for your new Lightsail disk.
     * 
     */
    @Import(name="diskName")
    private @Nullable Output diskName;

    /**
     * @return The names to use for your new Lightsail disk.
     * 
     */
    public Optional> diskName() {
        return Optional.ofNullable(this.diskName);
    }

    /**
     * IOPS of disk.
     * 
     */
    @Import(name="iops")
    private @Nullable Output iops;

    /**
     * @return IOPS of disk.
     * 
     */
    public Optional> iops() {
        return Optional.ofNullable(this.iops);
    }

    /**
     * Is the Attached disk is the system disk of the Instance.
     * 
     */
    @Import(name="isSystemDisk")
    private @Nullable Output isSystemDisk;

    /**
     * @return Is the Attached disk is the system disk of the Instance.
     * 
     */
    public Optional> isSystemDisk() {
        return Optional.ofNullable(this.isSystemDisk);
    }

    /**
     * Path of the disk attached to the instance.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return Path of the disk attached to the instance.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * Size of the disk attached to the Instance.
     * 
     */
    @Import(name="sizeInGb")
    private @Nullable Output sizeInGb;

    /**
     * @return Size of the disk attached to the Instance.
     * 
     */
    public Optional> sizeInGb() {
        return Optional.ofNullable(this.sizeInGb);
    }

    private DiskArgs() {}

    private DiskArgs(DiskArgs $) {
        this.attachedTo = $.attachedTo;
        this.attachmentState = $.attachmentState;
        this.diskName = $.diskName;
        this.iops = $.iops;
        this.isSystemDisk = $.isSystemDisk;
        this.path = $.path;
        this.sizeInGb = $.sizeInGb;
    }

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

    public static final class Builder {
        private DiskArgs $;

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

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

        /**
         * @param attachedTo Instance attached to the disk.
         * 
         * @return builder
         * 
         */
        public Builder attachedTo(@Nullable Output attachedTo) {
            $.attachedTo = attachedTo;
            return this;
        }

        /**
         * @param attachedTo Instance attached to the disk.
         * 
         * @return builder
         * 
         */
        public Builder attachedTo(String attachedTo) {
            return attachedTo(Output.of(attachedTo));
        }

        /**
         * @param attachmentState Attachment state of the disk.
         * 
         * @return builder
         * 
         */
        public Builder attachmentState(@Nullable Output attachmentState) {
            $.attachmentState = attachmentState;
            return this;
        }

        /**
         * @param attachmentState Attachment state of the disk.
         * 
         * @return builder
         * 
         */
        public Builder attachmentState(String attachmentState) {
            return attachmentState(Output.of(attachmentState));
        }

        /**
         * @param diskName The names to use for your new Lightsail disk.
         * 
         * @return builder
         * 
         */
        public Builder diskName(@Nullable Output diskName) {
            $.diskName = diskName;
            return this;
        }

        /**
         * @param diskName The names to use for your new Lightsail disk.
         * 
         * @return builder
         * 
         */
        public Builder diskName(String diskName) {
            return diskName(Output.of(diskName));
        }

        /**
         * @param iops IOPS of disk.
         * 
         * @return builder
         * 
         */
        public Builder iops(@Nullable Output iops) {
            $.iops = iops;
            return this;
        }

        /**
         * @param iops IOPS of disk.
         * 
         * @return builder
         * 
         */
        public Builder iops(Integer iops) {
            return iops(Output.of(iops));
        }

        /**
         * @param isSystemDisk Is the Attached disk is the system disk of the Instance.
         * 
         * @return builder
         * 
         */
        public Builder isSystemDisk(@Nullable Output isSystemDisk) {
            $.isSystemDisk = isSystemDisk;
            return this;
        }

        /**
         * @param isSystemDisk Is the Attached disk is the system disk of the Instance.
         * 
         * @return builder
         * 
         */
        public Builder isSystemDisk(Boolean isSystemDisk) {
            return isSystemDisk(Output.of(isSystemDisk));
        }

        /**
         * @param path Path of the disk attached to the instance.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Path of the disk attached to the instance.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param sizeInGb Size of the disk attached to the Instance.
         * 
         * @return builder
         * 
         */
        public Builder sizeInGb(@Nullable Output sizeInGb) {
            $.sizeInGb = sizeInGb;
            return this;
        }

        /**
         * @param sizeInGb Size of the disk attached to the Instance.
         * 
         * @return builder
         * 
         */
        public Builder sizeInGb(String sizeInGb) {
            return sizeInGb(Output.of(sizeInGb));
        }

        public DiskArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy