ApiManagementApiCreatedEventData Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.ApiManagementApiCreatedEventData

Implements

public final class ApiManagementApiCreatedEventData
implements JsonSerializable<ApiManagementApiCreatedEventData>

Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APICreated event.

Constructor Summary

Constructor Description
ApiManagementApiCreatedEventData()

Creates an instance of ApiManagementApiCreatedEventData class.

Method Summary

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

Reads an instance of ApiManagementApiCreatedEventData from the JsonReader.

String getResourceUri()

Get the resourceUri property: The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type.

ApiManagementApiCreatedEventData setResourceUri(String resourceUri)

Set the resourceUri property: The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ApiManagementApiCreatedEventData

public ApiManagementApiCreatedEventData()

Creates an instance of ApiManagementApiCreatedEventData class.

Method Details

fromJson

public static ApiManagementApiCreatedEventData fromJson(JsonReader jsonReader)

Reads an instance of ApiManagementApiCreatedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getResourceUri

public String getResourceUri()

Get the resourceUri property: The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///`.

Returns:

the resourceUri value.

setResourceUri

public ApiManagementApiCreatedEventData setResourceUri(String resourceUri)

Set the resourceUri property: The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///`.

Parameters:

resourceUri - the resourceUri value to set.

Returns:

the ApiManagementApiCreatedEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest