RestRequest Class
- java.
lang. Object - com.
azure. resourcemanager. deploymentmanager. models. RestRequest
- com.
public final class RestRequest
The properties that make up a REST request.
Constructor Summary
| Constructor | Description |
|---|---|
| RestRequest() |
Creates an instance of Rest |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Rest |
authentication()
Get the authentication property: The authentication information required in the request to the health provider. |
|
Rest |
method()
Get the method property: The HTTP method to use for the request. |
| String |
uri()
Get the uri property: The HTTP URI to use for the request. |
| void |
validate()
Validates the instance. |
|
Rest |
withAuthentication(RestRequestAuthentication authentication)
Set the authentication property: The authentication information required in the request to the health provider. |
|
Rest |
withMethod(RestRequestMethod method)
Set the method property: The HTTP method to use for the request. |
|
Rest |
withUri(String uri)
Set the uri property: The HTTP URI to use for the request. |
Methods inherited from java.lang.Object
Constructor Details
RestRequest
public RestRequest()
Creates an instance of RestRequest class.
Method Details
authentication
public RestRequestAuthentication authentication()
Get the authentication property: The authentication information required in the request to the health provider.
Returns:
method
public RestRequestMethod method()
Get the method property: The HTTP method to use for the request.
Returns:
uri
public String uri()
Get the uri property: The HTTP URI to use for the request.
Returns:
validate
public void validate()
Validates the instance.
withAuthentication
public RestRequest withAuthentication(RestRequestAuthentication authentication)
Set the authentication property: The authentication information required in the request to the health provider.
Parameters:
Returns:
withMethod
public RestRequest withMethod(RestRequestMethod method)
Set the method property: The HTTP method to use for the request.
Parameters:
Returns:
withUri
public RestRequest withUri(String uri)
Set the uri property: The HTTP URI to use for the request.
Parameters:
Returns: