Condividi tramite


Response Class

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

Implements

public final class Response
implements JsonSerializable<Response>

A response.

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.

Methods inherited from java.lang.Object

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.

Applies to