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

com.pulumi.azurenative.elasticsan.VolumeSnapshotArgs 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.elasticsan;

import com.pulumi.azurenative.elasticsan.inputs.SnapshotCreationDataArgs;
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;


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

    public static final VolumeSnapshotArgs Empty = new VolumeSnapshotArgs();

    /**
     * Data used when creating a volume snapshot.
     * 
     */
    @Import(name="creationData", required=true)
    private Output creationData;

    /**
     * @return Data used when creating a volume snapshot.
     * 
     */
    public Output creationData() {
        return this.creationData;
    }

    /**
     * The name of the ElasticSan.
     * 
     */
    @Import(name="elasticSanName", required=true)
    private Output elasticSanName;

    /**
     * @return The name of the ElasticSan.
     * 
     */
    public Output elasticSanName() {
        return this.elasticSanName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the volume snapshot within the given volume group.
     * 
     */
    @Import(name="snapshotName")
    private @Nullable Output snapshotName;

    /**
     * @return The name of the volume snapshot within the given volume group.
     * 
     */
    public Optional> snapshotName() {
        return Optional.ofNullable(this.snapshotName);
    }

    /**
     * The name of the VolumeGroup.
     * 
     */
    @Import(name="volumeGroupName", required=true)
    private Output volumeGroupName;

    /**
     * @return The name of the VolumeGroup.
     * 
     */
    public Output volumeGroupName() {
        return this.volumeGroupName;
    }

    private VolumeSnapshotArgs() {}

    private VolumeSnapshotArgs(VolumeSnapshotArgs $) {
        this.creationData = $.creationData;
        this.elasticSanName = $.elasticSanName;
        this.resourceGroupName = $.resourceGroupName;
        this.snapshotName = $.snapshotName;
        this.volumeGroupName = $.volumeGroupName;
    }

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

    public static final class Builder {
        private VolumeSnapshotArgs $;

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

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

        /**
         * @param creationData Data used when creating a volume snapshot.
         * 
         * @return builder
         * 
         */
        public Builder creationData(Output creationData) {
            $.creationData = creationData;
            return this;
        }

        /**
         * @param creationData Data used when creating a volume snapshot.
         * 
         * @return builder
         * 
         */
        public Builder creationData(SnapshotCreationDataArgs creationData) {
            return creationData(Output.of(creationData));
        }

        /**
         * @param elasticSanName The name of the ElasticSan.
         * 
         * @return builder
         * 
         */
        public Builder elasticSanName(Output elasticSanName) {
            $.elasticSanName = elasticSanName;
            return this;
        }

        /**
         * @param elasticSanName The name of the ElasticSan.
         * 
         * @return builder
         * 
         */
        public Builder elasticSanName(String elasticSanName) {
            return elasticSanName(Output.of(elasticSanName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param snapshotName The name of the volume snapshot within the given volume group.
         * 
         * @return builder
         * 
         */
        public Builder snapshotName(@Nullable Output snapshotName) {
            $.snapshotName = snapshotName;
            return this;
        }

        /**
         * @param snapshotName The name of the volume snapshot within the given volume group.
         * 
         * @return builder
         * 
         */
        public Builder snapshotName(String snapshotName) {
            return snapshotName(Output.of(snapshotName));
        }

        /**
         * @param volumeGroupName The name of the VolumeGroup.
         * 
         * @return builder
         * 
         */
        public Builder volumeGroupName(Output volumeGroupName) {
            $.volumeGroupName = volumeGroupName;
            return this;
        }

        /**
         * @param volumeGroupName The name of the VolumeGroup.
         * 
         * @return builder
         * 
         */
        public Builder volumeGroupName(String volumeGroupName) {
            return volumeGroupName(Output.of(volumeGroupName));
        }

        public VolumeSnapshotArgs build() {
            if ($.creationData == null) {
                throw new MissingRequiredPropertyException("VolumeSnapshotArgs", "creationData");
            }
            if ($.elasticSanName == null) {
                throw new MissingRequiredPropertyException("VolumeSnapshotArgs", "elasticSanName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("VolumeSnapshotArgs", "resourceGroupName");
            }
            if ($.volumeGroupName == null) {
                throw new MissingRequiredPropertyException("VolumeSnapshotArgs", "volumeGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy