Class UnifiedRoleScheduleBaseRequest

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

public class UnifiedRoleScheduleBaseRequest extends com.microsoft.graph.http.BaseRequest<UnifiedRoleScheduleBase>
The class for the Unified Role Schedule Base Request.
  • Constructor Details

    • UnifiedRoleScheduleBaseRequest

      public UnifiedRoleScheduleBaseRequest(@Nonnull String requestUrl, @Nonnull com.microsoft.graph.core.IBaseClient<?> client, @Nullable List<? extends com.microsoft.graph.options.Option> requestOptions, @Nonnull Class<? extends UnifiedRoleScheduleBase> responseClass)
      The request for the UnifiedRoleScheduleBase
      Parameters:
      requestUrl - the request URL
      client - the service client
      requestOptions - the options for this request
      responseClass - the class of the response
    • UnifiedRoleScheduleBaseRequest

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

    • getAsync

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

      @Nullable public UnifiedRoleScheduleBase get() throws com.microsoft.graph.core.ClientException
      Gets the UnifiedRoleScheduleBase from the service
      Returns:
      the UnifiedRoleScheduleBase 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<UnifiedRoleScheduleBase> deleteAsync()
      Delete this item from the service
      Returns:
      a future with the deletion result
    • delete

      @Nullable public UnifiedRoleScheduleBase 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<UnifiedRoleScheduleBase> patchAsync(@Nonnull UnifiedRoleScheduleBase sourceUnifiedRoleScheduleBase)
      Patches this UnifiedRoleScheduleBase with a source
      Parameters:
      sourceUnifiedRoleScheduleBase - the source object with updates
      Returns:
      a future with the result
    • patch

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

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

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

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

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

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

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