EventRequestMessage Class

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

Implements

public final class EventRequestMessage
implements JsonSerializable<EventRequestMessage>

The event request message sent to the service URI.

Constructor Summary

Constructor Description
EventRequestMessage()

Creates an instance of EventRequestMessage class.

Method Summary

Modifier and Type Method and Description
EventContent content()

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

static EventRequestMessage fromJson(JsonReader jsonReader)

Reads an instance of EventRequestMessage from the JsonReader.

Map<String,String> headers()

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

String method()

Get the method property: The HTTP method used to send the event request message.

String requestUri()

Get the requestUri property: The URI used to send the event request message.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: The HTTP message version.

EventRequestMessage withContent(EventContent content)

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

EventRequestMessage withHeaders(Map<String,String> headers)

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

EventRequestMessage withMethod(String method)

Set the method property: The HTTP method used to send the event request message.

EventRequestMessage withRequestUri(String requestUri)

Set the requestUri property: The URI used to send the event request message.

EventRequestMessage withVersion(String version)

Set the version property: The HTTP message version.

Methods inherited from java.lang.Object

Constructor Details

EventRequestMessage

public EventRequestMessage()

Creates an instance of EventRequestMessage class.

Method Details

content

public EventContent content()

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

Returns:

the content value.

fromJson

public static EventRequestMessage fromJson(JsonReader jsonReader)

Reads an instance of EventRequestMessage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EventRequestMessage 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 EventRequestMessage.

headers

public Map headers()

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

Returns:

the headers value.

method

public String method()

Get the method property: The HTTP method used to send the event request message.

Returns:

the method value.

requestUri

public String requestUri()

Get the requestUri property: The URI used to send the event request message.

Returns:

the requestUri 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 EventRequestMessage withContent(EventContent content)

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

Parameters:

content - the content value to set.

Returns:

the EventRequestMessage object itself.

withHeaders

public EventRequestMessage withHeaders(Map headers)

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

Parameters:

headers - the headers value to set.

Returns:

the EventRequestMessage object itself.

withMethod

public EventRequestMessage withMethod(String method)

Set the method property: The HTTP method used to send the event request message.

Parameters:

method - the method value to set.

Returns:

the EventRequestMessage object itself.

withRequestUri

public EventRequestMessage withRequestUri(String requestUri)

Set the requestUri property: The URI used to send the event request message.

Parameters:

requestUri - the requestUri value to set.

Returns:

the EventRequestMessage object itself.

withVersion

public EventRequestMessage withVersion(String version)

Set the version property: The HTTP message version.

Parameters:

version - the version value to set.

Returns:

the EventRequestMessage object itself.

Applies to