Freigeben über


A2AProtectedManagedDiskDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.recoveryservicessiterecovery.models.A2AProtectedManagedDiskDetails

Implements

public final class A2AProtectedManagedDiskDetails
implements JsonSerializable<A2AProtectedManagedDiskDetails>

A2A protected managed disk details.

Constructor Summary

Constructor Description
A2AProtectedManagedDiskDetails()

Creates an instance of A2AProtectedManagedDiskDetails class.

Method Summary

Modifier and Type Method and Description
List<String> allowedDiskLevelOperation()

Get the allowedDiskLevelOperation property: The disk level operations list.

Double dataPendingAtSourceAgentInMB()

Get the dataPendingAtSourceAgentInMB property: The data pending at source virtual machine in MB.

Double dataPendingInStagingStorageAccountInMB()

Get the dataPendingInStagingStorageAccountInMB property: The data pending for replication in MB at staging account.

String dekKeyVaultArmId()

Get the dekKeyVaultArmId property: The KeyVault resource id for secret (BEK).

Long diskCapacityInBytes()

Get the diskCapacityInBytes property: The disk capacity in bytes.

String diskId()

Get the diskId property: The managed disk Arm id.

String diskName()

Get the diskName property: The disk name.

String diskState()

Get the diskState property: The disk state.

String diskType()

Get the diskType property: The type of disk.

String failoverDiskName()

Get the failoverDiskName property: The failover name for the managed disk.

static A2AProtectedManagedDiskDetails fromJson(JsonReader jsonReader)

Reads an instance of A2AProtectedManagedDiskDetails from the JsonReader.

Boolean isDiskEncrypted()

Get the isDiskEncrypted property: A value indicating whether vm has encrypted os disk or not.

Boolean isDiskKeyEncrypted()

Get the isDiskKeyEncrypted property: A value indicating whether disk key got encrypted or not.

String kekKeyVaultArmId()

Get the kekKeyVaultArmId property: The KeyVault resource id for key (KEK).

String keyIdentifier()

Get the keyIdentifier property: The key URL / identifier (KEK).

String monitoringJobType()

Get the monitoringJobType property: The type of the monitoring job.

Integer monitoringPercentageCompletion()

Get the monitoringPercentageCompletion property: The percentage of the monitoring job.

String primaryDiskEncryptionSetId()

Get the primaryDiskEncryptionSetId property: The primary disk encryption set Id.

String primaryStagingAzureStorageAccountId()

Get the primaryStagingAzureStorageAccountId property: The primary staging storage account.

String recoveryDiskEncryptionSetId()

Get the recoveryDiskEncryptionSetId property: The recovery disk encryption set Id.

String recoveryOrignalTargetDiskId()

Get the recoveryOrignalTargetDiskId property: Recovery original target disk Arm Id.

String recoveryReplicaDiskAccountType()

Get the recoveryReplicaDiskAccountType property: The replica disk type.

String recoveryReplicaDiskId()

Get the recoveryReplicaDiskId property: Recovery replica disk Arm Id.

String recoveryResourceGroupId()

Get the recoveryResourceGroupId property: The recovery disk resource group Arm Id.

String recoveryTargetDiskAccountType()

Get the recoveryTargetDiskAccountType property: The target disk type after failover.

String recoveryTargetDiskId()

Get the recoveryTargetDiskId property: Recovery target disk Arm Id.

Boolean resyncRequired()

Get the resyncRequired property: A value indicating whether resync is required for this disk.

String secretIdentifier()

Get the secretIdentifier property: The secret URL / identifier (BEK).

String tfoDiskName()

Get the tfoDiskName property: The test failover name for the managed disk.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

A2AProtectedManagedDiskDetails withAllowedDiskLevelOperation(List<String> allowedDiskLevelOperation)

Set the allowedDiskLevelOperation property: The disk level operations list.

A2AProtectedManagedDiskDetails withDataPendingAtSourceAgentInMB(Double dataPendingAtSourceAgentInMB)

Set the dataPendingAtSourceAgentInMB property: The data pending at source virtual machine in MB.

A2AProtectedManagedDiskDetails withDataPendingInStagingStorageAccountInMB(Double dataPendingInStagingStorageAccountInMB)

Set the dataPendingInStagingStorageAccountInMB property: The data pending for replication in MB at staging account.

A2AProtectedManagedDiskDetails withDekKeyVaultArmId(String dekKeyVaultArmId)

Set the dekKeyVaultArmId property: The KeyVault resource id for secret (BEK).

A2AProtectedManagedDiskDetails withDiskCapacityInBytes(Long diskCapacityInBytes)

Set the diskCapacityInBytes property: The disk capacity in bytes.

A2AProtectedManagedDiskDetails withDiskId(String diskId)

Set the diskId property: The managed disk Arm id.

A2AProtectedManagedDiskDetails withDiskName(String diskName)

Set the diskName property: The disk name.

A2AProtectedManagedDiskDetails withDiskState(String diskState)

Set the diskState property: The disk state.

A2AProtectedManagedDiskDetails withDiskType(String diskType)

Set the diskType property: The type of disk.

A2AProtectedManagedDiskDetails withFailoverDiskName(String failoverDiskName)

Set the failoverDiskName property: The failover name for the managed disk.

A2AProtectedManagedDiskDetails withIsDiskEncrypted(Boolean isDiskEncrypted)

Set the isDiskEncrypted property: A value indicating whether vm has encrypted os disk or not.

A2AProtectedManagedDiskDetails withIsDiskKeyEncrypted(Boolean isDiskKeyEncrypted)

Set the isDiskKeyEncrypted property: A value indicating whether disk key got encrypted or not.

A2AProtectedManagedDiskDetails withKekKeyVaultArmId(String kekKeyVaultArmId)

Set the kekKeyVaultArmId property: The KeyVault resource id for key (KEK).

A2AProtectedManagedDiskDetails withKeyIdentifier(String keyIdentifier)

Set the keyIdentifier property: The key URL / identifier (KEK).

A2AProtectedManagedDiskDetails withMonitoringJobType(String monitoringJobType)

Set the monitoringJobType property: The type of the monitoring job.

A2AProtectedManagedDiskDetails withMonitoringPercentageCompletion(Integer monitoringPercentageCompletion)

Set the monitoringPercentageCompletion property: The percentage of the monitoring job.

A2AProtectedManagedDiskDetails withPrimaryDiskEncryptionSetId(String primaryDiskEncryptionSetId)

Set the primaryDiskEncryptionSetId property: The primary disk encryption set Id.

A2AProtectedManagedDiskDetails withPrimaryStagingAzureStorageAccountId(String primaryStagingAzureStorageAccountId)

Set the primaryStagingAzureStorageAccountId property: The primary staging storage account.

A2AProtectedManagedDiskDetails withRecoveryDiskEncryptionSetId(String recoveryDiskEncryptionSetId)

Set the recoveryDiskEncryptionSetId property: The recovery disk encryption set Id.

A2AProtectedManagedDiskDetails withRecoveryOrignalTargetDiskId(String recoveryOrignalTargetDiskId)

Set the recoveryOrignalTargetDiskId property: Recovery original target disk Arm Id.

A2AProtectedManagedDiskDetails withRecoveryReplicaDiskAccountType(String recoveryReplicaDiskAccountType)

Set the recoveryReplicaDiskAccountType property: The replica disk type.

A2AProtectedManagedDiskDetails withRecoveryReplicaDiskId(String recoveryReplicaDiskId)

Set the recoveryReplicaDiskId property: Recovery replica disk Arm Id.

A2AProtectedManagedDiskDetails withRecoveryResourceGroupId(String recoveryResourceGroupId)

Set the recoveryResourceGroupId property: The recovery disk resource group Arm Id.

A2AProtectedManagedDiskDetails withRecoveryTargetDiskAccountType(String recoveryTargetDiskAccountType)

Set the recoveryTargetDiskAccountType property: The target disk type after failover.

A2AProtectedManagedDiskDetails withRecoveryTargetDiskId(String recoveryTargetDiskId)

Set the recoveryTargetDiskId property: Recovery target disk Arm Id.

A2AProtectedManagedDiskDetails withResyncRequired(Boolean resyncRequired)

Set the resyncRequired property: A value indicating whether resync is required for this disk.

A2AProtectedManagedDiskDetails withSecretIdentifier(String secretIdentifier)

Set the secretIdentifier property: The secret URL / identifier (BEK).

A2AProtectedManagedDiskDetails withTfoDiskName(String tfoDiskName)

Set the tfoDiskName property: The test failover name for the managed disk.

Methods inherited from java.lang.Object

Constructor Details

A2AProtectedManagedDiskDetails

public A2AProtectedManagedDiskDetails()

Creates an instance of A2AProtectedManagedDiskDetails class.

Method Details

allowedDiskLevelOperation

public List<String> allowedDiskLevelOperation()

Get the allowedDiskLevelOperation property: The disk level operations list.

Returns:

the allowedDiskLevelOperation value.

dataPendingAtSourceAgentInMB

