Class WorkforceIntegrationsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.teamwork.workforceintegrations.WorkforceIntegrationsRequestBuilder
@Generated("com.microsoft.kiota")
public class WorkforceIntegrationsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the workforceIntegrations property of the microsoft.graph.teamwork entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve a list of workforceIntegration objects.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
ConstructorsConstructorDescriptionWorkforceIntegrationsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWorkforceIntegrationsRequestBuilderand sets the default values.WorkforceIntegrationsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWorkforceIntegrationsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyWorkforceIntegrationId(String workforceIntegrationId) Provides operations to manage the workforceIntegrations property of the microsoft.graph.teamwork entity.count()Provides operations to count the resources in the collection.get()Retrieve a list of workforceIntegration objects.get(Consumer<WorkforceIntegrationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of workforceIntegration objects.post(WorkforceIntegration body) Create a new workforceIntegration object.post(WorkforceIntegration body, Consumer<WorkforceIntegrationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new workforceIntegration object.com.microsoft.kiota.RequestInformationRetrieve a list of workforceIntegration objects.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<WorkforceIntegrationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of workforceIntegration objects.com.microsoft.kiota.RequestInformationCreate a new workforceIntegration object.com.microsoft.kiota.RequestInformationtoPostRequestInformation(WorkforceIntegration body, Consumer<WorkforceIntegrationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new workforceIntegration object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
WorkforceIntegrationsRequestBuilder
public WorkforceIntegrationsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWorkforceIntegrationsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
WorkforceIntegrationsRequestBuilder
public WorkforceIntegrationsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWorkforceIntegrationsRequestBuilderand 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
-
byWorkforceIntegrationId
@Nonnull public WorkforceIntegrationItemRequestBuilder byWorkforceIntegrationId(@Nonnull String workforceIntegrationId) Provides operations to manage the workforceIntegrations property of the microsoft.graph.teamwork entity.- Parameters:
workforceIntegrationId- The unique identifier of workforceIntegration- Returns:
- a
WorkforceIntegrationItemRequestBuilder
-
get
Retrieve a list of workforceIntegration objects.- Returns:
- a
WorkforceIntegrationCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public WorkforceIntegrationCollectionResponse get(@Nullable Consumer<WorkforceIntegrationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of workforceIntegration objects.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
WorkforceIntegrationCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create a new workforceIntegration object.- Parameters:
body- The request body- Returns:
- a
WorkforceIntegration - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public WorkforceIntegration post(@Nonnull WorkforceIntegration body, @Nullable Consumer<WorkforceIntegrationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new workforceIntegration object.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
WorkforceIntegration - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve a list of workforceIntegration objects.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<WorkforceIntegrationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of workforceIntegration objects.- 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 WorkforceIntegration body) Create a new workforceIntegration object.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull WorkforceIntegration body, @Nullable Consumer<WorkforceIntegrationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new workforceIntegration object.- 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
WorkforceIntegrationsRequestBuilder
-