Class MessagesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.admin.serviceannouncement.messages.MessagesRequestBuilder
@Generated("com.microsoft.kiota")
public class MessagesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the messages property of the microsoft.graph.serviceAnnouncement entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve the serviceUpdateMessage resources from the messages navigation property.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
ConstructorsConstructorDescriptionMessagesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMessagesRequestBuilderand sets the default values.MessagesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMessagesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionarchive()Provides operations to call the archive method.byServiceUpdateMessageId(String serviceUpdateMessageId) Provides operations to manage the messages property of the microsoft.graph.serviceAnnouncement entity.count()Provides operations to count the resources in the collection.favorite()Provides operations to call the favorite method.get()Retrieve the serviceUpdateMessage resources from the messages navigation property.get(Consumer<MessagesRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the serviceUpdateMessage resources from the messages navigation property.markRead()Provides operations to call the markRead method.Provides operations to call the markUnread method.post(ServiceUpdateMessage body) Create new navigation property to messages for adminpost(ServiceUpdateMessage body, Consumer<MessagesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to messages for admincom.microsoft.kiota.RequestInformationRetrieve the serviceUpdateMessage resources from the messages navigation property.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<MessagesRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the serviceUpdateMessage resources from the messages navigation property.com.microsoft.kiota.RequestInformationCreate new navigation property to messages for admincom.microsoft.kiota.RequestInformationtoPostRequestInformation(ServiceUpdateMessage body, Consumer<MessagesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to messages for adminProvides operations to call the unarchive method.Provides operations to call the unfavorite method.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
MessagesRequestBuilder
public MessagesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMessagesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
MessagesRequestBuilder
public MessagesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMessagesRequestBuilderand 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
-
archive
Provides operations to call the archive method.- Returns:
- a
ArchiveRequestBuilder
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
favorite
Provides operations to call the favorite method.- Returns:
- a
FavoriteRequestBuilder
-
markRead
Provides operations to call the markRead method.- Returns:
- a
MarkReadRequestBuilder
-
markUnread
Provides operations to call the markUnread method.- Returns:
- a
MarkUnreadRequestBuilder
-
unarchive
Provides operations to call the unarchive method.- Returns:
- a
UnarchiveRequestBuilder
-
unfavorite
Provides operations to call the unfavorite method.- Returns:
- a
UnfavoriteRequestBuilder
-
byServiceUpdateMessageId
@Nonnull public ServiceUpdateMessageItemRequestBuilder byServiceUpdateMessageId(@Nonnull String serviceUpdateMessageId) Provides operations to manage the messages property of the microsoft.graph.serviceAnnouncement entity.- Parameters:
serviceUpdateMessageId- The unique identifier of serviceUpdateMessage- Returns:
- a
ServiceUpdateMessageItemRequestBuilder
-
get
Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant.- Returns:
- a
ServiceUpdateMessageCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public ServiceUpdateMessageCollectionResponse get(@Nullable Consumer<MessagesRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ServiceUpdateMessageCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create new navigation property to messages for admin- Parameters:
body- The request body- Returns:
- a
ServiceUpdateMessage - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public ServiceUpdateMessage post(@Nonnull ServiceUpdateMessage body, @Nullable Consumer<MessagesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to messages for admin- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ServiceUpdateMessage - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<MessagesRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant.- 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 ServiceUpdateMessage body) Create new navigation property to messages for admin- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ServiceUpdateMessage body, @Nullable Consumer<MessagesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to messages for admin- 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
MessagesRequestBuilder
-