Class RestRequest
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.RestRequest
The properties that make up a REST request.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the authentication property: The authentication information required in the request to the health provider.method()
Get the method property: The HTTP method to use for the request.uri()
Get the uri property: The HTTP URI to use for the request.void
validate()
Validates the instance.withAuthentication
(RestRequestAuthentication authentication) Set the authentication property: The authentication information required in the request to the health provider.withMethod
(RestRequestMethod method) Set the method property: The HTTP method to use for the request.Set the uri property: The HTTP URI to use for the request.
-
Constructor Details
-
RestRequest
public RestRequest()Creates an instance of RestRequest class.
-
-
Method Details
-
method
Get the method property: The HTTP method to use for the request.- Returns:
- the method value.
-
withMethod
Set the method property: The HTTP method to use for the request.- Parameters:
method
- the method value to set.- Returns:
- the RestRequest object itself.
-
uri
Get the uri property: The HTTP URI to use for the request.- Returns:
- the uri value.
-
withUri
Set the uri property: The HTTP URI to use for the request.- Parameters:
uri
- the uri value to set.- Returns:
- the RestRequest object itself.
-
authentication
Get the authentication property: The authentication information required in the request to the health provider.- Returns:
- the authentication value.
-
withAuthentication
Set the authentication property: The authentication information required in the request to the health provider.- Parameters:
authentication
- the authentication value to set.- Returns:
- the RestRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-