Class ChannelItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.teams.item.channels.item.ChannelItemRequestBuilder
@Generated("com.microsoft.kiota")
public class ChannelItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the channels property of the microsoft.graph.team entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRetrieve the properties and relationships of a channel.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
ConstructorsConstructorDescriptionChannelItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChannelItemRequestBuilderand sets the default values.ChannelItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChannelItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the allMembers property of the microsoft.graph.channel entity.archive()Provides operations to call the archive method.Provides operations to call the completeMigration method.voiddelete()Delete the channel.voiddelete(Consumer<ChannelItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete the channel.Provides operations to call the doesUserHaveAccess method.Provides operations to manage the filesFolder property of the microsoft.graph.channel entity.get()Retrieve the properties and relationships of a channel.get(Consumer<ChannelItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of a channel.members()Provides operations to manage the members property of the microsoft.graph.channel entity.messages()Provides operations to manage the messages property of the microsoft.graph.channel entity.Update the properties of the specified channel.patch(Channel body, Consumer<ChannelItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of the specified channel.Provides operations to call the provisionEmail method.Provides operations to call the removeEmail method.Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity.tabs()Provides operations to manage the tabs property of the microsoft.graph.channel entity.com.microsoft.kiota.RequestInformationDelete the channel.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<ChannelItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete the channel.com.microsoft.kiota.RequestInformationRetrieve the properties and relationships of a channel.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ChannelItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of a channel.com.microsoft.kiota.RequestInformationUpdate the properties of the specified channel.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(Channel body, Consumer<ChannelItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of the specified channel.Provides operations to call the unarchive method.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ChannelItemRequestBuilder
public ChannelItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChannelItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ChannelItemRequestBuilder
public ChannelItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChannelItemRequestBuilderand 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
-
allMembers
Provides operations to manage the allMembers property of the microsoft.graph.channel entity.- Returns:
- a
AllMembersRequestBuilder
-
archive
Provides operations to call the archive method.- Returns:
- a
ArchiveRequestBuilder
-
completeMigration
Provides operations to call the completeMigration method.- Returns:
- a
CompleteMigrationRequestBuilder
-
doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName
@Nonnull public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName()Provides operations to call the doesUserHaveAccess method. -
filesFolder
Provides operations to manage the filesFolder property of the microsoft.graph.channel entity.- Returns:
- a
FilesFolderRequestBuilder
-
members
Provides operations to manage the members property of the microsoft.graph.channel entity.- Returns:
- a
MembersRequestBuilder
-
messages
Provides operations to manage the messages property of the microsoft.graph.channel entity.- Returns:
- a
MessagesRequestBuilder
-
provisionEmail
Provides operations to call the provisionEmail method.- Returns:
- a
ProvisionEmailRequestBuilder
-
removeEmail
Provides operations to call the removeEmail method.- Returns:
- a
RemoveEmailRequestBuilder
-
tabs
Provides operations to manage the tabs property of the microsoft.graph.channel entity.- Returns:
- a
TabsRequestBuilder
-
unarchive
Provides operations to call the unarchive method.- Returns:
- a
UnarchiveRequestBuilder
-
delete
public void delete()Delete the channel.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<ChannelItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete the channel.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information.- Returns:
- a
Channel - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public Channel get(@Nullable Consumer<ChannelItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Channel - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update the properties of the specified channel.- Parameters:
body- The request body- Returns:
- a
Channel - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public Channel patch(@Nonnull Channel body, @Nullable Consumer<ChannelItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of the specified channel.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Channel - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete the channel.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<ChannelItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete the channel.- 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()Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ChannelItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Channel body) Update the properties of the specified channel.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Channel body, @Nullable Consumer<ChannelItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of the specified channel.- 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
ChannelItemRequestBuilder
-