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

com.pulumi.azurenative.documentdb.inputs.BackupPolicyMigrationStateArgs 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.documentdb.inputs;

import com.pulumi.azurenative.documentdb.enums.BackupPolicyMigrationStatus;
import com.pulumi.azurenative.documentdb.enums.BackupPolicyType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The object representing the state of the migration between the backup policies.
 * 
 */
public final class BackupPolicyMigrationStateArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackupPolicyMigrationStateArgs Empty = new BackupPolicyMigrationStateArgs();

    /**
     * Time at which the backup policy migration started (ISO-8601 format).
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

    /**
     * @return Time at which the backup policy migration started (ISO-8601 format).
     * 
     */
    public Optional> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    /**
     * Describes the status of migration between backup policy types.
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return Describes the status of migration between backup policy types.
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * Describes the target backup policy type of the backup policy migration.
     * 
     */
    @Import(name="targetType")
    private @Nullable Output> targetType;

    /**
     * @return Describes the target backup policy type of the backup policy migration.
     * 
     */
    public Optional>> targetType() {
        return Optional.ofNullable(this.targetType);
    }

    private BackupPolicyMigrationStateArgs() {}

    private BackupPolicyMigrationStateArgs(BackupPolicyMigrationStateArgs $) {
        this.startTime = $.startTime;
        this.status = $.status;
        this.targetType = $.targetType;
    }

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

    public static final class Builder {
        private BackupPolicyMigrationStateArgs $;

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

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

        /**
         * @param startTime Time at which the backup policy migration started (ISO-8601 format).
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime Time at which the backup policy migration started (ISO-8601 format).
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        /**
         * @param status Describes the status of migration between backup policy types.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Describes the status of migration between backup policy types.
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status Describes the status of migration between backup policy types.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status Describes the status of migration between backup policy types.
         * 
         * @return builder
         * 
         */
        public Builder status(BackupPolicyMigrationStatus status) {
            return status(Either.ofRight(status));
        }

        /**
         * @param targetType Describes the target backup policy type of the backup policy migration.
         * 
         * @return builder
         * 
         */
        public Builder targetType(@Nullable Output> targetType) {
            $.targetType = targetType;
            return this;
        }

        /**
         * @param targetType Describes the target backup policy type of the backup policy migration.
         * 
         * @return builder
         * 
         */
        public Builder targetType(Either targetType) {
            return targetType(Output.of(targetType));
        }

        /**
         * @param targetType Describes the target backup policy type of the backup policy migration.
         * 
         * @return builder
         * 
         */
        public Builder targetType(String targetType) {
            return targetType(Either.ofLeft(targetType));
        }

        /**
         * @param targetType Describes the target backup policy type of the backup policy migration.
         * 
         * @return builder
         * 
         */
        public Builder targetType(BackupPolicyType targetType) {
            return targetType(Either.ofRight(targetType));
        }

        public BackupPolicyMigrationStateArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy