Share via


MicrosoftGraphResourceReference Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphResourceReference

Implements

public final class MicrosoftGraphResourceReference
implements JsonSerializable<MicrosoftGraphResourceReference>

Represents a resource reference.

Constructor Summary

Constructor Description
MicrosoftGraphResourceReference()

Creates an instance of MicrosoftGraphResourceReference class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: resourceReference.

static MicrosoftGraphResourceReference fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphResourceReference from the JsonReader.

String id()

Get the id property: The item's unique identifier.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: A string value that can be used to classify the item, such as 'microsoft.graph.driveItem'.

void validate()

Validates the instance.

String webUrl()

Get the webUrl property: A URL leading to the referenced item.

MicrosoftGraphResourceReference withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: resourceReference.

MicrosoftGraphResourceReference withId(String id)

Set the id property: The item's unique identifier.

MicrosoftGraphResourceReference withType(String type)

Set the type property: A string value that can be used to classify the item, such as 'microsoft.graph.driveItem'.

MicrosoftGraphResourceReference withWebUrl(String webUrl)

Set the webUrl property: A URL leading to the referenced item.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphResourceReference

public MicrosoftGraphResourceReference()

Creates an instance of MicrosoftGraphResourceReference class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: resourceReference.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphResourceReference fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphResourceReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The item's unique identifier.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: A string value that can be used to classify the item, such as 'microsoft.graph.driveItem'.

Returns:

the type value.

validate

public void validate()

Validates the instance.

webUrl

public String webUrl()

Get the webUrl property: A URL leading to the referenced item.

Returns:

the webUrl value.

withAdditionalProperties

public MicrosoftGraphResourceReference withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: resourceReference.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphResourceReference object itself.

withId

public MicrosoftGraphResourceReference withId(String id)

Set the id property: The item's unique identifier.

Parameters:

id - the id value to set.

Returns:

the MicrosoftGraphResourceReference object itself.

withType

public MicrosoftGraphResourceReference withType(String type)

Set the type property: A string value that can be used to classify the item, such as 'microsoft.graph.driveItem'.

Parameters:

type - the type value to set.

Returns:

the MicrosoftGraphResourceReference object itself.

withWebUrl

public MicrosoftGraphResourceReference withWebUrl(String webUrl)

Set the webUrl property: A URL leading to the referenced item.

Parameters:

webUrl - the webUrl value to set.

Returns:

the MicrosoftGraphResourceReference object itself.

Applies to