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

com.pulumi.azurenative.recoveryservices.outputs.AzureWorkloadContainerAutoProtectionIntentResponse 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AzureWorkloadContainerAutoProtectionIntentResponse {
    /**
     * @return Type of backup management for the backed up item.
     * 
     */
    private @Nullable String backupManagementType;
    /**
     * @return ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId
     * 
     */
    private @Nullable String itemId;
    /**
     * @return ID of the backup policy with which this item is backed up.
     * 
     */
    private @Nullable String policyId;
    /**
     * @return backup protectionIntent type.
     * Expected value is 'AzureWorkloadContainerAutoProtectionIntent'.
     * 
     */
    private String protectionIntentItemType;
    /**
     * @return Backup state of this backup item.
     * 
     */
    private @Nullable String protectionState;
    /**
     * @return ARM ID of the resource to be backed up.
     * 
     */
    private @Nullable String sourceResourceId;

    private AzureWorkloadContainerAutoProtectionIntentResponse() {}
    /**
     * @return Type of backup management for the backed up item.
     * 
     */
    public Optional backupManagementType() {
        return Optional.ofNullable(this.backupManagementType);
    }
    /**
     * @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);
    }
    /**
     * @return ID of the backup policy with which this item is backed up.
     * 
     */
    public Optional policyId() {
        return Optional.ofNullable(this.policyId);
    }
    /**
     * @return backup protectionIntent type.
     * Expected value is 'AzureWorkloadContainerAutoProtectionIntent'.
     * 
     */
    public String protectionIntentItemType() {
        return this.protectionIntentItemType;
    }
    /**
     * @return Backup state of this backup item.
     * 
     */
    public Optional protectionState() {
        return Optional.ofNullable(this.protectionState);
    }
    /**
     * @return ARM ID of the resource to be backed up.
     * 
     */
    public Optional sourceResourceId() {
        return Optional.ofNullable(this.sourceResourceId);
    }

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

    public static Builder builder(AzureWorkloadContainerAutoProtectionIntentResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String backupManagementType;
        private @Nullable String itemId;
        private @Nullable String policyId;
        private String protectionIntentItemType;
        private @Nullable String protectionState;
        private @Nullable String sourceResourceId;
        public Builder() {}
        public Builder(AzureWorkloadContainerAutoProtectionIntentResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.backupManagementType = defaults.backupManagementType;
    	      this.itemId = defaults.itemId;
    	      this.policyId = defaults.policyId;
    	      this.protectionIntentItemType = defaults.protectionIntentItemType;
    	      this.protectionState = defaults.protectionState;
    	      this.sourceResourceId = defaults.sourceResourceId;
        }

        @CustomType.Setter
        public Builder backupManagementType(@Nullable String backupManagementType) {

            this.backupManagementType = backupManagementType;
            return this;
        }
        @CustomType.Setter
        public Builder itemId(@Nullable String itemId) {

            this.itemId = itemId;
            return this;
        }
        @CustomType.Setter
        public Builder policyId(@Nullable String policyId) {

            this.policyId = policyId;
            return this;
        }
        @CustomType.Setter
        public Builder protectionIntentItemType(String protectionIntentItemType) {
            if (protectionIntentItemType == null) {
              throw new MissingRequiredPropertyException("AzureWorkloadContainerAutoProtectionIntentResponse", "protectionIntentItemType");
            }
            this.protectionIntentItemType = protectionIntentItemType;
            return this;
        }
        @CustomType.Setter
        public Builder protectionState(@Nullable String protectionState) {

            this.protectionState = protectionState;
            return this;
        }
        @CustomType.Setter
        public Builder sourceResourceId(@Nullable String sourceResourceId) {

            this.sourceResourceId = sourceResourceId;
            return this;
        }
        public AzureWorkloadContainerAutoProtectionIntentResponse build() {
            final var _resultValue = new AzureWorkloadContainerAutoProtectionIntentResponse();
            _resultValue.backupManagementType = backupManagementType;
            _resultValue.itemId = itemId;
            _resultValue.policyId = policyId;
            _resultValue.protectionIntentItemType = protectionIntentItemType;
            _resultValue.protectionState = protectionState;
            _resultValue.sourceResourceId = sourceResourceId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy