com.azure.messaging.eventgrid.systemevents.MediaLiveEventConnectionRejectedEventData 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.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
/**
* Encoder connection rejected event data. Schema of the data property of an EventGridEvent for a
* Microsoft.Media.LiveEventConnectionRejected event.
*/
@Immutable
public final class MediaLiveEventConnectionRejectedEventData
implements JsonSerializable {
/*
* Gets the ingest URL provided by the live event.
*/
private String ingestUrl;
/*
* Gets the stream Id.
*/
private String streamId;
/*
* Gets the remote IP.
*/
private String encoderIp;
/*
* Gets the remote port.
*/
private String encoderPort;
/*
* Gets the result code.
*/
private String resultCode;
/**
* Creates an instance of MediaLiveEventConnectionRejectedEventData class.
*/
public MediaLiveEventConnectionRejectedEventData() {
}
/**
* Get the ingestUrl property: Gets the ingest URL provided by the live event.
*
* @return the ingestUrl value.
*/
public String getIngestUrl() {
return this.ingestUrl;
}
/**
* Get the streamId property: Gets the stream Id.
*
* @return the streamId value.
*/
public String getStreamId() {
return this.streamId;
}
/**
* Get the encoderIp property: Gets the remote IP.
*
* @return the encoderIp value.
*/
public String getEncoderIp() {
return this.encoderIp;
}
/**
* Get the encoderPort property: Gets the remote port.
*
* @return the encoderPort value.
*/
public String getEncoderPort() {
return this.encoderPort;
}
/**
* Get the resultCode property: Gets the result code.
*
* @return the resultCode value.
*/
public String getResultCode() {
return this.resultCode;
}
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
return jsonWriter.writeEndObject();
}
/**
* Reads an instance of MediaLiveEventConnectionRejectedEventData from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of MediaLiveEventConnectionRejectedEventData 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 MediaLiveEventConnectionRejectedEventData.
*/
public static MediaLiveEventConnectionRejectedEventData fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
MediaLiveEventConnectionRejectedEventData deserializedMediaLiveEventConnectionRejectedEventData
= new MediaLiveEventConnectionRejectedEventData();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("ingestUrl".equals(fieldName)) {
deserializedMediaLiveEventConnectionRejectedEventData.ingestUrl = reader.getString();
} else if ("streamId".equals(fieldName)) {
deserializedMediaLiveEventConnectionRejectedEventData.streamId = reader.getString();
} else if ("encoderIp".equals(fieldName)) {
deserializedMediaLiveEventConnectionRejectedEventData.encoderIp = reader.getString();
} else if ("encoderPort".equals(fieldName)) {
deserializedMediaLiveEventConnectionRejectedEventData.encoderPort = reader.getString();
} else if ("resultCode".equals(fieldName)) {
deserializedMediaLiveEventConnectionRejectedEventData.resultCode = reader.getString();
} else {
reader.skipChildren();
}
}
return deserializedMediaLiveEventConnectionRejectedEventData;
});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy