Class ApiManagementGatewayCreatedEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayCreatedEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiManagementGatewayCreatedEventData>

public final class ApiManagementGatewayCreatedEventData extends Object implements com.azure.json.JsonSerializable<ApiManagementGatewayCreatedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayCreated event.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ApiManagementGatewayCreatedEventData from the JsonReader.
    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.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • 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/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/gateways/<ResourceName>`.
      Returns:
      the resourceUri value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ApiManagementGatewayCreatedEventData>
      Throws:
      IOException
    • fromJson

      public static ApiManagementGatewayCreatedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ApiManagementGatewayCreatedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ApiManagementGatewayCreatedEventData 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 ApiManagementGatewayCreatedEventData.