public class SegmentCollectionRequest extends com.microsoft.graph.http.BaseEntityCollectionRequest<Segment,SegmentCollectionResponse,SegmentCollectionPage>
Constructor and Description |
---|
SegmentCollectionRequest(java.lang.String requestUrl,
com.microsoft.graph.core.IBaseClient<?> client,
java.util.List<? extends com.microsoft.graph.options.Option> requestOptions)
The request builder for this collection of Segment
|
Modifier and Type | Method and Description |
---|---|
SegmentCollectionRequest |
count()
Sets the count value to true for the request
|
SegmentCollectionRequest |
count(boolean value)
Sets the count value for the request
|
SegmentCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
SegmentCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
SegmentCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Segment |
post(Segment newSegment)
Creates a new Segment
|
java.util.concurrent.CompletableFuture<Segment> |
postAsync(Segment newSegment)
Creates a new Segment
|
SegmentCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
SegmentCollectionRequest |
skip(int value)
Sets the skip value for the request
|
SegmentCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
SegmentCollectionRequest |
top(int value)
Sets the top value for the request
|
get, getAsync, post
addCountOption, addExpandOption, addFilterOption, addFunctionOption, addHeader, addOrderByOption, addQueryOption, addSelectOption, addSkipOption, addSkipTokenOption, addTopOption, buildFromResponse, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, send, sendAsync, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
public SegmentCollectionRequest(@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> postAsync(@Nonnull Segment newSegment)
newSegment
- the Segment to create@Nonnull public Segment post(@Nonnull Segment newSegment) throws com.microsoft.graph.core.ClientException
newSegment
- the Segment to createcom.microsoft.graph.core.ClientException
@Nonnull public SegmentCollectionRequest expand(@Nonnull java.lang.String value)
value
- the expand clause@Nonnull public SegmentCollectionRequest filter(@Nonnull java.lang.String value)
value
- the filter clause@Nonnull public SegmentCollectionRequest orderBy(@Nonnull java.lang.String value)
value
- the order by clause@Nonnull public SegmentCollectionRequest select(@Nonnull java.lang.String value)
value
- the select clause@Nonnull public SegmentCollectionRequest top(int value)
value
- the max number of items to return@Nonnull public SegmentCollectionRequest count(boolean value)
value
- whether or not to return the count of objects with the request@Nonnull public SegmentCollectionRequest count()
@Nonnull public SegmentCollectionRequest skip(int value)
value
- of the number of items to skip@Nonnull public SegmentCollectionRequest skipToken(@Nonnull java.lang.String skipToken)
skipToken
- - Token for pagination