Response Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.Response

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
ContentLink bodyLink()

Get the bodyLink property: Details on the location of the body content.

static Response fromJson(JsonReader jsonReader)

Reads an instance of Response from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

the bodyLink value.

fromJson

public static Response fromJson(JsonReader jsonReader)

Reads an instance of Response from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Response if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Response.

headers

public Object headers()

Get the headers property: A list of all the headers attached to the response.

Returns:

the headers value.

statusCode

public Integer statusCode()

Get the statusCode property: The status code of the response.

Returns:

the statusCode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

bodyLink - the bodyLink value to set.

Returns:

the Response object itself.

withHeaders

public Response withHeaders(Object headers)

Set the headers property: A list of all the headers attached to the response.

Parameters:

headers - the headers value to set.

Returns:

the Response object itself.

withStatusCode

public Response withStatusCode(Integer statusCode)

Set the statusCode property: The status code of the response.

Parameters:

statusCode - the statusCode value to set.

Returns:

the Response object itself.

Applies to