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

com.pulumi.azurenative.networkcloud.outputs.OsDiskResponse 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.networkcloud.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OsDiskResponse {
    /**
     * @return The strategy for creating the OS disk.
     * 
     */
    private @Nullable String createOption;
    /**
     * @return The strategy for deleting the OS disk.
     * 
     */
    private @Nullable String deleteOption;
    /**
     * @return The size of the disk in gigabytes. Required if the createOption is Ephemeral.
     * 
     */
    private Double diskSizeGB;

    private OsDiskResponse() {}
    /**
     * @return The strategy for creating the OS disk.
     * 
     */
    public Optional createOption() {
        return Optional.ofNullable(this.createOption);
    }
    /**
     * @return The strategy for deleting the OS disk.
     * 
     */
    public Optional deleteOption() {
        return Optional.ofNullable(this.deleteOption);
    }
    /**
     * @return The size of the disk in gigabytes. Required if the createOption is Ephemeral.
     * 
     */
    public Double diskSizeGB() {
        return this.diskSizeGB;
    }

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

    public static Builder builder(OsDiskResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String createOption;
        private @Nullable String deleteOption;
        private Double diskSizeGB;
        public Builder() {}
        public Builder(OsDiskResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.createOption = defaults.createOption;
    	      this.deleteOption = defaults.deleteOption;
    	      this.diskSizeGB = defaults.diskSizeGB;
        }

        @CustomType.Setter
        public Builder createOption(@Nullable String createOption) {

            this.createOption = createOption;
            return this;
        }
        @CustomType.Setter
        public Builder deleteOption(@Nullable String deleteOption) {

            this.deleteOption = deleteOption;
            return this;
        }
        @CustomType.Setter
        public Builder diskSizeGB(Double diskSizeGB) {
            if (diskSizeGB == null) {
              throw new MissingRequiredPropertyException("OsDiskResponse", "diskSizeGB");
            }
            this.diskSizeGB = diskSizeGB;
            return this;
        }
        public OsDiskResponse build() {
            final var _resultValue = new OsDiskResponse();
            _resultValue.createOption = createOption;
            _resultValue.deleteOption = deleteOption;
            _resultValue.diskSizeGB = diskSizeGB;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy