|
| 1 | +package com.microsoft.graph.communications.getallonlinemeetingmessages; |
| 2 | + |
| 3 | +import com.microsoft.graph.models.odataerrors.ODataError; |
| 4 | +import com.microsoft.kiota.BaseRequestBuilder; |
| 5 | +import com.microsoft.kiota.BaseRequestConfiguration; |
| 6 | +import com.microsoft.kiota.HttpMethod; |
| 7 | +import com.microsoft.kiota.QueryParameters; |
| 8 | +import com.microsoft.kiota.RequestAdapter; |
| 9 | +import com.microsoft.kiota.RequestInformation; |
| 10 | +import com.microsoft.kiota.RequestOption; |
| 11 | +import com.microsoft.kiota.serialization.Parsable; |
| 12 | +import com.microsoft.kiota.serialization.ParsableFactory; |
| 13 | +import java.util.Collection; |
| 14 | +import java.util.HashMap; |
| 15 | +import java.util.Map; |
| 16 | +import java.util.Objects; |
| 17 | +/** |
| 18 | + * Provides operations to call the getAllOnlineMeetingMessages method. |
| 19 | + */ |
| 20 | +@jakarta.annotation.Generated("com.microsoft.kiota") |
| 21 | +public class GetAllOnlineMeetingMessagesRequestBuilder extends BaseRequestBuilder { |
| 22 | + /** |
| 23 | + * Instantiates a new {@link GetAllOnlineMeetingMessagesRequestBuilder} and sets the default values. |
| 24 | + * @param pathParameters Path parameters for the request |
| 25 | + * @param requestAdapter The request adapter to use to execute the requests. |
| 26 | + */ |
| 27 | + public GetAllOnlineMeetingMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { |
| 28 | + super(requestAdapter, "{+baseurl}/communications/getAllOnlineMeetingMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); |
| 29 | + } |
| 30 | + /** |
| 31 | + * Instantiates a new {@link GetAllOnlineMeetingMessagesRequestBuilder} and sets the default values. |
| 32 | + * @param rawUrl The raw URL to use for the request builder. |
| 33 | + * @param requestAdapter The request adapter to use to execute the requests. |
| 34 | + */ |
| 35 | + public GetAllOnlineMeetingMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { |
| 36 | + super(requestAdapter, "{+baseurl}/communications/getAllOnlineMeetingMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); |
| 37 | + } |
| 38 | + /** |
| 39 | + * Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata. |
| 40 | + * @return a {@link GetAllOnlineMeetingMessagesGetResponse} |
| 41 | + * @throws ODataError When receiving a 4XX or 5XX status code |
| 42 | + * @see <a href="https://learn.microsoft.com/graph/api/cloudcommunications-getallonlinemeetingmessages?view=graph-rest-1.0">Find more info here</a> |
| 43 | + */ |
| 44 | + @jakarta.annotation.Nullable |
| 45 | + public GetAllOnlineMeetingMessagesGetResponse get() { |
| 46 | + return get(null); |
| 47 | + } |
| 48 | + /** |
| 49 | + * Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata. |
| 50 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 51 | + * @return a {@link GetAllOnlineMeetingMessagesGetResponse} |
| 52 | + * @throws ODataError When receiving a 4XX or 5XX status code |
| 53 | + * @see <a href="https://learn.microsoft.com/graph/api/cloudcommunications-getallonlinemeetingmessages?view=graph-rest-1.0">Find more info here</a> |
| 54 | + */ |
| 55 | + @jakarta.annotation.Nullable |
| 56 | + public GetAllOnlineMeetingMessagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) { |
| 57 | + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); |
| 58 | + final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>(); |
| 59 | + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); |
| 60 | + return this.requestAdapter.send(requestInfo, errorMapping, GetAllOnlineMeetingMessagesGetResponse::createFromDiscriminatorValue); |
| 61 | + } |
| 62 | + /** |
| 63 | + * Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata. |
| 64 | + * @return a {@link RequestInformation} |
| 65 | + */ |
| 66 | + @jakarta.annotation.Nonnull |
| 67 | + public RequestInformation toGetRequestInformation() { |
| 68 | + return toGetRequestInformation(null); |
| 69 | + } |
| 70 | + /** |
| 71 | + * Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata. |
| 72 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 73 | + * @return a {@link RequestInformation} |
| 74 | + */ |
| 75 | + @jakarta.annotation.Nonnull |
| 76 | + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) { |
| 77 | + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); |
| 78 | + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); |
| 79 | + requestInfo.headers.tryAdd("Accept", "application/json"); |
| 80 | + return requestInfo; |
| 81 | + } |
| 82 | + /** |
| 83 | + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. |
| 84 | + * @param rawUrl The raw URL to use for the request builder. |
| 85 | + * @return a {@link GetAllOnlineMeetingMessagesRequestBuilder} |
| 86 | + */ |
| 87 | + @jakarta.annotation.Nonnull |
| 88 | + public GetAllOnlineMeetingMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { |
| 89 | + Objects.requireNonNull(rawUrl); |
| 90 | + return new GetAllOnlineMeetingMessagesRequestBuilder(rawUrl, requestAdapter); |
| 91 | + } |
| 92 | + /** |
| 93 | + * Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata. |
| 94 | + */ |
| 95 | + @jakarta.annotation.Generated("com.microsoft.kiota") |
| 96 | + public class GetQueryParameters implements QueryParameters { |
| 97 | + /** |
| 98 | + * Include count of items |
| 99 | + */ |
| 100 | + @jakarta.annotation.Nullable |
| 101 | + public Boolean count; |
| 102 | + /** |
| 103 | + * Expand related entities |
| 104 | + */ |
| 105 | + @jakarta.annotation.Nullable |
| 106 | + public String[] expand; |
| 107 | + /** |
| 108 | + * Filter items by property values |
| 109 | + */ |
| 110 | + @jakarta.annotation.Nullable |
| 111 | + public String filter; |
| 112 | + /** |
| 113 | + * Order items by property values |
| 114 | + */ |
| 115 | + @jakarta.annotation.Nullable |
| 116 | + public String[] orderby; |
| 117 | + /** |
| 118 | + * Search items by search phrases |
| 119 | + */ |
| 120 | + @jakarta.annotation.Nullable |
| 121 | + public String search; |
| 122 | + /** |
| 123 | + * Select properties to be returned |
| 124 | + */ |
| 125 | + @jakarta.annotation.Nullable |
| 126 | + public String[] select; |
| 127 | + /** |
| 128 | + * Skip the first n items |
| 129 | + */ |
| 130 | + @jakarta.annotation.Nullable |
| 131 | + public Integer skip; |
| 132 | + /** |
| 133 | + * Show only the first n items |
| 134 | + */ |
| 135 | + @jakarta.annotation.Nullable |
| 136 | + public Integer top; |
| 137 | + /** |
| 138 | + * Extracts the query parameters into a map for the URI template parsing. |
| 139 | + * @return a {@link Map<String, Object>} |
| 140 | + */ |
| 141 | + @jakarta.annotation.Nonnull |
| 142 | + public Map<String, Object> toQueryParameters() { |
| 143 | + final Map<String, Object> allQueryParams = new HashMap(); |
| 144 | + allQueryParams.put("%24count", count); |
| 145 | + allQueryParams.put("%24filter", filter); |
| 146 | + allQueryParams.put("%24search", search); |
| 147 | + allQueryParams.put("%24skip", skip); |
| 148 | + allQueryParams.put("%24top", top); |
| 149 | + allQueryParams.put("%24expand", expand); |
| 150 | + allQueryParams.put("%24orderby", orderby); |
| 151 | + allQueryParams.put("%24select", select); |
| 152 | + return allQueryParams; |
| 153 | + } |
| 154 | + } |
| 155 | + /** |
| 156 | + * Configuration for the request such as headers, query parameters, and middleware options. |
| 157 | + */ |
| 158 | + @jakarta.annotation.Generated("com.microsoft.kiota") |
| 159 | + public class GetRequestConfiguration extends BaseRequestConfiguration { |
| 160 | + /** |
| 161 | + * Request query parameters |
| 162 | + */ |
| 163 | + @jakarta.annotation.Nullable |
| 164 | + public GetQueryParameters queryParameters = new GetQueryParameters(); |
| 165 | + } |
| 166 | +} |
0 commit comments