Class DatasourceSet
java.lang.Object
com.azure.resourcemanager.dataprotection.models.DatasourceSet
DatasourceSet
DatasourceSet details of datasource to be backed up.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the datasourceType property: DatasourceType of the resource.Get the objectType property: Type of Datasource object, used to initialize the right inherited type.Get the resourceId property: Full ARM ID of the resource.Get the resourceLocation property: Location of datasource.Get the resourceName property: Unique identifier of the resource in the context of parent.Get the resourceType property: Resource Type of Datasource.Get the resourceUri property: Uri of the resource.void
validate()
Validates the instance.withDatasourceType
(String datasourceType) Set the datasourceType property: DatasourceType of the resource.withObjectType
(String objectType) Set the objectType property: Type of Datasource object, used to initialize the right inherited type.withResourceId
(String resourceId) Set the resourceId property: Full ARM ID of the resource.withResourceLocation
(String resourceLocation) Set the resourceLocation property: Location of datasource.withResourceName
(String resourceName) Set the resourceName property: Unique identifier of the resource in the context of parent.withResourceType
(String resourceType) Set the resourceType property: Resource Type of Datasource.withResourceUri
(String resourceUri) Set the resourceUri property: Uri of the resource.
-
Constructor Details
-
DatasourceSet
public DatasourceSet()Creates an instance of DatasourceSet class.
-
-
Method Details
-
datasourceType
Get the datasourceType property: DatasourceType of the resource.- Returns:
- the datasourceType value.
-
withDatasourceType
Set the datasourceType property: DatasourceType of the resource.- Parameters:
datasourceType
- the datasourceType value to set.- Returns:
- the DatasourceSet object itself.
-
objectType
Get the objectType property: Type of Datasource object, used to initialize the right inherited type.- Returns:
- the objectType value.
-
withObjectType
Set the objectType property: Type of Datasource object, used to initialize the right inherited type.- Parameters:
objectType
- the objectType value to set.- Returns:
- the DatasourceSet object itself.
-
resourceId
Get the resourceId property: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the DatasourceSet object itself.
-
resourceLocation
Get the resourceLocation property: Location of datasource.- Returns:
- the resourceLocation value.
-
withResourceLocation
Set the resourceLocation property: Location of datasource.- Parameters:
resourceLocation
- the resourceLocation value to set.- Returns:
- the DatasourceSet object itself.
-
resourceName
Get the resourceName property: Unique identifier of the resource in the context of parent.- Returns:
- the resourceName value.
-
withResourceName
Set the resourceName property: Unique identifier of the resource in the context of parent.- Parameters:
resourceName
- the resourceName value to set.- Returns:
- the DatasourceSet object itself.
-
resourceType
Get the resourceType property: Resource Type of Datasource.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: Resource Type of Datasource.- Parameters:
resourceType
- the resourceType value to set.- Returns:
- the DatasourceSet object itself.
-
resourceUri
Get the resourceUri property: Uri of the resource.- Returns:
- the resourceUri value.
-
withResourceUri
Set the resourceUri property: Uri of the resource.- Parameters:
resourceUri
- the resourceUri value to set.- Returns:
- the DatasourceSet object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-