Class EventResponseMessage
java.lang.Object
com.azure.resourcemanager.containerregistry.models.EventResponseMessage
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EventResponseMessage>
public final class EventResponseMessage
extends Object
implements com.azure.json.JsonSerializable<EventResponseMessage>
The event response message received from the service URI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Get the content property: The content of the event response message.static EventResponseMessagefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EventResponseMessage from the JsonReader.headers()Get the headers property: The headers of the event response message.Get the reasonPhrase property: The reason phrase of the event response message.Get the statusCode property: The status code of the event response message.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: The HTTP message version.withContent(String content) Set the content property: The content of the event response message.withHeaders(Map<String, String> headers) Set the headers property: The headers of the event response message.withReasonPhrase(String reasonPhrase) Set the reasonPhrase property: The reason phrase of the event response message.withStatusCode(String statusCode) Set the statusCode property: The status code of the event response message.withVersion(String version) Set the version property: The HTTP message version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EventResponseMessage
public EventResponseMessage()Creates an instance of EventResponseMessage class.
-
-
Method Details
-
content
Get the content property: The content of the event response message.- Returns:
- the content value.
-
withContent
Set the content property: The content of the event response message.- Parameters:
content- the content value to set.- Returns:
- the EventResponseMessage object itself.
-
headers
Get the headers property: The headers of the event response message.- Returns:
- the headers value.
-
withHeaders
Set the headers property: The headers of the event response message.- Parameters:
headers- the headers value to set.- Returns:
- the EventResponseMessage object itself.
-
reasonPhrase
Get the reasonPhrase property: The reason phrase of the event response message.- Returns:
- the reasonPhrase value.
-
withReasonPhrase
Set the reasonPhrase property: The reason phrase of the event response message.- Parameters:
reasonPhrase- the reasonPhrase value to set.- Returns:
- the EventResponseMessage object itself.
-
statusCode
Get the statusCode property: The status code of the event response message.- Returns:
- the statusCode value.
-
withStatusCode
Set the statusCode property: The status code of the event response message.- Parameters:
statusCode- the statusCode value to set.- Returns:
- the EventResponseMessage object itself.
-
version
Get the version property: The HTTP message version.- Returns:
- the version value.
-
withVersion
Set the version property: The HTTP message version.- Parameters:
version- the version value to set.- Returns:
- the EventResponseMessage object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EventResponseMessage>- Throws:
IOException
-
fromJson
public static EventResponseMessage fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EventResponseMessage from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EventResponseMessage 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 EventResponseMessage.
-