Class TelecomExpenseManagementPartnersRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.devicemanagement.telecomexpensemanagementpartners.TelecomExpenseManagementPartnersRequestBuilder
@Generated("com.microsoft.kiota")
public class TelecomExpenseManagementPartnersRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the telecomExpenseManagementPartners property of the microsoft.graph.deviceManagement entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassList properties and relationships of the telecomExpenseManagementPartner 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
ConstructorsConstructorDescriptionTelecomExpenseManagementPartnersRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTelecomExpenseManagementPartnersRequestBuilderand sets the default values.TelecomExpenseManagementPartnersRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTelecomExpenseManagementPartnersRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyTelecomExpenseManagementPartnerId(String telecomExpenseManagementPartnerId) Provides operations to manage the telecomExpenseManagementPartners property of the microsoft.graph.deviceManagement entity.count()Provides operations to count the resources in the collection.get()List properties and relationships of the telecomExpenseManagementPartner objects.get(Consumer<TelecomExpenseManagementPartnersRequestBuilder.GetRequestConfiguration> requestConfiguration) List properties and relationships of the telecomExpenseManagementPartner objects.Create a new telecomExpenseManagementPartner object.post(TelecomExpenseManagementPartner body, Consumer<TelecomExpenseManagementPartnersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new telecomExpenseManagementPartner object.com.microsoft.kiota.RequestInformationList properties and relationships of the telecomExpenseManagementPartner objects.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<TelecomExpenseManagementPartnersRequestBuilder.GetRequestConfiguration> requestConfiguration) List properties and relationships of the telecomExpenseManagementPartner objects.com.microsoft.kiota.RequestInformationCreate a new telecomExpenseManagementPartner object.com.microsoft.kiota.RequestInformationtoPostRequestInformation(TelecomExpenseManagementPartner body, Consumer<TelecomExpenseManagementPartnersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new telecomExpenseManagementPartner object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
TelecomExpenseManagementPartnersRequestBuilder
public TelecomExpenseManagementPartnersRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTelecomExpenseManagementPartnersRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
TelecomExpenseManagementPartnersRequestBuilder
public TelecomExpenseManagementPartnersRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTelecomExpenseManagementPartnersRequestBuilderand 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
-
byTelecomExpenseManagementPartnerId
@Nonnull public TelecomExpenseManagementPartnerItemRequestBuilder byTelecomExpenseManagementPartnerId(@Nonnull String telecomExpenseManagementPartnerId) Provides operations to manage the telecomExpenseManagementPartners property of the microsoft.graph.deviceManagement entity.- Parameters:
telecomExpenseManagementPartnerId- The unique identifier of telecomExpenseManagementPartner- Returns:
- a
TelecomExpenseManagementPartnerItemRequestBuilder
-
get
List properties and relationships of the telecomExpenseManagementPartner objects.- Returns:
- a
TelecomExpenseManagementPartnerCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public TelecomExpenseManagementPartnerCollectionResponse get(@Nullable Consumer<TelecomExpenseManagementPartnersRequestBuilder.GetRequestConfiguration> requestConfiguration) List properties and relationships of the telecomExpenseManagementPartner objects.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
TelecomExpenseManagementPartnerCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public TelecomExpenseManagementPartner post(@Nonnull TelecomExpenseManagementPartner body) Create a new telecomExpenseManagementPartner object.- Parameters:
body- The request body- Returns:
- a
TelecomExpenseManagementPartner - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public TelecomExpenseManagementPartner post(@Nonnull TelecomExpenseManagementPartner body, @Nullable Consumer<TelecomExpenseManagementPartnersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new telecomExpenseManagementPartner object.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
TelecomExpenseManagementPartner - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()List properties and relationships of the telecomExpenseManagementPartner objects.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<TelecomExpenseManagementPartnersRequestBuilder.GetRequestConfiguration> requestConfiguration) List properties and relationships of the telecomExpenseManagementPartner 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 TelecomExpenseManagementPartner body) Create a new telecomExpenseManagementPartner object.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull TelecomExpenseManagementPartner body, @Nullable Consumer<TelecomExpenseManagementPartnersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new telecomExpenseManagementPartner 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
TelecomExpenseManagementPartnersRequestBuilder
-