Class Response
java.lang.Object
com.azure.resourcemanager.appservice.models.Response
A response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbodyLink()Get the bodyLink property: Details on the location of the body content.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.voidvalidate()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.
-
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.
-