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

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

import com.pulumi.azurenative.appplatform.inputs.AzureFileVolumeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Custom persistent disk resource payload.
 * 
 */
public final class CustomPersistentDiskResourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomPersistentDiskResourceArgs Empty = new CustomPersistentDiskResourceArgs();

    /**
     * Properties of the custom persistent disk resource payload.
     * 
     */
    @Import(name="customPersistentDiskProperties")
    private @Nullable Output customPersistentDiskProperties;

    /**
     * @return Properties of the custom persistent disk resource payload.
     * 
     */
    public Optional> customPersistentDiskProperties() {
        return Optional.ofNullable(this.customPersistentDiskProperties);
    }

    /**
     * The resource id of Azure Spring Apps Storage resource.
     * 
     */
    @Import(name="storageId", required=true)
    private Output storageId;

    /**
     * @return The resource id of Azure Spring Apps Storage resource.
     * 
     */
    public Output storageId() {
        return this.storageId;
    }

    private CustomPersistentDiskResourceArgs() {}

    private CustomPersistentDiskResourceArgs(CustomPersistentDiskResourceArgs $) {
        this.customPersistentDiskProperties = $.customPersistentDiskProperties;
        this.storageId = $.storageId;
    }

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

    public static final class Builder {
        private CustomPersistentDiskResourceArgs $;

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

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

        /**
         * @param customPersistentDiskProperties Properties of the custom persistent disk resource payload.
         * 
         * @return builder
         * 
         */
        public Builder customPersistentDiskProperties(@Nullable Output customPersistentDiskProperties) {
            $.customPersistentDiskProperties = customPersistentDiskProperties;
            return this;
        }

        /**
         * @param customPersistentDiskProperties Properties of the custom persistent disk resource payload.
         * 
         * @return builder
         * 
         */
        public Builder customPersistentDiskProperties(AzureFileVolumeArgs customPersistentDiskProperties) {
            return customPersistentDiskProperties(Output.of(customPersistentDiskProperties));
        }

        /**
         * @param storageId The resource id of Azure Spring Apps Storage resource.
         * 
         * @return builder
         * 
         */
        public Builder storageId(Output storageId) {
            $.storageId = storageId;
            return this;
        }

        /**
         * @param storageId The resource id of Azure Spring Apps Storage resource.
         * 
         * @return builder
         * 
         */
        public Builder storageId(String storageId) {
            return storageId(Output.of(storageId));
        }

        public CustomPersistentDiskResourceArgs build() {
            if ($.storageId == null) {
                throw new MissingRequiredPropertyException("CustomPersistentDiskResourceArgs", "storageId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy