com.azure.messaging.eventgrid.systemevents.ApiManagementGatewayCertificateAuthorityDeletedEventData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-messaging-eventgrid Show documentation
Show all versions of azure-messaging-eventgrid Show documentation
This package contains Microsoft Azure EventGrid SDK.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.messaging.eventgrid.systemevents;
import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
/**
* Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted
* event.
*/
@Fluent
public final class ApiManagementGatewayCertificateAuthorityDeletedEventData
implements JsonSerializable {
/*
* 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//
* gateways//certificateAuthorities/`
*/
private String resourceUri;
/**
* Creates an instance of ApiManagementGatewayCertificateAuthorityDeletedEventData class.
*/
public ApiManagementGatewayCertificateAuthorityDeletedEventData() {
}
/**
* 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/<GatewayName>/certificateAuthorities/<ResourceName>`.
*
* @return the resourceUri value.
*/
public String getResourceUri() {
return this.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/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/gateways/<GatewayName>/certificateAuthorities/<ResourceName>`.
*
* @param resourceUri the resourceUri value to set.
* @return the ApiManagementGatewayCertificateAuthorityDeletedEventData object itself.
*/
public ApiManagementGatewayCertificateAuthorityDeletedEventData setResourceUri(String resourceUri) {
this.resourceUri = resourceUri;
return this;
}
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("resourceUri", this.resourceUri);
return jsonWriter.writeEndObject();
}
/**
* Reads an instance of ApiManagementGatewayCertificateAuthorityDeletedEventData from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of ApiManagementGatewayCertificateAuthorityDeletedEventData 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
* ApiManagementGatewayCertificateAuthorityDeletedEventData.
*/
public static ApiManagementGatewayCertificateAuthorityDeletedEventData fromJson(JsonReader jsonReader)
throws IOException {
return jsonReader.readObject(reader -> {
ApiManagementGatewayCertificateAuthorityDeletedEventData deserializedApiManagementGatewayCertificateAuthorityDeletedEventData
= new ApiManagementGatewayCertificateAuthorityDeletedEventData();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("resourceUri".equals(fieldName)) {
deserializedApiManagementGatewayCertificateAuthorityDeletedEventData.resourceUri
= reader.getString();
} else {
reader.skipChildren();
}
}
return deserializedApiManagementGatewayCertificateAuthorityDeletedEventData;
});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy