EventResponseMessage Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. EventResponseMessage
- com.
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 Event |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
content()
Get the content property: The content of the event response message. |
static
Event |
fromJson(JsonReader jsonReader)
Reads an instance of Event |
Map<String,String> |
headers()
Get the headers property: The headers of the event response message. |
String |
reasonPhrase()
Get the reason |
String |
statusCode()
Get the status |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
version()
Get the version property: The HTTP message version. |
Event |
withContent(String content)
Set the content property: The content of the event response message. |
Event |
withHeaders(Map<String,String> headers)
Set the headers property: The headers of the event response message. |
Event |
withReasonPhrase(String reasonPhrase)
Set the reason |
Event |
withStatusCode(String statusCode)
Set the status |
Event |
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:
fromJson
public static EventResponseMessage fromJson(JsonReader jsonReader)
Reads an instance of EventResponseMessage from the JsonReader.
Parameters:
Returns:
Throws:
headers
public Map
Get the headers property: The headers of the event response message.
Returns:
reasonPhrase
public String reasonPhrase()
Get the reasonPhrase property: The reason phrase of the event response message.
Returns:
statusCode
public String statusCode()
Get the statusCode property: The status code of the event response 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 EventResponseMessage withContent(String content)
Set the content property: The content of the event response message.
Parameters:
Returns:
withHeaders
public EventResponseMessage withHeaders(Map
Set the headers property: The headers of the event response message.
Parameters:
Returns:
withReasonPhrase
public EventResponseMessage withReasonPhrase(String reasonPhrase)
Set the reasonPhrase property: The reason phrase of the event response message.
Parameters:
Returns:
withStatusCode
public EventResponseMessage withStatusCode(String statusCode)
Set the statusCode property: The status code of the event response message.
Parameters:
Returns:
withVersion
public EventResponseMessage withVersion(String version)
Set the version property: The HTTP message version.
Parameters:
Returns:
Applies to
Azure SDK for Java