Class Response
java.lang.Object
com.azure.resourcemanager.appservice.models.Response
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Response>
A response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbodyLink()
Get the bodyLink property: Details on the location of the body content.static Response
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Response from the JsonReader.headers()
Get the headers property: A list of all the headers attached to the response.Get the statusCode property: The status code of the response.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBodyLink
(ContentLink bodyLink) Set the bodyLink property: Details on the location of the body content.withHeaders
(Object headers) Set the headers property: A list of all the headers attached to the response.withStatusCode
(Integer statusCode) Set the statusCode property: The status code of the response.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Response
public Response()Creates an instance of Response class.
-
-
Method Details
-
headers
Get the headers property: A list of all the headers attached to the response.- Returns:
- the headers value.
-
withHeaders
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.
-
statusCode
Get the statusCode property: The status code of the response.- Returns:
- the statusCode value.
-
withStatusCode
Set the statusCode property: The status code of the response.- Parameters:
statusCode
- the statusCode value to set.- Returns:
- the Response object itself.
-
bodyLink
Get the bodyLink property: Details on the location of the body content.- Returns:
- the bodyLink value.
-
withBodyLink
Set the bodyLink property: Details on the location of the body content.- Parameters:
bodyLink
- the bodyLink value to set.- Returns:
- the Response object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<Response>
- Throws:
IOException
-
fromJson
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.
-