public final class Response extends Object
Constructor and Description |
---|
Response() |
Modifier and Type | Method and Description |
---|---|
ContentLink |
bodyLink()
Get the bodyLink property: Details on the location of the body content.
|
Object |
headers()
Get the headers property: A list of all the headers attached to the response.
|
Integer |
statusCode()
Get the statusCode property: The status code of the response.
|
void |
validate()
Validates the instance.
|
Response |
withBodyLink(ContentLink bodyLink)
Set the bodyLink property: Details on the location of the body content.
|
Response |
withHeaders(Object headers)
Set the headers property: A list of all the headers attached to the response.
|
Response |
withStatusCode(Integer statusCode)
Set the statusCode property: The status code of the response.
|
public Object headers()
public Response withHeaders(Object headers)
headers
- the headers value to set.public Integer statusCode()
public Response withStatusCode(Integer statusCode)
statusCode
- the statusCode value to set.public ContentLink bodyLink()
public Response withBodyLink(ContentLink bodyLink)
bodyLink
- the bodyLink value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.