გაზიარება არხიდან:


ApiEntityReference Class

  • java.lang.Object
    • com.azure.resourcemanager.hardwaresecuritymodules.models.ApiEntityReference

Implements

public final class ApiEntityReference
implements JsonSerializable<ApiEntityReference>

The API entity reference.

Constructor Summary

Constructor Description
ApiEntityReference()

Creates an instance of ApiEntityReference class.

Method Summary

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

Reads an instance of ApiEntityReference from the JsonReader.

String resourceId()

Get the resourceId property: The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApiEntityReference withResourceId(String resourceId)

Set the resourceId property: The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...

Methods inherited from java.lang.Object

Constructor Details

ApiEntityReference

public ApiEntityReference()

Creates an instance of ApiEntityReference class.

Method Details

fromJson

public static ApiEntityReference fromJson(JsonReader jsonReader)

Reads an instance of ApiEntityReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceId

public String resourceId()

Get the resourceId property: The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResourceId

public ApiEntityReference withResourceId(String resourceId)

Set the resourceId property: The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...

Parameters:

resourceId - the resourceId value to set.

Returns:

the ApiEntityReference object itself.

Applies to