Class EventResponseMessage
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.EventResponseMessage
-
public final class EventResponseMessage extends Object
The event response message received from the service URI.
-
-
Constructor Summary
Constructors Constructor Description EventResponseMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcontent()Get the content property: The content of the event response message.Map<String,String>headers()Get the headers property: The headers of the event response message.StringreasonPhrase()Get the reasonPhrase property: The reason phrase of the event response message.StringstatusCode()Get the statusCode property: The status code of the event response message.voidvalidate()Validates the instance.Stringversion()Get the version property: The HTTP message version.EventResponseMessagewithContent(String content)Set the content property: The content of the event response message.EventResponseMessagewithHeaders(Map<String,String> headers)Set the headers property: The headers of the event response message.EventResponseMessagewithReasonPhrase(String reasonPhrase)Set the reasonPhrase property: The reason phrase of the event response message.EventResponseMessagewithStatusCode(String statusCode)Set the statusCode property: The status code of the event response message.EventResponseMessagewithVersion(String version)Set the version property: The HTTP message version.
-
-
-
Method Detail
-
content
public String content()
Get the content property: The content of the event response message.- Returns:
- the content 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.
-
headers
public Map<String,String> headers()
Get the headers property: The headers of the event response message.- Returns:
- the headers value.
-
withHeaders
public EventResponseMessage withHeaders(Map<String,String> headers)
Set the headers property: The headers of the event response message.- Parameters:
headers- the headers value to set.- Returns:
- the EventResponseMessage object itself.
-
reasonPhrase
public String reasonPhrase()
Get the reasonPhrase property: The reason phrase of the event response message.- Returns:
- the reasonPhrase value.
-
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.
-
statusCode
public String statusCode()
Get the statusCode property: The status code of the event response message.- Returns:
- the statusCode value.
-
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.
-
version
public String version()
Get the version property: The HTTP message version.- Returns:
- the version value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-