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