public Double dataPendingAtSourceAgentInMB()

Get the dataPendingAtSourceAgentInMB property: The data pending at source virtual machine in MB.

Returns:

the dataPendingAtSourceAgentInMB value.

dataPendingInStagingStorageAccountInMB

public Double dataPendingInStagingStorageAccountInMB()

Get the dataPendingInStagingStorageAccountInMB property: The data pending for replication in MB at staging account.

Returns:

the dataPendingInStagingStorageAccountInMB value.

dekKeyVaultArmId

public String dekKeyVaultArmId()

Get the dekKeyVaultArmId property: The KeyVault resource id for secret (BEK).

Returns:

the dekKeyVaultArmId value.

diskCapacityInBytes

public Long diskCapacityInBytes()

Get the diskCapacityInBytes property: The disk capacity in bytes.

Returns:

the diskCapacityInBytes value.

diskId

public String diskId()

Get the diskId property: The managed disk Arm id.

Returns:

the diskId value.

diskName

public String diskName()

Get the diskName property: The disk name.

Returns:

the diskName value.

diskState

public String diskState()

Get the diskState property: The disk state.

Returns:

the diskState value.

diskType

public String diskType()

Get the diskType property: The type of disk.

Returns:

the diskType value.

failoverDiskName

public String failoverDiskName()

Get the failoverDiskName property: The failover name for the managed disk.

Returns:

the failoverDiskName value.

fromJson

public static A2AProtectedManagedDiskDetails fromJson(JsonReader jsonReader)

Reads an instance of A2AProtectedManagedDiskDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of A2AProtectedManagedDiskDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the A2AProtectedManagedDiskDetails.

isDiskEncrypted

public Boolean isDiskEncrypted()

Get the isDiskEncrypted property: A value indicating whether vm has encrypted os disk or not.

Returns:

the isDiskEncrypted value.

isDiskKeyEncrypted

public Boolean isDiskKeyEncrypted()

Get the isDiskKeyEncrypted property: A value indicating whether disk key got encrypted or not.

Returns:

the isDiskKeyEncrypted value.

kekKeyVaultArmId

public String kekKeyVaultArmId()

Get the kekKeyVaultArmId property: The KeyVault resource id for key (KEK).

Returns:

the kekKeyVaultArmId value.

keyIdentifier

public String keyIdentifier()

Get the keyIdentifier property: The key URL / identifier (KEK).

Returns:

the keyIdentifier value.

monitoringJobType

public String monitoringJobType()

Get the monitoringJobType property: The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion property.

Returns:

the monitoringJobType value.

monitoringPercentageCompletion

public Integer monitoringPercentageCompletion()

Get the monitoringPercentageCompletion property: The percentage of the monitoring job. The type of the monitoring job is defined by MonitoringJobType property.

Returns:

the monitoringPercentageCompletion value.

primaryDiskEncryptionSetId

public String primaryDiskEncryptionSetId()

Get the primaryDiskEncryptionSetId property: The primary disk encryption set Id.

Returns:

the primaryDiskEncryptionSetId value.

primaryStagingAzureStorageAccountId

public String primaryStagingAzureStorageAccountId()

Get the primaryStagingAzureStorageAccountId property: The primary staging storage account.

Returns:

the primaryStagingAzureStorageAccountId value.

recoveryDiskEncryptionSetId

public String recoveryDiskEncryptionSetId()

Get the recoveryDiskEncryptionSetId property: The recovery disk encryption set Id.

Returns:

the recoveryDiskEncryptionSetId value.

recoveryOrignalTargetDiskId

public String recoveryOrignalTargetDiskId()

Get the recoveryOrignalTargetDiskId property: Recovery original target disk Arm Id.

Returns:

the recoveryOrignalTargetDiskId value.

recoveryReplicaDiskAccountType

public String recoveryReplicaDiskAccountType()

Get the recoveryReplicaDiskAccountType property: The replica disk type. Its an optional value and will be same as source disk type if not user provided.

Returns:

the recoveryReplicaDiskAccountType value.

recoveryReplicaDiskId

public String recoveryReplicaDiskId()

Get the recoveryReplicaDiskId property: Recovery replica disk Arm Id.

Returns:

the recoveryReplicaDiskId value.

recoveryResourceGroupId

public String recoveryResourceGroupId()

Get the recoveryResourceGroupId property: The recovery disk resource group Arm Id.

Returns:

the recoveryResourceGroupId value.

recoveryTargetDiskAccountType

public String recoveryTargetDiskAccountType()

Get the recoveryTargetDiskAccountType property: The target disk type after failover. Its an optional value and will be same as source disk type if not user provided.

