public class TeamworkHostedContentStreamRequest extends com.microsoft.graph.http.BaseStreamRequest<TeamworkHostedContent>
| Constructor and Description |
|---|
TeamworkHostedContentStreamRequest(java.lang.String requestUrl,
com.microsoft.graph.core.IBaseClient<?> client,
java.util.List<? extends com.microsoft.graph.options.Option> requestOptions)
The request for the TeamworkHostedContent
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
get()
Gets the contents of this stream
|
java.util.concurrent.CompletableFuture<java.io.InputStream> |
getAsync()
Gets the contents of this stream
|
TeamworkHostedContent |
put(byte[] fileContents)
Uploads to the stream
|
java.util.concurrent.CompletableFuture<TeamworkHostedContent> |
putAsync(byte[] fileContents)
Uploads to the stream
|
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, send, send, sendAsync, sendAsync, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic TeamworkHostedContentStreamRequest(@Nonnull
java.lang.String requestUrl,
@Nonnull
com.microsoft.graph.core.IBaseClient<?> client,
@Nullable
java.util.List<? extends com.microsoft.graph.options.Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this request@Nonnull public java.util.concurrent.CompletableFuture<java.io.InputStream> getAsync()
@Nullable
public java.io.InputStream get()
throws com.microsoft.graph.core.ClientException
com.microsoft.graph.core.ClientException - an exception occurs if there was an error while the request was sent@Nonnull public java.util.concurrent.CompletableFuture<TeamworkHostedContent> putAsync(@Nonnull byte[] fileContents)
fileContents - the contents of the stream to upload@Nullable public TeamworkHostedContent put(@Nonnull byte[] fileContents) throws com.microsoft.graph.core.ClientException
fileContents - the contents of the stream to uploadcom.microsoft.graph.core.ClientException - an exception occurs if there was an error while the request was sent