java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.RestRequest

public final class RestRequest extends Object
The properties that make up a REST request.
  • Constructor Details

    • RestRequest

      public RestRequest()
      Creates an instance of RestRequest class.
  • Method Details

    • method

      public RestRequestMethod method()
      Get the method property: The HTTP method to use for the request.
      Returns:
      the method value.
    • withMethod

      public RestRequest withMethod(RestRequestMethod method)
      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

      public String uri()
      Get the uri property: The HTTP URI to use for the request.
      Returns:
      the uri value.
    • withUri

      public RestRequest withUri(String uri)
      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

      public RestRequestAuthentication authentication()
      Get the authentication property: The authentication information required in the request to the health provider.
      Returns:
      the authentication value.
    • withAuthentication

      public RestRequest withAuthentication(RestRequestAuthentication authentication)
      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.