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

com.pulumi.azurenative.recoveryservices.inputs.AzureResourceProtectionIntentArgs 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.recoveryservices.inputs;

import com.pulumi.azurenative.recoveryservices.enums.BackupManagementType;
import com.pulumi.azurenative.recoveryservices.enums.ProtectionStatus;
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;


/**
 * IaaS VM specific backup protection intent item.
 * 
 */
public final class AzureResourceProtectionIntentArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureResourceProtectionIntentArgs Empty = new AzureResourceProtectionIntentArgs();

    /**
     * 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);
    }

    /**
     * Friendly name of the VM represented by this backup item.
     * 
     */
    @Import(name="friendlyName")
    private @Nullable Output friendlyName;

    /**
     * @return Friendly name of the VM represented by this backup item.
     * 
     */
    public Optional> friendlyName() {
        return Optional.ofNullable(this.friendlyName);
    }

    /**
     * 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 'AzureResourceItem'.
     * 
     */
    @Import(name="protectionIntentItemType", required=true)
    private Output protectionIntentItemType;

    /**
     * @return backup protectionIntent type.
     * Expected value is 'AzureResourceItem'.
     * 
     */
    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);
    }

    private AzureResourceProtectionIntentArgs() {}

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

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

    public static final class Builder {
        private AzureResourceProtectionIntentArgs $;

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

        public Builder(AzureResourceProtectionIntentArgs defaults) {
            $ = new AzureResourceProtectionIntentArgs(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 friendlyName Friendly name of the VM represented by this backup item.
         * 
         * @return builder
         * 
         */
        public Builder friendlyName(@Nullable Output friendlyName) {
            $.friendlyName = friendlyName;
            return this;
        }

        /**
         * @param friendlyName Friendly name of the VM represented by this backup item.
         * 
         * @return builder
         * 
         */
        public Builder friendlyName(String friendlyName) {
            return friendlyName(Output.of(friendlyName));
        }

        /**
         * @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 'AzureResourceItem'.
         * 
         * @return builder
         * 
         */
        public Builder protectionIntentItemType(Output protectionIntentItemType) {
            $.protectionIntentItemType = protectionIntentItemType;
            return this;
        }

        /**
         * @param protectionIntentItemType backup protectionIntent type.
         * Expected value is 'AzureResourceItem'.
         * 
         * @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));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy