DigitalTwinsResource Class

public class DigitalTwinsResource
extends Resource

The common properties of a DigitalTwinsInstance.

Constructor Summary

Constructor Description
DigitalTwinsResource()

Creates an instance of DigitalTwinsResource class.

Method Summary

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

Reads an instance of DigitalTwinsResource from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

DigitalTwinsIdentity identity()

Get the identity property: The managed identity for the DigitalTwinsInstance.

String name()

Get the name property: The name of the resource.

SystemData systemData()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DigitalTwinsResource withIdentity(DigitalTwinsIdentity identity)

Set the identity property: The managed identity for the DigitalTwinsInstance.

DigitalTwinsResource withLocation(String location)
DigitalTwinsResource withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DigitalTwinsResource

public DigitalTwinsResource()

Creates an instance of DigitalTwinsResource class.

Method Details

fromJson

public static DigitalTwinsResource fromJson(JsonReader jsonReader)

Reads an instance of DigitalTwinsResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DigitalTwinsResource 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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DigitalTwinsResource.id()

Returns:

the id value.

identity

public DigitalTwinsIdentity identity()

Get the identity property: The managed identity for the DigitalTwinsInstance.

Returns:

the identity value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DigitalTwinsResource.name()

Returns:

the name value.

systemData

public SystemData systemData()

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

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DigitalTwinsResource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DigitalTwinsResource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withIdentity

public DigitalTwinsResource withIdentity(DigitalTwinsIdentity identity)

Set the identity property: The managed identity for the DigitalTwinsInstance.

Parameters:

identity - the identity value to set.

Returns:

the DigitalTwinsResource object itself.

withLocation

public DigitalTwinsResource withLocation(String location)

Overrides:

DigitalTwinsResource.withLocation(String location)

Parameters:

location

withTags

public DigitalTwinsResource withTags(Map<String,String> tags)

Overrides:

DigitalTwinsResource.withTags(Map<String,String> tags)

Parameters:

tags

Applies to