DatasourceSet Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.DatasourceSet

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 DatasourceSet class.

Method Summary

Modifier and Type Method and Description
String datasourceType()

Get the datasourceType property: DatasourceType of the resource.

static DatasourceSet fromJson(JsonReader jsonReader)

Reads an instance of DatasourceSet from the JsonReader.

String objectType()

Get the objectType property: Type of Datasource object, used to initialize the right inherited type.

String resourceId()

Get the resourceId property: Full ARM ID of the resource.

String resourceLocation()

Get the resourceLocation property: Location of datasource.

String resourceName()

Get the resourceName property: Unique identifier of the resource in the context of parent.

BaseResourceProperties resourceProperties()

Get the resourceProperties property: Properties specific to data source set.

String resourceType()

Get the resourceType property: Resource Type of Datasource.

String resourceUri()

Get the resourceUri property: Uri of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
DatasourceSet withDatasourceType(String datasourceType)

Set the datasourceType property: DatasourceType of the resource.

DatasourceSet withObjectType(String objectType)

Set the objectType property: Type of Datasource object, used to initialize the right inherited type.

DatasourceSet withResourceId(String resourceId)

Set the resourceId property: Full ARM ID of the resource.

DatasourceSet withResourceLocation(String resourceLocation)

Set the resourceLocation property: Location of datasource.

DatasourceSet withResourceName(String resourceName)

Set the resourceName property: Unique identifier of the resource in the context of parent.

DatasourceSet withResourceProperties(BaseResourceProperties resourceProperties)

Set the resourceProperties property: Properties specific to data source set.

DatasourceSet withResourceType(String resourceType)

Set the resourceType property: Resource Type of Datasource.

DatasourceSet withResourceUri(String resourceUri)

Set the resourceUri property: Uri of 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:

the datasourceType value.

fromJson

public static DatasourceSet fromJson(JsonReader jsonReader)

Reads an instance of DatasourceSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatasourceSet if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

objectType

public String objectType()

Get the objectType property: Type of Datasource object, used to initialize the right inherited type.

Returns:

the objectType value.

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:

the resourceId value.

resourceLocation

public String resourceLocation()

Get the resourceLocation property: Location of datasource.

Returns:

the resourceLocation value.

resourceName

public String resourceName()

Get the resourceName property: Unique identifier of the resource in the context of parent.

Returns:

the resourceName value.

resourceProperties

public BaseResourceProperties resourceProperties()

Get the resourceProperties property: Properties specific to data source set.

Returns:

the resourceProperties value.

resourceType

public String resourceType()

Get the resourceType property: Resource Type of Datasource.

Returns:

the resourceType value.

resourceUri

public String resourceUri()

Get the resourceUri property: Uri of the resource.

Returns:

the resourceUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withDatasourceType

public DatasourceSet withDatasourceType(String datasourceType)

Set the datasourceType property: DatasourceType of the resource.

Parameters:

datasourceType - the datasourceType value to set.

Returns:

the DatasourceSet object itself.

withObjectType

public DatasourceSet withObjectType(String objectType)

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.

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:

resourceId - the resourceId value to set.

Returns:

the DatasourceSet object itself.

withResourceLocation

public DatasourceSet withResourceLocation(String resourceLocation)

Set the resourceLocation property: Location of datasource.

Parameters:

resourceLocation - the resourceLocation value to set.

Returns:

the DatasourceSet object itself.

withResourceName

public DatasourceSet withResourceName(String resourceName)

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.

withResourceProperties

public DatasourceSet withResourceProperties(BaseResourceProperties resourceProperties)

Set the resourceProperties property: Properties specific to data source set.

Parameters:

resourceProperties - the resourceProperties value to set.

Returns:

the DatasourceSet object itself.

withResourceType

public DatasourceSet withResourceType(String resourceType)

Set the resourceType property: Resource Type of Datasource.

Parameters:

resourceType - the resourceType value to set.

Returns:

the DatasourceSet object itself.

withResourceUri

public DatasourceSet withResourceUri(String resourceUri)

Set the resourceUri property: Uri of the resource.

Parameters:

resourceUri - the resourceUri value to set.

Returns:

the DatasourceSet object itself.

Applies to