Class SourceLifeCycle
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.SourceLifeCycle
-
public final class SourceLifeCycle extends Object
SourceLifeCycle Source LifeCycle.
-
-
Constructor Summary
Constructors Constructor Description SourceLifeCycle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteOption
deleteAfter()
Get the deleteAfter property: DeleteOption Delete Option.DataStoreInfoBase
sourceDataStore()
Get the sourceDataStore property: DataStoreInfoBase DataStoreInfo base.List<TargetCopySetting>
targetDataStoreCopySettings()
Get the targetDataStoreCopySettings property: The targetDataStoreCopySettings property.void
validate()
Validates the instance.SourceLifeCycle
withDeleteAfter(DeleteOption deleteAfter)
Set the deleteAfter property: DeleteOption Delete Option.SourceLifeCycle
withSourceDataStore(DataStoreInfoBase sourceDataStore)
Set the sourceDataStore property: DataStoreInfoBase DataStoreInfo base.SourceLifeCycle
withTargetDataStoreCopySettings(List<TargetCopySetting> targetDataStoreCopySettings)
Set the targetDataStoreCopySettings property: The targetDataStoreCopySettings property.
-
-
-
Method Detail
-
deleteAfter
public DeleteOption deleteAfter()
Get the deleteAfter property: DeleteOption Delete Option.- Returns:
- the deleteAfter value.
-
withDeleteAfter
public SourceLifeCycle withDeleteAfter(DeleteOption deleteAfter)
Set the deleteAfter property: DeleteOption Delete Option.- Parameters:
deleteAfter
- the deleteAfter value to set.- Returns:
- the SourceLifeCycle object itself.
-
sourceDataStore
public DataStoreInfoBase sourceDataStore()
Get the sourceDataStore property: DataStoreInfoBase DataStoreInfo base.- Returns:
- the sourceDataStore value.
-
withSourceDataStore
public SourceLifeCycle withSourceDataStore(DataStoreInfoBase sourceDataStore)
Set the sourceDataStore property: DataStoreInfoBase DataStoreInfo base.- Parameters:
sourceDataStore
- the sourceDataStore value to set.- Returns:
- the SourceLifeCycle object itself.
-
targetDataStoreCopySettings
public List<TargetCopySetting> 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.
-
-