Class SmsAuthenticationMethodTargetRequest

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

public class SmsAuthenticationMethodTargetRequest extends com.microsoft.graph.http.BaseRequest<SmsAuthenticationMethodTarget>
The class for the Sms Authentication Method Target Request.
  • Constructor Details

    • SmsAuthenticationMethodTargetRequest

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

    • getAsync

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

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

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

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

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

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

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

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

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

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