RestRequest Class

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

public final class RestRequest

The properties that make up a REST request.

Constructor Summary

Constructor Description
RestRequest()

Creates an instance of RestRequest class.

Method Summary

Modifier and Type Method and Description
RestRequestAuthentication authentication()

Get the authentication property: The authentication information required in the request to the health provider.

RestRequestMethod 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.

RestRequest withAuthentication(RestRequestAuthentication authentication)

Set the authentication property: The authentication information required in the request to the health provider.

RestRequest withMethod(RestRequestMethod method)

Set the method property: The HTTP method to use for the request.

RestRequest 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:

the authentication value.

method

public RestRequestMethod method()

Get the method property: The HTTP method to use for the request.

Returns:

the method value.

uri

public String uri()

Get the uri property: The HTTP URI to use for the request.

Returns:

the uri value.

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:

authentication - the authentication value to set.

Returns:

the RestRequest object itself.

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.

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.

Applies to