Datasource Class
- java.
lang. Object - com.
azure. resourcemanager. dataprotection. models. Datasource
- com.
Implements
public final class Datasource
implements JsonSerializable<Datasource>
Datasource to be backed up.
Constructor Summary
| Constructor | Description |
|---|---|
| Datasource() |
Creates an instance of Datasource class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
datasourceType()
Get the datasource |
| static Datasource |
fromJson(JsonReader jsonReader)
Reads an instance of Datasource from the Json |
| String |
objectType()
Get the object |
| String |
resourceId()
Get the resource |
| String |
resourceLocation()
Get the resource |
| String |
resourceName()
Get the resource |
|
Base |
resourceProperties()
Get the resource |
| String |
resourceType()
Get the resource |
| String |
resourceUri()
Get the resource |
|
Json |
toJson(JsonWriter jsonWriter) |
| Datasource |
withDatasourceType(String datasourceType)
Set the datasource |
| Datasource |
withObjectType(String objectType)
Set the object |
| Datasource |
withResourceId(String resourceId)
Set the resource |
| Datasource |
withResourceLocation(String resourceLocation)
Set the resource |
| Datasource |
withResourceName(String resourceName)
Set the resource |
| Datasource |
withResourceProperties(BaseResourceProperties resourceProperties)
Set the resource |
| Datasource |
withResourceType(String resourceType)
Set the resource |
| Datasource |
withResourceUri(String resourceUri)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
Datasource
public Datasource()
Creates an instance of Datasource class.
Method Details
datasourceType
public String datasourceType()
Get the datasourceType property: DatasourceType of the resource.
Returns:
fromJson
public static Datasource fromJson(JsonReader jsonReader)
Reads an instance of Datasource from the JsonReader.
Parameters:
Returns:
Throws:
objectType
public String objectType()
Get the objectType property: Type of Datasource object, used to initialize the right inherited type.
Returns:
resourceId
public String 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:
resourceLocation
public String resourceLocation()
Get the resourceLocation property: Location of datasource.
Returns:
resourceName
public String resourceName()
Get the resourceName property: Unique identifier of the resource in the context of parent.
Returns:
resourceProperties
public BaseResourceProperties resourceProperties()
Get the resourceProperties property: Properties specific to data source.
Returns:
resourceType
public String resourceType()
Get the resourceType property: Resource Type of Datasource.
Returns:
resourceUri
public String resourceUri()
Get the resourceUri property: Uri of the resource.
Returns:
toJson
withDatasourceType
public Datasource withDatasourceType(String datasourceType)
Set the datasourceType property: DatasourceType of the resource.
Parameters:
Returns:
withObjectType
public Datasource withObjectType(String objectType)
Set the objectType property: Type of Datasource object, used to initialize the right inherited type.
Parameters:
Returns:
withResourceId
public Datasource withResourceId(String resourceId)
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:
Returns:
withResourceLocation
public Datasource withResourceLocation(String resourceLocation)
Set the resourceLocation property: Location of datasource.
Parameters:
Returns:
withResourceName
public Datasource withResourceName(String resourceName)
Set the resourceName property: Unique identifier of the resource in the context of parent.
Parameters:
Returns:
withResourceProperties
public Datasource withResourceProperties(BaseResourceProperties resourceProperties)
Set the resourceProperties property: Properties specific to data source.
Parameters:
Returns:
withResourceType
public Datasource withResourceType(String resourceType)
Set the resourceType property: Resource Type of Datasource.
Parameters:
Returns:
withResourceUri
public Datasource withResourceUri(String resourceUri)
Set the resourceUri property: Uri of the resource.
Parameters:
Returns: