Class SourceLifeCycle
java.lang.Object
com.azure.resourcemanager.dataprotection.models.SourceLifeCycle
SourceLifeCycle
Source LifeCycle.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the deleteAfter property: DeleteOptionGet the sourceDataStore property: DataStoreInfoBaseGet the targetDataStoreCopySettings property: The targetDataStoreCopySettings property.void
validate()
Validates the instance.withDeleteAfter
(DeleteOption deleteAfter) Set the deleteAfter property: DeleteOptionwithSourceDataStore
(DataStoreInfoBase sourceDataStore) Set the sourceDataStore property: DataStoreInfoBasewithTargetDataStoreCopySettings
(List<TargetCopySetting> targetDataStoreCopySettings) Set the targetDataStoreCopySettings property: The targetDataStoreCopySettings property.
-
Constructor Details
-
SourceLifeCycle
public SourceLifeCycle()Creates an instance of SourceLifeCycle class.
-
-
Method Details
-
deleteAfter
Get the deleteAfter property: DeleteOptionDelete Option.
- Returns:
- the deleteAfter value.
-
withDeleteAfter
Set the deleteAfter property: DeleteOptionDelete Option.
- Parameters:
deleteAfter
- the deleteAfter value to set.- Returns:
- the SourceLifeCycle object itself.
-
sourceDataStore
Get the sourceDataStore property: DataStoreInfoBaseDataStoreInfo base.
- Returns:
- the sourceDataStore value.
-
withSourceDataStore
Set the sourceDataStore property: DataStoreInfoBaseDataStoreInfo base.
- Parameters:
sourceDataStore
- the sourceDataStore value to set.- Returns:
- the SourceLifeCycle object itself.
-
targetDataStoreCopySettings
Get the targetDataStoreCopySettings property: The targetDataStoreCopySettings property.- Returns:
- the targetDataStoreCopySettings value.
-
withTargetDataStoreCopySettings
public SourceLifeCycle withTargetDataStoreCopySettings(List<TargetCopySetting> targetDataStoreCopySettings) Set the targetDataStoreCopySettings property: The targetDataStoreCopySettings property.- Parameters:
targetDataStoreCopySettings
- the targetDataStoreCopySettings value to set.- Returns:
- the SourceLifeCycle object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-