Class SqlDataDirectoryMapping
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.SqlDataDirectoryMapping
Encapsulates information regarding data directory.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SqlDataDirectoryMapping class. -
Method Summary
Modifier and TypeMethodDescriptionGet the mappingType property: Type of data directory mapping.Get the sourceLogicalName property: Restore source logical name path.Get the sourcePath property: Restore source path.Get the targetPath property: Target path.void
validate()
Validates the instance.withMappingType
(SqlDataDirectoryType mappingType) Set the mappingType property: Type of data directory mapping.withSourceLogicalName
(String sourceLogicalName) Set the sourceLogicalName property: Restore source logical name path.withSourcePath
(String sourcePath) Set the sourcePath property: Restore source path.withTargetPath
(String targetPath) Set the targetPath property: Target path.
-
Constructor Details
-
SqlDataDirectoryMapping
public SqlDataDirectoryMapping()Creates an instance of SqlDataDirectoryMapping class.
-
-
Method Details
-
mappingType
Get the mappingType property: Type of data directory mapping.- Returns:
- the mappingType value.
-
withMappingType
Set the mappingType property: Type of data directory mapping.- Parameters:
mappingType
- the mappingType value to set.- Returns:
- the SqlDataDirectoryMapping object itself.
-
sourceLogicalName
Get the sourceLogicalName property: Restore source logical name path.- Returns:
- the sourceLogicalName value.
-
withSourceLogicalName
Set the sourceLogicalName property: Restore source logical name path.- Parameters:
sourceLogicalName
- the sourceLogicalName value to set.- Returns:
- the SqlDataDirectoryMapping object itself.
-
sourcePath
Get the sourcePath property: Restore source path.- Returns:
- the sourcePath value.
-
withSourcePath
Set the sourcePath property: Restore source path.- Parameters:
sourcePath
- the sourcePath value to set.- Returns:
- the SqlDataDirectoryMapping object itself.
-
targetPath
Get the targetPath property: Target path.- Returns:
- the targetPath value.
-
withTargetPath
Set the targetPath property: Target path.- Parameters:
targetPath
- the targetPath value to set.- Returns:
- the SqlDataDirectoryMapping object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-