com.pulumi.azurenative.recoveryservices.outputs.AzureWorkloadAutoProtectionIntentResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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 AzureWorkloadAutoProtectionIntentResponse {
/**
* @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 'AzureWorkloadAutoProtectionIntent'.
*
*/
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 AzureWorkloadAutoProtectionIntentResponse() {}
/**
* @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 'AzureWorkloadAutoProtectionIntent'.
*
*/
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(AzureWorkloadAutoProtectionIntentResponse 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(AzureWorkloadAutoProtectionIntentResponse 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("AzureWorkloadAutoProtectionIntentResponse", "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 AzureWorkloadAutoProtectionIntentResponse build() {
final var _resultValue = new AzureWorkloadAutoProtectionIntentResponse();
_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