Returns:

the recoveryTargetDiskAccountType value.

recoveryTargetDiskId

public String recoveryTargetDiskId()

Get the recoveryTargetDiskId property: Recovery target disk Arm Id.

Returns:

the recoveryTargetDiskId value.

resyncRequired

public Boolean resyncRequired()

Get the resyncRequired property: A value indicating whether resync is required for this disk.

Returns:

the resyncRequired value.

secretIdentifier

public String secretIdentifier()

Get the secretIdentifier property: The secret URL / identifier (BEK).

Returns:

the secretIdentifier value.

tfoDiskName

public String tfoDiskName()

Get the tfoDiskName property: The test failover name for the managed disk.

Returns:

the tfoDiskName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowedDiskLevelOperation

public A2AProtectedManagedDiskDetails withAllowedDiskLevelOperation(List<String> allowedDiskLevelOperation)

Set the allowedDiskLevelOperation property: The disk level operations list.

Parameters:

allowedDiskLevelOperation - the allowedDiskLevelOperation value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withDataPendingAtSourceAgentInMB

public A2AProtectedManagedDiskDetails withDataPendingAtSourceAgentInMB(Double dataPendingAtSourceAgentInMB)

Set the dataPendingAtSourceAgentInMB property: The data pending at source virtual machine in MB.

Parameters:

dataPendingAtSourceAgentInMB - the dataPendingAtSourceAgentInMB value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withDataPendingInStagingStorageAccountInMB

public A2AProtectedManagedDiskDetails withDataPendingInStagingStorageAccountInMB(Double dataPendingInStagingStorageAccountInMB)

Set the dataPendingInStagingStorageAccountInMB property: The data pending for replication in MB at staging account.

Parameters:

dataPendingInStagingStorageAccountInMB - the dataPendingInStagingStorageAccountInMB value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withDekKeyVaultArmId

public A2AProtectedManagedDiskDetails withDekKeyVaultArmId(String dekKeyVaultArmId)

Set the dekKeyVaultArmId property: The KeyVault resource id for secret (BEK).

Parameters:

dekKeyVaultArmId - the dekKeyVaultArmId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withDiskCapacityInBytes

public A2AProtectedManagedDiskDetails withDiskCapacityInBytes(Long diskCapacityInBytes)

Set the diskCapacityInBytes property: The disk capacity in bytes.

Parameters:

diskCapacityInBytes - the diskCapacityInBytes value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withDiskId

public A2AProtectedManagedDiskDetails withDiskId(String diskId)

Set the diskId property: The managed disk Arm id.

Parameters:

diskId - the diskId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withDiskName

public A2AProtectedManagedDiskDetails withDiskName(String diskName)

Set the diskName property: The disk name.

Parameters:

diskName - the diskName value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withDiskState

public A2AProtectedManagedDiskDetails withDiskState(String diskState)

Set the diskState property: The disk state.

Parameters:

diskState - the diskState value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withDiskType

public A2AProtectedManagedDiskDetails withDiskType(String diskType)

Set the diskType property: The type of disk.

Parameters:

diskType - the diskType value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withFailoverDiskName

public A2AProtectedManagedDiskDetails withFailoverDiskName(String failoverDiskName)

Set the failoverDiskName property: The failover name for the managed disk.

Parameters:

failoverDiskName - the failoverDiskName value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withIsDiskEncrypted

public A2AProtectedManagedDiskDetails withIsDiskEncrypted(Boolean isDiskEncrypted)

Set the isDiskEncrypted property: A value indicating whether vm has encrypted os disk or not.

Parameters:

isDiskEncrypted - the isDiskEncrypted value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withIsDiskKeyEncrypted

public A2AProtectedManagedDiskDetails withIsDiskKeyEncrypted(Boolean isDiskKeyEncrypted)

Set the isDiskKeyEncrypted property: A value indicating whether disk key got encrypted or not.

Parameters:

isDiskKeyEncrypted - the isDiskKeyEncrypted value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withKekKeyVaultArmId

public A2AProtectedManagedDiskDetails withKekKeyVaultArmId(String kekKeyVaultArmId)

Set the kekKeyVaultArmId property: The KeyVault resource id for key (KEK).

Parameters:

kekKeyVaultArmId - the kekKeyVaultArmId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withKeyIdentifier

public A2AProtectedManagedDiskDetails withKeyIdentifier(String keyIdentifier)

Set the keyIdentifier property: The key URL / identifier (KEK).

Parameters:

keyIdentifier - the keyIdentifier value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withMonitoringJobType

public A2AProtectedManagedDiskDetails withMonitoringJobType(String monitoringJobType)

Set the monitoringJobType property: The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion property.

Parameters:

monitoringJobType - the monitoringJobType value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withMonitoringPercentageCompletion

public A2AProtectedManagedDiskDetails withMonitoringPercentageCompletion(Integer monitoringPercentageCompletion)

Set the monitoringPercentageCompletion property: The percentage of the monitoring job. The type of the monitoring job is defined by MonitoringJobType property.

Parameters:

monitoringPercentageCompletion - the monitoringPercentageCompletion value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withPrimaryDiskEncryptionSetId

public A2AProtectedManagedDiskDetails withPrimaryDiskEncryptionSetId(String primaryDiskEncryptionSetId)

Set the primaryDiskEncryptionSetId property: The primary disk encryption set Id.

Parameters:

primaryDiskEncryptionSetId - the primaryDiskEncryptionSetId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withPrimaryStagingAzureStorageAccountId

public A2AProtectedManagedDiskDetails withPrimaryStagingAzureStorageAccountId(String primaryStagingAzureStorageAccountId)

Set the primaryStagingAzureStorageAccountId property: The primary staging storage account.

Parameters:

primaryStagingAzureStorageAccountId - the primaryStagingAzureStorageAccountId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withRecoveryDiskEncryptionSetId

public A2AProtectedManagedDiskDetails withRecoveryDiskEncryptionSetId(String recoveryDiskEncryptionSetId)

Set the recoveryDiskEncryptionSetId property: The recovery disk encryption set Id.

Parameters:

recoveryDiskEncryptionSetId - the recoveryDiskEncryptionSetId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withRecoveryOrignalTargetDiskId

public A2AProtectedManagedDiskDetails withRecoveryOrignalTargetDiskId(String recoveryOrignalTargetDiskId)

Set the recoveryOrignalTargetDiskId property: Recovery original target disk Arm Id.

Parameters:

recoveryOrignalTargetDiskId - the recoveryOrignalTargetDiskId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withRecoveryReplicaDiskAccountType

public A2AProtectedManagedDiskDetails withRecoveryReplicaDiskAccountType(String recoveryReplicaDiskAccountType)

Set the recoveryReplicaDiskAccountType property: The replica disk type. Its an optional value and will be same as source disk type if not user provided.

Parameters:

recoveryReplicaDiskAccountType - the recoveryReplicaDiskAccountType value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withRecoveryReplicaDiskId

public A2AProtectedManagedDiskDetails withRecoveryReplicaDiskId(String recoveryReplicaDiskId)

Set the recoveryReplicaDiskId property: Recovery replica disk Arm Id.

Parameters:

recoveryReplicaDiskId - the recoveryReplicaDiskId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withRecoveryResourceGroupId

public A2AProtectedManagedDiskDetails withRecoveryResourceGroupId(String recoveryResourceGroupId)

Set the recoveryResourceGroupId property: The recovery disk resource group Arm Id.

Parameters:

recoveryResourceGroupId - the recoveryResourceGroupId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withRecoveryTargetDiskAccountType

public A2AProtectedManagedDiskDetails withRecoveryTargetDiskAccountType(String recoveryTargetDiskAccountType)

Set the recoveryTargetDiskAccountType property: The target disk type after failover. Its an optional value and will be same as source disk type if not user provided.

Parameters:

recoveryTargetDiskAccountType - the recoveryTargetDiskAccountType value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withRecoveryTargetDiskId

public A2AProtectedManagedDiskDetails withRecoveryTargetDiskId(String recoveryTargetDiskId)

Set the recoveryTargetDiskId property: Recovery target disk Arm Id.

Parameters:

recoveryTargetDiskId - the recoveryTargetDiskId value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withResyncRequired

public A2AProtectedManagedDiskDetails withResyncRequired(Boolean resyncRequired)

Set the resyncRequired property: A value indicating whether resync is required for this disk.

Parameters:

resyncRequired - the resyncRequired value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withSecretIdentifier

public A2AProtectedManagedDiskDetails withSecretIdentifier(String secretIdentifier)

Set the secretIdentifier property: The secret URL / identifier (BEK).

Parameters:

secretIdentifier - the secretIdentifier value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

withTfoDiskName

public A2AProtectedManagedDiskDetails withTfoDiskName(String tfoDiskName)

Set the tfoDiskName property: The test failover name for the managed disk.

Parameters:

tfoDiskName - the tfoDiskName value to set.

Returns:

the A2AProtectedManagedDiskDetails object itself.

Applies to