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

com.pulumi.azurenative.compute.RestorePointArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.compute;

import com.pulumi.azurenative.compute.enums.ConsistencyModeTypes;
import com.pulumi.azurenative.compute.inputs.ApiEntityReferenceArgs;
import com.pulumi.azurenative.compute.inputs.RestorePointSourceMetadataArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RestorePointArgs Empty = new RestorePointArgs();

    /**
     * ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
     * 
     */
    @Import(name="consistencyMode")
    private @Nullable Output> consistencyMode;

    /**
     * @return ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
     * 
     */
    public Optional>> consistencyMode() {
        return Optional.ofNullable(this.consistencyMode);
    }

    /**
     * List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
     * 
     */
    @Import(name="excludeDisks")
    private @Nullable Output> excludeDisks;

    /**
     * @return List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
     * 
     */
    public Optional>> excludeDisks() {
        return Optional.ofNullable(this.excludeDisks);
    }

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

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

    /**
     * The name of the restore point collection.
     * 
     */
    @Import(name="restorePointCollectionName", required=true)
    private Output restorePointCollectionName;

    /**
     * @return The name of the restore point collection.
     * 
     */
    public Output restorePointCollectionName() {
        return this.restorePointCollectionName;
    }

    /**
     * The name of the restore point.
     * 
     */
    @Import(name="restorePointName")
    private @Nullable Output restorePointName;

    /**
     * @return The name of the restore point.
     * 
     */
    public Optional> restorePointName() {
        return Optional.ofNullable(this.restorePointName);
    }

    /**
     * Gets the details of the VM captured at the time of the restore point creation.
     * 
     */
    @Import(name="sourceMetadata")
    private @Nullable Output sourceMetadata;

    /**
     * @return Gets the details of the VM captured at the time of the restore point creation.
     * 
     */
    public Optional> sourceMetadata() {
        return Optional.ofNullable(this.sourceMetadata);
    }

    /**
     * Resource Id of the source restore point from which a copy needs to be created.
     * 
     */
    @Import(name="sourceRestorePoint")
    private @Nullable Output sourceRestorePoint;

    /**
     * @return Resource Id of the source restore point from which a copy needs to be created.
     * 
     */
    public Optional> sourceRestorePoint() {
        return Optional.ofNullable(this.sourceRestorePoint);
    }

    /**
     * Gets the creation time of the restore point.
     * 
     */
    @Import(name="timeCreated")
    private @Nullable Output timeCreated;

    /**
     * @return Gets the creation time of the restore point.
     * 
     */
    public Optional> timeCreated() {
        return Optional.ofNullable(this.timeCreated);
    }

    private RestorePointArgs() {}

    private RestorePointArgs(RestorePointArgs $) {
        this.consistencyMode = $.consistencyMode;
        this.excludeDisks = $.excludeDisks;
        this.resourceGroupName = $.resourceGroupName;
        this.restorePointCollectionName = $.restorePointCollectionName;
        this.restorePointName = $.restorePointName;
        this.sourceMetadata = $.sourceMetadata;
        this.sourceRestorePoint = $.sourceRestorePoint;
        this.timeCreated = $.timeCreated;
    }

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

    public static final class Builder {
        private RestorePointArgs $;

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

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

        /**
         * @param consistencyMode ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
         * 
         * @return builder
         * 
         */
        public Builder consistencyMode(@Nullable Output> consistencyMode) {
            $.consistencyMode = consistencyMode;
            return this;
        }

        /**
         * @param consistencyMode ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
         * 
         * @return builder
         * 
         */
        public Builder consistencyMode(Either consistencyMode) {
            return consistencyMode(Output.of(consistencyMode));
        }

        /**
         * @param consistencyMode ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
         * 
         * @return builder
         * 
         */
        public Builder consistencyMode(String consistencyMode) {
            return consistencyMode(Either.ofLeft(consistencyMode));
        }

        /**
         * @param consistencyMode ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
         * 
         * @return builder
         * 
         */
        public Builder consistencyMode(ConsistencyModeTypes consistencyMode) {
            return consistencyMode(Either.ofRight(consistencyMode));
        }

        /**
         * @param excludeDisks List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
         * 
         * @return builder
         * 
         */
        public Builder excludeDisks(@Nullable Output> excludeDisks) {
            $.excludeDisks = excludeDisks;
            return this;
        }

        /**
         * @param excludeDisks List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
         * 
         * @return builder
         * 
         */
        public Builder excludeDisks(List excludeDisks) {
            return excludeDisks(Output.of(excludeDisks));
        }

        /**
         * @param excludeDisks List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
         * 
         * @return builder
         * 
         */
        public Builder excludeDisks(ApiEntityReferenceArgs... excludeDisks) {
            return excludeDisks(List.of(excludeDisks));
        }

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

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

        /**
         * @param restorePointCollectionName The name of the restore point collection.
         * 
         * @return builder
         * 
         */
        public Builder restorePointCollectionName(Output restorePointCollectionName) {
            $.restorePointCollectionName = restorePointCollectionName;
            return this;
        }

        /**
         * @param restorePointCollectionName The name of the restore point collection.
         * 
         * @return builder
         * 
         */
        public Builder restorePointCollectionName(String restorePointCollectionName) {
            return restorePointCollectionName(Output.of(restorePointCollectionName));
        }

        /**
         * @param restorePointName The name of the restore point.
         * 
         * @return builder
         * 
         */
        public Builder restorePointName(@Nullable Output restorePointName) {
            $.restorePointName = restorePointName;
            return this;
        }

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

        /**
         * @param sourceMetadata Gets the details of the VM captured at the time of the restore point creation.
         * 
         * @return builder
         * 
         */
        public Builder sourceMetadata(@Nullable Output sourceMetadata) {
            $.sourceMetadata = sourceMetadata;
            return this;
        }

        /**
         * @param sourceMetadata Gets the details of the VM captured at the time of the restore point creation.
         * 
         * @return builder
         * 
         */
        public Builder sourceMetadata(RestorePointSourceMetadataArgs sourceMetadata) {
            return sourceMetadata(Output.of(sourceMetadata));
        }

        /**
         * @param sourceRestorePoint Resource Id of the source restore point from which a copy needs to be created.
         * 
         * @return builder
         * 
         */
        public Builder sourceRestorePoint(@Nullable Output sourceRestorePoint) {
            $.sourceRestorePoint = sourceRestorePoint;
            return this;
        }

        /**
         * @param sourceRestorePoint Resource Id of the source restore point from which a copy needs to be created.
         * 
         * @return builder
         * 
         */
        public Builder sourceRestorePoint(ApiEntityReferenceArgs sourceRestorePoint) {
            return sourceRestorePoint(Output.of(sourceRestorePoint));
        }

        /**
         * @param timeCreated Gets the creation time of the restore point.
         * 
         * @return builder
         * 
         */
        public Builder timeCreated(@Nullable Output timeCreated) {
            $.timeCreated = timeCreated;
            return this;
        }

        /**
         * @param timeCreated Gets the creation time of the restore point.
         * 
         * @return builder
         * 
         */
        public Builder timeCreated(String timeCreated) {
            return timeCreated(Output.of(timeCreated));
        }

        public RestorePointArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("RestorePointArgs", "resourceGroupName");
            }
            if ($.restorePointCollectionName == null) {
                throw new MissingRequiredPropertyException("RestorePointArgs", "restorePointCollectionName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy