Class AuthorizationPolicyRequest

java.lang.Object
com.microsoft.graph.http.BaseRequest<AuthorizationPolicy>
com.microsoft.graph.requests.AuthorizationPolicyRequest
All Implemented Interfaces:
com.microsoft.graph.http.IHttpRequest

public class AuthorizationPolicyRequest extends com.microsoft.graph.http.BaseRequest<AuthorizationPolicy>
The class for the Authorization Policy Request.
  • Constructor Details

    • AuthorizationPolicyRequest

      public AuthorizationPolicyRequest(@Nonnull String requestUrl, @Nonnull com.microsoft.graph.core.IBaseClient<?> client, @Nullable List<? extends com.microsoft.graph.options.Option> requestOptions)
      The request for the AuthorizationPolicy
      Parameters:
      requestUrl - the request URL
      client - the service client
      requestOptions - the options for this request
  • Method Details

    • getAsync

      @Nonnull public CompletableFuture<AuthorizationPolicy> getAsync()
      Gets the AuthorizationPolicy from the service
      Returns:
      a future with the result
    • get

      @Nullable public AuthorizationPolicy get() throws com.microsoft.graph.core.ClientException
      Gets the AuthorizationPolicy from the service
      Returns:
      the AuthorizationPolicy from the request
      Throws:
      com.microsoft.graph.core.ClientException - this exception occurs if the request was unable to complete for any reason
    • deleteAsync

      @Nonnull public CompletableFuture<AuthorizationPolicy> deleteAsync()
      Delete this item from the service
      Returns:
      a future with the deletion result
    • delete

      @Nullable public AuthorizationPolicy delete() throws com.microsoft.graph.core.ClientException
      Delete this item from the service
      Returns:
      the resulting response if the service returns anything on deletion
      Throws:
      com.microsoft.graph.core.ClientException - if there was an exception during the delete operation
    • patchAsync

      @Nonnull public CompletableFuture<AuthorizationPolicy> patchAsync(@Nonnull AuthorizationPolicy sourceAuthorizationPolicy)
      Patches this AuthorizationPolicy with a source
      Parameters:
      sourceAuthorizationPolicy - the source object with updates
      Returns:
      a future with the result
    • patch

      @Nullable public AuthorizationPolicy patch(@Nonnull AuthorizationPolicy sourceAuthorizationPolicy) throws com.microsoft.graph.core.ClientException
      Patches this AuthorizationPolicy with a source
      Parameters:
      sourceAuthorizationPolicy - the source object with updates
      Returns:
      the updated AuthorizationPolicy
      Throws:
      com.microsoft.graph.core.ClientException - this exception occurs if the request was unable to complete for any reason
    • postAsync

      @Nonnull public CompletableFuture<AuthorizationPolicy> postAsync(@Nonnull AuthorizationPolicy newAuthorizationPolicy)
      Creates a AuthorizationPolicy with a new object
      Parameters:
      newAuthorizationPolicy - the new object to create
      Returns:
      a future with the result
    • post

      @Nullable public AuthorizationPolicy post(@Nonnull AuthorizationPolicy newAuthorizationPolicy) throws com.microsoft.graph.core.ClientException
      Creates a AuthorizationPolicy with a new object
      Parameters:
      newAuthorizationPolicy - the new object to create
      Returns:
      the created AuthorizationPolicy
      Throws:
      com.microsoft.graph.core.ClientException - this exception occurs if the request was unable to complete for any reason
    • putAsync

      @Nonnull public CompletableFuture<AuthorizationPolicy> putAsync(@Nonnull AuthorizationPolicy newAuthorizationPolicy)
      Creates a AuthorizationPolicy with a new object
      Parameters:
      newAuthorizationPolicy - the object to create/update
      Returns:
      a future with the result
    • put

      @Nullable public AuthorizationPolicy put(@Nonnull AuthorizationPolicy newAuthorizationPolicy) throws com.microsoft.graph.core.ClientException
      Creates a AuthorizationPolicy with a new object
      Parameters:
      newAuthorizationPolicy - the object to create/update
      Returns:
      the created AuthorizationPolicy
      Throws:
      com.microsoft.graph.core.ClientException - this exception occurs if the request was unable to complete for any reason
    • select

      @Nonnull public AuthorizationPolicyRequest select(@Nonnull String value)
      Sets the select clause for the request
      Parameters:
      value - the select clause
      Returns:
      the updated request
    • expand

      @Nonnull public AuthorizationPolicyRequest expand(@Nonnull String value)
      Sets the expand clause for the request
      Parameters:
      value - the expand clause
      Returns:
      the updated request