Class DataPolicyOperationsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.datapolicyoperations.DataPolicyOperationsRequestBuilder
@Generated("com.microsoft.kiota")
public class DataPolicyOperationsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of dataPolicyOperation entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve the properties of a dataPolicyOperation object.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionDataPolicyOperationsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDataPolicyOperationsRequestBuilderand sets the default values.DataPolicyOperationsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDataPolicyOperationsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyDataPolicyOperationId(String dataPolicyOperationId) Provides operations to manage the collection of dataPolicyOperation entities.count()Provides operations to count the resources in the collection.get()Retrieve the properties of a dataPolicyOperation object.get(Consumer<DataPolicyOperationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a dataPolicyOperation object.post(DataPolicyOperation body) Add new entity to dataPolicyOperationspost(DataPolicyOperation body, Consumer<DataPolicyOperationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Add new entity to dataPolicyOperationscom.microsoft.kiota.RequestInformationRetrieve the properties of a dataPolicyOperation object.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<DataPolicyOperationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a dataPolicyOperation object.com.microsoft.kiota.RequestInformationAdd new entity to dataPolicyOperationscom.microsoft.kiota.RequestInformationtoPostRequestInformation(DataPolicyOperation body, Consumer<DataPolicyOperationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Add new entity to dataPolicyOperationsReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
DataPolicyOperationsRequestBuilder
public DataPolicyOperationsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDataPolicyOperationsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
DataPolicyOperationsRequestBuilder
public DataPolicyOperationsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDataPolicyOperationsRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byDataPolicyOperationId
@Nonnull public DataPolicyOperationItemRequestBuilder byDataPolicyOperationId(@Nonnull String dataPolicyOperationId) Provides operations to manage the collection of dataPolicyOperation entities.- Parameters:
dataPolicyOperationId- The unique identifier of dataPolicyOperation- Returns:
- a
DataPolicyOperationItemRequestBuilder
-
get
Retrieve the properties of a dataPolicyOperation object.- Returns:
- a
DataPolicyOperationCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public DataPolicyOperationCollectionResponse get(@Nullable Consumer<DataPolicyOperationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a dataPolicyOperation object.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
DataPolicyOperationCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
Add new entity to dataPolicyOperations- Parameters:
body- The request body- Returns:
- a
DataPolicyOperation - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public DataPolicyOperation post(@Nonnull DataPolicyOperation body, @Nullable Consumer<DataPolicyOperationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Add new entity to dataPolicyOperations- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
DataPolicyOperation - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve the properties of a dataPolicyOperation object.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<DataPolicyOperationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a dataPolicyOperation object.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull DataPolicyOperation body) Add new entity to dataPolicyOperations- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull DataPolicyOperation body, @Nullable Consumer<DataPolicyOperationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Add new entity to dataPolicyOperations- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
DataPolicyOperationsRequestBuilder
-