EventRequestMessage Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. EventRequestMessage
- com.
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 Event |
Method Summary
Modifier and Type | Method and Description |
---|---|
Event |
content()
Get the content property: The content of the event request message. |
static
Event |
fromJson(JsonReader jsonReader)
Reads an instance of Event |
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 request |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
version()
Get the version property: The HTTP message version. |
Event |
withContent(EventContent content)
Set the content property: The content of the event request message. |
Event |
withHeaders(Map<String,String> headers)
Set the headers property: The headers of the event request message. |
Event |
withMethod(String method)
Set the method property: The HTTP method used to send the event request message. |
Event |
withRequestUri(String requestUri)
Set the request |
Event |
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:
fromJson
public static EventRequestMessage fromJson(JsonReader jsonReader)
Reads an instance of EventRequestMessage from the JsonReader.
Parameters:
Returns:
Throws:
headers
public Map
Get the headers property: The headers of the event request message.
Returns:
method
public String method()
Get the method property: The HTTP method used to send the event request message.
Returns:
requestUri
public String requestUri()
Get the requestUri property: The URI used to send the event request message.
Returns:
toJson
validate
public void validate()
Validates the instance.
version
public String version()
Get the version property: The HTTP message version.
Returns:
withContent
public EventRequestMessage withContent(EventContent content)
Set the content property: The content of the event request message.
Parameters:
Returns:
withHeaders
public EventRequestMessage withHeaders(Map
Set the headers property: The headers of the event request message.
Parameters:
Returns:
withMethod
public EventRequestMessage withMethod(String method)
Set the method property: The HTTP method used to send the event request message.
Parameters:
Returns:
withRequestUri
public EventRequestMessage withRequestUri(String requestUri)
Set the requestUri property: The URI used to send the event request message.
Parameters:
Returns:
withVersion
public EventRequestMessage withVersion(String version)
Set the version property: The HTTP message version.
Parameters:
Returns:
Applies to
Azure SDK for Java