Class OrganizationalBrandingPropertiesBannerLogoStreamRequest

java.lang.Object
com.microsoft.graph.http.BaseStreamRequest<OrganizationalBrandingProperties>
com.microsoft.graph.requests.OrganizationalBrandingPropertiesBannerLogoStreamRequest
All Implemented Interfaces:
com.microsoft.graph.http.IHttpRequest, com.microsoft.graph.http.IHttpStreamRequest

public class OrganizationalBrandingPropertiesBannerLogoStreamRequest extends com.microsoft.graph.http.BaseStreamRequest<OrganizationalBrandingProperties>
The class for the Organizational Branding Properties Banner Logo Stream Request.
  • Constructor Details

    • OrganizationalBrandingPropertiesBannerLogoStreamRequest

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

    • getAsync

      @Nonnull public CompletableFuture<InputStream> getAsync()
      Gets the contents of this stream
      Returns:
      a future with the result
    • get

      @Nullable public InputStream get() throws com.microsoft.graph.core.ClientException
      Gets the contents of this stream
      Returns:
      the stream that the caller needs to close
      Throws:
      com.microsoft.graph.core.ClientException - an exception occurs if there was an error while the request was sent
    • putAsync

      @Nonnull public CompletableFuture<OrganizationalBrandingProperties> putAsync(@Nonnull byte[] fileContents)
      Uploads to the stream
      Parameters:
      fileContents - the contents of the stream to upload
      Returns:
      a future with the result
    • put

      @Nullable public OrganizationalBrandingProperties put(@Nonnull byte[] fileContents) throws com.microsoft.graph.core.ClientException
      Uploads to the stream
      Parameters:
      fileContents - the contents of the stream to upload
      Returns:
      the result of the upload
      Throws:
      com.microsoft.graph.core.ClientException - an exception occurs if there was an error while the request was sent