Class AttachmentBaseItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.todo.lists.item.tasks.item.attachments.item.AttachmentBaseItemRequestBuilder
@Generated("com.microsoft.kiota")
public class AttachmentBaseItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the attachments property of the microsoft.graph.todoTask entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classA collection of file attachments for the task.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
ConstructorsConstructorDescriptionAttachmentBaseItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAttachmentBaseItemRequestBuilderand sets the default values.AttachmentBaseItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAttachmentBaseItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Provides operations to manage the media for the user entity.voiddelete()Delete navigation property attachments for usersvoiddelete(Consumer<AttachmentBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property attachments for usersget()A collection of file attachments for the task.get(Consumer<AttachmentBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) A collection of file attachments for the task.com.microsoft.kiota.RequestInformationDelete navigation property attachments for userscom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<AttachmentBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property attachments for userscom.microsoft.kiota.RequestInformationA collection of file attachments for the task.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<AttachmentBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) A collection of file attachments for the task.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
AttachmentBaseItemRequestBuilder
public AttachmentBaseItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAttachmentBaseItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
AttachmentBaseItemRequestBuilder
public AttachmentBaseItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAttachmentBaseItemRequestBuilderand 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
-
content
Provides operations to manage the media for the user entity.- Returns:
- a
ContentRequestBuilder
-
delete
public void delete()Delete navigation property attachments for users- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<AttachmentBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property attachments for users- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
A collection of file attachments for the task.- Returns:
- a
AttachmentBase - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public AttachmentBase get(@Nullable Consumer<AttachmentBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) A collection of file attachments for the task.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
AttachmentBase - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property attachments for users- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<AttachmentBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property attachments for users- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()A collection of file attachments for the task.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<AttachmentBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) A collection of file attachments for the task.- Parameters:
requestConfiguration- 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
AttachmentBaseItemRequestBuilder
-