DppResource Class

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

Implements

public class DppResource
implements JsonSerializable<DppResource>

Resource class.

Constructor Summary

Modifier Constructor Description
protected DppResource()

Creates an instance of DppResource class.

Method Summary

Modifier and Type Method and Description
static DppResource fromJson(JsonReader jsonReader)

Reads an instance of DppResource from the JsonReader.

String id()

Get the id property: Resource Id represents the complete path to the resource.

String name()

Get the name property: Resource name associated with the resource.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

Methods inherited from java.lang.Object

Constructor Details

DppResource

protected DppResource()

Creates an instance of DppResource class.

Method Details

fromJson

public static DppResource fromJson(JsonReader jsonReader)

Reads an instance of DppResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the DppResource.

id

public String id()

Get the id property: Resource Id represents the complete path to the resource.

Returns:

the id value.

name

public String name()

Get the name property: Resource name associated with the resource.

Returns:

the name value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

Returns:

the type value.

Applies to