EventResponseMessage Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.EventResponseMessage

Implements

public final class EventResponseMessage
implements JsonSerializable<EventResponseMessage>

The event response message received from the service URI.

Constructor Summary

Constructor Description
EventResponseMessage()

Creates an instance of EventResponseMessage class.

Method Summary

Modifier and Type Method and Description
String content()

Get the content property: The content of the event response message.

static EventResponseMessage fromJson(JsonReader jsonReader)

Reads an instance of EventResponseMessage from the JsonReader.

Map<String,String> headers()

Get the headers property: The headers of the event response message.

String reasonPhrase()

Get the reasonPhrase property: The reason phrase of the event response message.

String statusCode()

Get the statusCode property: The status code of the event response message.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: The HTTP message version.

EventResponseMessage withContent(String content)

Set the content property: The content of the event response message.

EventResponseMessage withHeaders(Map<String,String> headers)

Set the headers property: The headers of the event response message.

EventResponseMessage withReasonPhrase(String reasonPhrase)

Set the reasonPhrase property: The reason phrase of the event response message.

EventResponseMessage withStatusCode(String statusCode)

Set the statusCode property: The status code of the event response message.

EventResponseMessage withVersion(String version)

Set the version property: The HTTP message version.

Methods inherited from java.lang.Object

Constructor Details

EventResponseMessage

public EventResponseMessage()

Creates an instance of EventResponseMessage class.

Method Details

content

public String content()

Get the content property: The content of the event response message.

Returns:

the content value.

fromJson

public static EventResponseMessage fromJson(JsonReader jsonReader)

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.

headers

public Map headers()

Get the headers property: The headers of the event response message.

Returns:

the headers value.

reasonPhrase

public String reasonPhrase()

Get the reasonPhrase property: The reason phrase of the event response message.

Returns:

the reasonPhrase value.

statusCode

public String statusCode()

Get the statusCode property: The status code of the event response message.

Returns:

the statusCode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: The HTTP message version.

Returns:

the version value.

withContent

public EventResponseMessage withContent(String content)

Set the content property: The content of the event response message.

Parameters:

content - the content value to set.

Returns:

the EventResponseMessage object itself.

withHeaders

public EventResponseMessage withHeaders(Map headers)

Set the headers property: The headers of the event response message.

Parameters:

headers - the headers value to set.

Returns:

the EventResponseMessage object itself.

withReasonPhrase

public EventResponseMessage withReasonPhrase(String reasonPhrase)

Set the reasonPhrase property: The reason phrase of the event response message.

Parameters:

reasonPhrase - the reasonPhrase value to set.

Returns:

the EventResponseMessage object itself.

withStatusCode

public EventResponseMessage withStatusCode(String statusCode)

Set the statusCode property: The status code of the event response message.

Parameters:

statusCode - the statusCode value to set.

Returns:

the EventResponseMessage object itself.

withVersion

public EventResponseMessage withVersion(String version)

Set the version property: The HTTP message version.

Parameters:

version - the version value to set.

Returns:

the EventResponseMessage object itself.

Applies to