Response Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Response
- com.
Implements
public final class Response
implements JsonSerializable<Response>
A response.
Constructor Summary
Constructor | Description |
---|---|
Response() |
Creates an instance of Response class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Content |
bodyLink()
Get the body |
static Response |
fromJson(JsonReader jsonReader)
Reads an instance of Response from the Json |
Object |
headers()
Get the headers property: A list of all the headers attached to the response. |
Integer |
statusCode()
Get the status |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Response |
withBodyLink(ContentLink bodyLink)
Set the body |
Response |
withHeaders(Object headers)
Set the headers property: A list of all the headers attached to the response. |
Response |
withStatusCode(Integer statusCode)
Set the status |
Methods inherited from java.lang.Object
Constructor Details
Response
public Response()
Creates an instance of Response class.
Method Details
bodyLink
public ContentLink bodyLink()
Get the bodyLink property: Details on the location of the body content.
Returns:
fromJson
public static Response fromJson(JsonReader jsonReader)
Reads an instance of Response from the JsonReader.
Parameters:
Returns:
Throws:
headers
public Object headers()
Get the headers property: A list of all the headers attached to the response.
Returns:
statusCode
public Integer statusCode()
Get the statusCode property: The status code of the response.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBodyLink
public Response withBodyLink(ContentLink bodyLink)
Set the bodyLink property: Details on the location of the body content.
Parameters:
Returns:
withHeaders
public Response withHeaders(Object headers)
Set the headers property: A list of all the headers attached to the response.
Parameters:
Returns:
withStatusCode
public Response withStatusCode(Integer statusCode)
Set the statusCode property: The status code of the response.
Parameters:
Returns:
Applies to
Azure SDK for Java