forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppRoleAssignmentReferenceRequest.java
More file actions
87 lines (76 loc) · 3.34 KB
/
Copy pathAppRoleAssignmentReferenceRequest.java
File metadata and controls
87 lines (76 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Template Source: BaseEntityReferenceRequest.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests.extensions;
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.concurrency.ICallback;
import com.microsoft.graph.models.extensions.AppRoleAssignment;
import java.util.Arrays;
import java.util.EnumSet;
import com.microsoft.graph.options.QueryOption;
import com.microsoft.graph.http.BaseRequest;
import com.microsoft.graph.http.HttpMethod;
import com.microsoft.graph.core.IBaseClient;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the App Role Assignment Reference Request.
*/
public class AppRoleAssignmentReferenceRequest extends BaseRequest implements IAppRoleAssignmentReferenceRequest {
/**
* The request for the AppRoleAssignment
*
* @param requestUrl the request URL
* @param client the service client
* @param requestOptions the options for this request
*/
public AppRoleAssignmentReferenceRequest(String requestUrl, IBaseClient client, java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
super(requestUrl, client, requestOptions, AppRoleAssignment.class);
}
public void delete(final ICallback<? super AppRoleAssignment> callback) {
send(HttpMethod.DELETE, callback, null);
}
public AppRoleAssignment delete() throws ClientException {
return send(HttpMethod.DELETE, null);
}
/**
* Sets the select clause for the request
*
* @param value the select clause
* @return the updated request
*/
public IAppRoleAssignmentReferenceRequest select(final String value) {
getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$select", value));
return (AppRoleAssignmentReferenceRequest)this;
}
/**
* Sets the expand clause for the request
*
* @param value the expand clause
* @return the updated request
*/
public IAppRoleAssignmentReferenceRequest expand(final String value) {
getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value));
return (AppRoleAssignmentReferenceRequest)this;
}
/**
* Puts the AppRoleAssignment
*
* @param srcAppRoleAssignment the AppRoleAssignment reference to PUT
* @param callback the callback to be called after success or failure
*/
public void put(AppRoleAssignment srcAppRoleAssignment, final ICallback<? super AppRoleAssignment> callback) {
send(HttpMethod.PUT, callback, srcAppRoleAssignment);
}
/**
* Puts the AppRoleAssignment
*
* @param srcAppRoleAssignment the AppRoleAssignment reference to PUT
* @return the AppRoleAssignment
* @throws ClientException an exception occurs if there was an error while the request was sent
*/
public AppRoleAssignment put(AppRoleAssignment srcAppRoleAssignment) throws ClientException {
return send(HttpMethod.PUT, srcAppRoleAssignment);
}
}