Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Response |
build() |
Response.Builder |
copy(Response model) |
Response.Builder |
headers(Map<String,List<String>> headers)
The headers of the response.
|
Response.Builder |
message(String message)
A friendly description of what happened during the operation.
|
Response.Builder |
payload(Map<String,Object> payload)
This value is included for backward compatibility with the Audit version 1 schema, where
it contained metadata of interest from the response payload.
|
Response.Builder |
responseTime(Date responseTime)
The time of the response to the audited request, expressed in RFC
3339 timestamp format.
|
Response.Builder |
status(String status)
The status code of the response.
|
public Response.Builder status(String status)
The status code of the response.
Example: 200
status
- the value to setpublic Response.Builder responseTime(Date responseTime)
The time of the response to the audited request, expressed in RFC 3339 timestamp format.
Example: 2019-09-18T00:10:59.278Z
responseTime
- the value to setpublic Response.Builder headers(Map<String,List<String>> headers)
The headers of the response.
Example:
----- { "ETag": [ "
headers
- the value to setpublic Response.Builder payload(Map<String,Object> payload)
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.
payload
- the value to setpublic Response.Builder message(String message)
A friendly description of what happened during the operation. Use this for troubleshooting.
message
- the value to setpublic Response build()
public Response.Builder copy(Response model)
Copyright © 2016–2024. All rights reserved.