ResourceItem Class

  • java.lang.Object
    • com.azure.resourcemanager.appcomplianceautomation.models.ResourceItem

Implements

public final class ResourceItem
implements JsonSerializable<ResourceItem>

Resource Id.

Method Summary

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

Reads an instance of ResourceItem from the JsonReader.

String resourceGroup()

Get the resourceGroup property: The resource group name of this resource.

String resourceId()

Get the resourceId property: The resource Id - e.g.

String resourceType()

Get the resourceType property: The resource type of this resource.

String subscriptionId()

Get the subscriptionId property: The subscription Id of this resource.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static ResourceItem fromJson(JsonReader jsonReader)

Reads an instance of ResourceItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceGroup

public String resourceGroup()

Get the resourceGroup property: The resource group name of this resource.

Returns:

the resourceGroup value.

resourceId

public String resourceId()

Get the resourceId property: The resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1".

Returns:

the resourceId value.

resourceType

public String resourceType()

Get the resourceType property: The resource type of this resource. e.g. "Microsoft.SignalRService/SignalR".

Returns:

the resourceType value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: The subscription Id of this resource.

Returns:

the subscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to