Request Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Request
- com.
Implements
public final class Request
implements JsonSerializable<Request>
A request.
Constructor Summary
Constructor | Description |
---|---|
Request() |
Creates an instance of Request class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Request |
fromJson(JsonReader jsonReader)
Reads an instance of Request from the Json |
Object |
headers()
Get the headers property: A list of all the headers attached to the request. |
String |
method()
Get the method property: The HTTP method used for the request. |
Json |
toJson(JsonWriter jsonWriter) |
String |
uri()
Get the uri property: The destination for the request. |
void |
validate()
Validates the instance. |
Request |
withHeaders(Object headers)
Set the headers property: A list of all the headers attached to the request. |
Request |
withMethod(String method)
Set the method property: The HTTP method used for the request. |
Request |
withUri(String uri)
Set the uri property: The destination for the request. |
Methods inherited from java.lang.Object
Constructor Details
Request
public Request()
Creates an instance of Request class.
Method Details
fromJson
public static Request fromJson(JsonReader jsonReader)
Reads an instance of Request from the JsonReader.
Parameters:
Returns:
Throws:
headers
public Object headers()
Get the headers property: A list of all the headers attached to the request.
Returns:
method
public String method()
Get the method property: The HTTP method used for the request.
Returns:
toJson
uri
public String uri()
Get the uri property: The destination for the request.
Returns:
validate
public void validate()
Validates the instance.
withHeaders
public Request withHeaders(Object headers)
Set the headers property: A list of all the headers attached to the request.
Parameters:
Returns:
withMethod
public Request withMethod(String method)
Set the method property: The HTTP method used for the request.
Parameters:
Returns:
withUri
public Request withUri(String uri)
Set the uri property: The destination for the request.
Parameters:
Returns:
Applies to
Azure SDK for Java