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

com.pulumi.spotinst.inputs.ElastigroupAzureV3DataDiskArgs Maven / Gradle / Ivy

The 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.spotinst.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


public final class ElastigroupAzureV3DataDiskArgs extends com.pulumi.resources.ResourceArgs {

    public static final ElastigroupAzureV3DataDiskArgs Empty = new ElastigroupAzureV3DataDiskArgs();

    @Import(name="lun", required=true)
    private Output lun;

    public Output lun() {
        return this.lun;
    }

    @Import(name="sizeGb", required=true)
    private Output sizeGb;

    public Output sizeGb() {
        return this.sizeGb;
    }

    @Import(name="type", required=true)
    private Output type;

    public Output type() {
        return this.type;
    }

    private ElastigroupAzureV3DataDiskArgs() {}

    private ElastigroupAzureV3DataDiskArgs(ElastigroupAzureV3DataDiskArgs $) {
        this.lun = $.lun;
        this.sizeGb = $.sizeGb;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ElastigroupAzureV3DataDiskArgs $;

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

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

        public Builder lun(Output lun) {
            $.lun = lun;
            return this;
        }

        public Builder lun(Integer lun) {
            return lun(Output.of(lun));
        }

        public Builder sizeGb(Output sizeGb) {
            $.sizeGb = sizeGb;
            return this;
        }

        public Builder sizeGb(Integer sizeGb) {
            return sizeGb(Output.of(sizeGb));
        }

        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        public Builder type(String type) {
            return type(Output.of(type));
        }

        public ElastigroupAzureV3DataDiskArgs build() {
            if ($.lun == null) {
                throw new MissingRequiredPropertyException("ElastigroupAzureV3DataDiskArgs", "lun");
            }
            if ($.sizeGb == null) {
                throw new MissingRequiredPropertyException("ElastigroupAzureV3DataDiskArgs", "sizeGb");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ElastigroupAzureV3DataDiskArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy