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

com.pulumi.spotinst.inputs.ElastigroupAzureV3OsDiskArgs 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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ElastigroupAzureV3OsDiskArgs Empty = new ElastigroupAzureV3OsDiskArgs();

    @Import(name="sizeGb")
    private @Nullable Output sizeGb;

    public Optional> sizeGb() {
        return Optional.ofNullable(this.sizeGb);
    }

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

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

    private ElastigroupAzureV3OsDiskArgs() {}

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

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

    public static final class Builder {
        private ElastigroupAzureV3OsDiskArgs $;

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

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

        public Builder sizeGb(@Nullable 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 ElastigroupAzureV3OsDiskArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ElastigroupAzureV3OsDiskArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy