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

com.pulumi.azurenative.recoveryservices.inputs.AzureWorkloadSQLAutoProtectionIntentArgs Maven / Gradle / Ivy

// *** 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.recoveryservices.inputs;

import com.pulumi.azurenative.recoveryservices.enums.BackupManagementType;
import com.pulumi.azurenative.recoveryservices.enums.ProtectionStatus;
import com.pulumi.azurenative.recoveryservices.enums.WorkloadItemType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Azure Workload SQL Auto Protection intent item.
 * 
 */
public final class AzureWorkloadSQLAutoProtectionIntentArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureWorkloadSQLAutoProtectionIntentArgs Empty = new AzureWorkloadSQLAutoProtectionIntentArgs();

    /**
     * Type of backup management for the backed up item.
     * 
     */
    @Import(name="backupManagementType")
    private @Nullable Output> backupManagementType;

    /**
     * @return Type of backup management for the backed up item.
     * 
     */
    public Optional>> backupManagementType() {
        return Optional.ofNullable(this.backupManagementType);
    }

    /**
     * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId
     * 
     */
    @Import(name="itemId")
    private @Nullable Output itemId;

    /**
     * @return ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId
     * 
     */
    public Optional> itemId() {
        return Optional.ofNullable(this.itemId);
    }

    /**
     * ID of the backup policy with which this item is backed up.
     * 
     */
    @Import(name="policyId")
    private @Nullable Output policyId;

    /**
     * @return ID of the backup policy with which this item is backed up.
     * 
     */
    public Optional> policyId() {
        return Optional.ofNullable(this.policyId);
    }

    /**
     * backup protectionIntent type.
     * Expected value is 'AzureWorkloadSQLAutoProtectionIntent'.
     * 
     */
    @Import(name="protectionIntentItemType", required=true)
    private Output protectionIntentItemType;

    /**
     * @return backup protectionIntent type.
     * Expected value is 'AzureWorkloadSQLAutoProtectionIntent'.
     * 
     */
    public Output protectionIntentItemType() {
        return this.protectionIntentItemType;
    }

    /**
     * Backup state of this backup item.
     * 
     */
    @Import(name="protectionState")
    private @Nullable Output> protectionState;

    /**
     * @return Backup state of this backup item.
     * 
     */
    public Optional>> protectionState() {
        return Optional.ofNullable(this.protectionState);
    }

    /**
     * ARM ID of the resource to be backed up.
     * 
     */
    @Import(name="sourceResourceId")
    private @Nullable Output sourceResourceId;

    /**
     * @return ARM ID of the resource to be backed up.
     * 
     */
    public Optional> sourceResourceId() {
        return Optional.ofNullable(this.sourceResourceId);
    }

    /**
     * Workload item type of the item for which intent is to be set
     * 
     */
    @Import(name="workloadItemType")
    private @Nullable Output> workloadItemType;

    /**
     * @return Workload item type of the item for which intent is to be set
     * 
     */
    public Optional>> workloadItemType() {
        return Optional.ofNullable(this.workloadItemType);
    }

    private AzureWorkloadSQLAutoProtectionIntentArgs() {}

    private AzureWorkloadSQLAutoProtectionIntentArgs(AzureWorkloadSQLAutoProtectionIntentArgs $) {
        this.backupManagementType = $.backupManagementType;
        this.itemId = $.itemId;
        this.policyId = $.policyId;
        this.protectionIntentItemType = $.protectionIntentItemType;
        this.protectionState = $.protectionState;
        this.sourceResourceId = $.sourceResourceId;
        this.workloadItemType = $.workloadItemType;
    }

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

    public static final class Builder {
        private AzureWorkloadSQLAutoProtectionIntentArgs $;

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

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

        /**
         * @param backupManagementType Type of backup management for the backed up item.
         * 
         * @return builder
         * 
         */
        public Builder backupManagementType(@Nullable Output> backupManagementType) {
            $.backupManagementType = backupManagementType;
            return this;
        }

        /**
         * @param backupManagementType Type of backup management for the backed up item.
         * 
         * @return builder
         * 
         */
        public Builder backupManagementType(Either backupManagementType) {
            return backupManagementType(Output.of(backupManagementType));
        }

        /**
         * @param backupManagementType Type of backup management for the backed up item.
         * 
         * @return builder
         * 
         */
        public Builder backupManagementType(String backupManagementType) {
            return backupManagementType(Either.ofLeft(backupManagementType));
        }

        /**
         * @param backupManagementType Type of backup management for the backed up item.
         * 
         * @return builder
         * 
         */
        public Builder backupManagementType(BackupManagementType backupManagementType) {
            return backupManagementType(Either.ofRight(backupManagementType));
        }

        /**
         * @param itemId ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId
         * 
         * @return builder
         * 
         */
        public Builder itemId(@Nullable Output itemId) {
            $.itemId = itemId;
            return this;
        }

        /**
         * @param itemId ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId
         * 
         * @return builder
         * 
         */
        public Builder itemId(String itemId) {
            return itemId(Output.of(itemId));
        }

        /**
         * @param policyId ID of the backup policy with which this item is backed up.
         * 
         * @return builder
         * 
         */
        public Builder policyId(@Nullable Output policyId) {
            $.policyId = policyId;
            return this;
        }

        /**
         * @param policyId ID of the backup policy with which this item is backed up.
         * 
         * @return builder
         * 
         */
        public Builder policyId(String policyId) {
            return policyId(Output.of(policyId));
        }

        /**
         * @param protectionIntentItemType backup protectionIntent type.
         * Expected value is 'AzureWorkloadSQLAutoProtectionIntent'.
         * 
         * @return builder
         * 
         */
        public Builder protectionIntentItemType(Output protectionIntentItemType) {
            $.protectionIntentItemType = protectionIntentItemType;
            return this;
        }

        /**
         * @param protectionIntentItemType backup protectionIntent type.
         * Expected value is 'AzureWorkloadSQLAutoProtectionIntent'.
         * 
         * @return builder
         * 
         */
        public Builder protectionIntentItemType(String protectionIntentItemType) {
            return protectionIntentItemType(Output.of(protectionIntentItemType));
        }

        /**
         * @param protectionState Backup state of this backup item.
         * 
         * @return builder
         * 
         */
        public Builder protectionState(@Nullable Output> protectionState) {
            $.protectionState = protectionState;
            return this;
        }

        /**
         * @param protectionState Backup state of this backup item.
         * 
         * @return builder
         * 
         */
        public Builder protectionState(Either protectionState) {
            return protectionState(Output.of(protectionState));
        }

        /**
         * @param protectionState Backup state of this backup item.
         * 
         * @return builder
         * 
         */
        public Builder protectionState(String protectionState) {
            return protectionState(Either.ofLeft(protectionState));
        }

        /**
         * @param protectionState Backup state of this backup item.
         * 
         * @return builder
         * 
         */
        public Builder protectionState(ProtectionStatus protectionState) {
            return protectionState(Either.ofRight(protectionState));
        }

        /**
         * @param sourceResourceId ARM ID of the resource to be backed up.
         * 
         * @return builder
         * 
         */
        public Builder sourceResourceId(@Nullable Output sourceResourceId) {
            $.sourceResourceId = sourceResourceId;
            return this;
        }

        /**
         * @param sourceResourceId ARM ID of the resource to be backed up.
         * 
         * @return builder
         * 
         */
        public Builder sourceResourceId(String sourceResourceId) {
            return sourceResourceId(Output.of(sourceResourceId));
        }

        /**
         * @param workloadItemType Workload item type of the item for which intent is to be set
         * 
         * @return builder
         * 
         */
        public Builder workloadItemType(@Nullable Output> workloadItemType) {
            $.workloadItemType = workloadItemType;
            return this;
        }

        /**
         * @param workloadItemType Workload item type of the item for which intent is to be set
         * 
         * @return builder
         * 
         */
        public Builder workloadItemType(Either workloadItemType) {
            return workloadItemType(Output.of(workloadItemType));
        }

        /**
         * @param workloadItemType Workload item type of the item for which intent is to be set
         * 
         * @return builder
         * 
         */
        public Builder workloadItemType(String workloadItemType) {
            return workloadItemType(Either.ofLeft(workloadItemType));
        }

        /**
         * @param workloadItemType Workload item type of the item for which intent is to be set
         * 
         * @return builder
         * 
         */
        public Builder workloadItemType(WorkloadItemType workloadItemType) {
            return workloadItemType(Either.ofRight(workloadItemType));
        }

        public AzureWorkloadSQLAutoProtectionIntentArgs build() {
            $.protectionIntentItemType = Codegen.stringProp("protectionIntentItemType").output().arg($.protectionIntentItemType).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy