public class DirectoryRoleTemplateRequest extends com.microsoft.graph.http.BaseRequest<DirectoryRoleTemplate>
Constructor and Description |
---|
DirectoryRoleTemplateRequest(java.lang.String requestUrl,
com.microsoft.graph.core.IBaseClient<?> client,
java.util.List<? extends com.microsoft.graph.options.Option> requestOptions)
The request for the DirectoryRoleTemplate
|
Modifier and Type | Method and Description |
---|---|
DirectoryRoleTemplate |
delete()
Delete this item from the service
|
java.util.concurrent.CompletableFuture<DirectoryRoleTemplate> |
deleteAsync()
Delete this item from the service
|
DirectoryRoleTemplateRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
DirectoryRoleTemplate |
get()
Gets the DirectoryRoleTemplate from the service
|
java.util.concurrent.CompletableFuture<DirectoryRoleTemplate> |
getAsync()
Gets the DirectoryRoleTemplate from the service
|
DirectoryRoleTemplate |
patch(DirectoryRoleTemplate sourceDirectoryRoleTemplate)
Patches this DirectoryRoleTemplate with a source
|
java.util.concurrent.CompletableFuture<DirectoryRoleTemplate> |
patchAsync(DirectoryRoleTemplate sourceDirectoryRoleTemplate)
Patches this DirectoryRoleTemplate with a source
|
DirectoryRoleTemplate |
post(DirectoryRoleTemplate newDirectoryRoleTemplate)
Creates a DirectoryRoleTemplate with a new object
|
java.util.concurrent.CompletableFuture<DirectoryRoleTemplate> |
postAsync(DirectoryRoleTemplate newDirectoryRoleTemplate)
Creates a DirectoryRoleTemplate with a new object
|
DirectoryRoleTemplate |
put(DirectoryRoleTemplate newDirectoryRoleTemplate)
Creates a DirectoryRoleTemplate with a new object
|
java.util.concurrent.CompletableFuture<DirectoryRoleTemplate> |
putAsync(DirectoryRoleTemplate newDirectoryRoleTemplate)
Creates a DirectoryRoleTemplate with a new object
|
DirectoryRoleTemplateRequest |
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 DirectoryRoleTemplateRequest(@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<DirectoryRoleTemplate> getAsync()
@Nullable public DirectoryRoleTemplate 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<DirectoryRoleTemplate> deleteAsync()
@Nullable public DirectoryRoleTemplate 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<DirectoryRoleTemplate> patchAsync(@Nonnull DirectoryRoleTemplate sourceDirectoryRoleTemplate)
sourceDirectoryRoleTemplate
- the source object with updates@Nullable public DirectoryRoleTemplate patch(@Nonnull DirectoryRoleTemplate sourceDirectoryRoleTemplate) throws com.microsoft.graph.core.ClientException
sourceDirectoryRoleTemplate
- 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<DirectoryRoleTemplate> postAsync(@Nonnull DirectoryRoleTemplate newDirectoryRoleTemplate)
newDirectoryRoleTemplate
- the new object to create@Nullable public DirectoryRoleTemplate post(@Nonnull DirectoryRoleTemplate newDirectoryRoleTemplate) throws com.microsoft.graph.core.ClientException
newDirectoryRoleTemplate
- 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<DirectoryRoleTemplate> putAsync(@Nonnull DirectoryRoleTemplate newDirectoryRoleTemplate)
newDirectoryRoleTemplate
- the object to create/update@Nullable public DirectoryRoleTemplate put(@Nonnull DirectoryRoleTemplate newDirectoryRoleTemplate) throws com.microsoft.graph.core.ClientException
newDirectoryRoleTemplate
- the object to create/updatecom.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public DirectoryRoleTemplateRequest select(@Nonnull java.lang.String value)
value
- the select clause@Nonnull public DirectoryRoleTemplateRequest expand(@Nonnull java.lang.String value)
value
- the expand clause