Class EventRequestMessage
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.EventRequestMessage
-
public final class EventRequestMessage extends Object
The event request message sent to the service URI.
-
-
Constructor Summary
Constructors Constructor Description EventRequestMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventContentcontent()Get the content property: The content of the event request message.Map<String,String>headers()Get the headers property: The headers of the event request message.Stringmethod()Get the method property: The HTTP method used to send the event request message.StringrequestUri()Get the requestUri property: The URI used to send the event request message.voidvalidate()Validates the instance.Stringversion()Get the version property: The HTTP message version.EventRequestMessagewithContent(EventContent content)Set the content property: The content of the event request message.EventRequestMessagewithHeaders(Map<String,String> headers)Set the headers property: The headers of the event request message.EventRequestMessagewithMethod(String method)Set the method property: The HTTP method used to send the event request message.EventRequestMessagewithRequestUri(String requestUri)Set the requestUri property: The URI used to send the event request message.EventRequestMessagewithVersion(String version)Set the version property: The HTTP message version.
-
-
-
Method Detail
-
content
public EventContent content()
Get the content property: The content of the event request message.- Returns:
- the content 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.
-
headers
public Map<String,String> headers()
Get the headers property: The headers of the event request message.- Returns:
- the headers value.
-
withHeaders
public EventRequestMessage withHeaders(Map<String,String> headers)
Set the headers property: The headers of the event request message.- Parameters:
headers- the headers value to set.- Returns:
- the EventRequestMessage object itself.
-
method
public String method()
Get the method property: The HTTP method used to send the event request message.- Returns:
- the method value.
-
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.
-
requestUri
public String requestUri()
Get the requestUri property: The URI used to send the event request message.- Returns:
- the requestUri value.
-
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.
-
version
public String version()
Get the version property: The HTTP message version.- Returns:
- the version value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-