@Generated(value="OracleSDKGenerator", comments="API Version: 20190901") public final class Response extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A container object for response attributes.
Note: Objects should always be created or deserialized using the Response.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Response.Builder
, which maintain a
set of all explicitly set fields called Response.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Response.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Response(String status,
Date responseTime,
Map<String,List<String>> headers,
Map<String,Object> payload,
String message)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Response.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Map<String,List<String>> |
getHeaders()
The headers of the response.
|
String |
getMessage()
A friendly description of what happened during the operation.
|
Map<String,Object> |
getPayload()
This value is included for backward compatibility with the Audit version 1 schema, where it
contained metadata of interest from the response payload.
|
Date |
getResponseTime()
The time of the response to the audited request, expressed in RFC
3339 timestamp format.
|
String |
getStatus()
The status code of the response.
|
int |
hashCode() |
Response.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
public static Response.Builder builder()
Create a new builder.
public Response.Builder toBuilder()
public String getStatus()
The status code of the response.
Example: 200
public Date getResponseTime()
The time of the response to the audited request, expressed in RFC 3339 timestamp format.
Example: 2019-09-18T00:10:59.278Z
public Map<String,List<String>> getHeaders()
The headers of the response.
Example:
----- { "ETag": [ "
public Map<String,Object> getPayload()
This value is included for backward compatibility with the Audit version 1 schema, where it contained metadata of interest from the response payload.
Example:
----- { "resourceName": "my_instance", "id": "ocid1.instance.oc1.phx.
public String getMessage()
A friendly description of what happened during the operation. Use this for troubleshooting.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.