public class SegmentRequest extends com.microsoft.graph.http.BaseRequest<Segment>
Constructor and Description |
---|
SegmentRequest(java.lang.String requestUrl,
com.microsoft.graph.core.IBaseClient<?> client,
java.util.List<? extends com.microsoft.graph.options.Option> requestOptions)
The request for the Segment
|
Modifier and Type | Method and Description |
---|---|
Segment |
delete()
Delete this item from the service
|
java.util.concurrent.CompletableFuture<Segment> |
deleteAsync()
Delete this item from the service
|
SegmentRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Segment |
get()
Gets the Segment from the service
|
java.util.concurrent.CompletableFuture<Segment> |
getAsync()
Gets the Segment from the service
|
Segment |
patch(Segment sourceSegment)
Patches this Segment with a source
|
java.util.concurrent.CompletableFuture<Segment> |
patchAsync(Segment sourceSegment)
Patches this Segment with a source
|
Segment |
post(Segment newSegment)
Creates a Segment with a new object
|
java.util.concurrent.CompletableFuture<Segment> |
postAsync(Segment newSegment)
Creates a Segment with a new object
|
Segment |
put(Segment newSegment)
Creates a Segment with a new object
|
java.util.concurrent.CompletableFuture<Segment> |
putAsync(Segment newSegment)
Creates a Segment with a new object
|
SegmentRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addCountOption, addExpandOption, addFilterOption, addFunctionOption, addHeader, addOrderByOption, addQueryOption, addSelectOption, addSkipOption, addSkipTokenOption, addTopOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, sendAsync, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
public SegmentRequest(@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<Segment> getAsync()
@Nullable public Segment get() throws com.microsoft.graph.core.ClientException
com.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public java.util.concurrent.CompletableFuture<Segment> deleteAsync()
@Nullable public Segment delete() throws com.microsoft.graph.core.ClientException
com.microsoft.graph.core.ClientException
- if there was an exception during the delete operation@Nonnull public java.util.concurrent.CompletableFuture<Segment> patchAsync(@Nonnull Segment sourceSegment)
sourceSegment
- the source object with updates@Nullable public Segment patch(@Nonnull Segment sourceSegment) throws com.microsoft.graph.core.ClientException
sourceSegment
- the source object with updatescom.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public java.util.concurrent.CompletableFuture<Segment> postAsync(@Nonnull Segment newSegment)
newSegment
- the new object to create@Nullable public Segment post(@Nonnull Segment newSegment) throws com.microsoft.graph.core.ClientException
newSegment
- the new object to createcom.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public java.util.concurrent.CompletableFuture<Segment> putAsync(@Nonnull Segment newSegment)
newSegment
- the object to create/update@Nullable public Segment put(@Nonnull Segment newSegment) throws com.microsoft.graph.core.ClientException
newSegment
- the object to create/updatecom.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public SegmentRequest select(@Nonnull java.lang.String value)
value
- the select clause@Nonnull public SegmentRequest expand(@Nonnull java.lang.String value)
value
- the expand clause