diff --git a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/acquireaccesstoken/AcquireAccessTokenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/acquireaccesstoken/AcquireAccessTokenRequestBuilder.java
index 4cc258fe9b7..945482ab6fc 100644
--- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/acquireaccesstoken/AcquireAccessTokenRequestBuilder.java
+++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/acquireaccesstoken/AcquireAccessTokenRequestBuilder.java
@@ -38,8 +38,11 @@ public AcquireAccessTokenRequestBuilder(@jakarta.annotation.Nonnull final String
* Acquire an OAuth Access token to authorize the Microsoft Entra provisioning service to provision users into an application.
* @param body The request body
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * This action acquires an access token via Oauth Code Grant Flow. Code Grant will be completely deprecated so this action will be obsolete. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
* @see Find more info here
*/
+ @Deprecated
public void post(@jakarta.annotation.Nonnull final AcquireAccessTokenPostRequestBody body) {
post(body, null);
}
@@ -48,8 +51,11 @@ public void post(@jakarta.annotation.Nonnull final AcquireAccessTokenPostRequest
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * This action acquires an access token via Oauth Code Grant Flow. Code Grant will be completely deprecated so this action will be obsolete. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
* @see Find more info here
*/
+ @Deprecated
public void post(@jakarta.annotation.Nonnull final AcquireAccessTokenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
@@ -61,8 +67,11 @@ public void post(@jakarta.annotation.Nonnull final AcquireAccessTokenPostRequest
* Acquire an OAuth Access token to authorize the Microsoft Entra provisioning service to provision users into an application.
* @param body The request body
* @return a {@link RequestInformation}
+ * @deprecated
+ * This action acquires an access token via Oauth Code Grant Flow. Code Grant will be completely deprecated so this action will be obsolete. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcquireAccessTokenPostRequestBody body) {
return toPostRequestInformation(body, null);
}
@@ -71,8 +80,11 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
+ * @deprecated
+ * This action acquires an access token via Oauth Code Grant Flow. Code Grant will be completely deprecated so this action will be obsolete. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AcquireAccessTokenPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
@@ -85,8 +97,11 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link AcquireAccessTokenRequestBuilder}
+ * @deprecated
+ * This action acquires an access token via Oauth Code Grant Flow. Code Grant will be completely deprecated so this action will be obsolete. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public AcquireAccessTokenRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new AcquireAccessTokenRequestBuilder(rawUrl, requestAdapter);
diff --git a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/jobs/item/validatecredentials/ValidateCredentialsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/jobs/item/validatecredentials/ValidateCredentialsRequestBuilder.java
index 56a6b74af88..aaa622ad787 100644
--- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/jobs/item/validatecredentials/ValidateCredentialsRequestBuilder.java
+++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/jobs/item/validatecredentials/ValidateCredentialsRequestBuilder.java
@@ -38,8 +38,11 @@ public ValidateCredentialsRequestBuilder(@jakarta.annotation.Nonnull final Strin
* Validate that the credentials are valid in the tenant.
* @param body The request body
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
* @see Find more info here
*/
+ @Deprecated
public void post(@jakarta.annotation.Nonnull final ValidateCredentialsPostRequestBody body) {
post(body, null);
}
@@ -48,8 +51,11 @@ public void post(@jakarta.annotation.Nonnull final ValidateCredentialsPostReques
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
* @see Find more info here
*/
+ @Deprecated
public void post(@jakarta.annotation.Nonnull final ValidateCredentialsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
@@ -61,8 +67,11 @@ public void post(@jakarta.annotation.Nonnull final ValidateCredentialsPostReques
* Validate that the credentials are valid in the tenant.
* @param body The request body
* @return a {@link RequestInformation}
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ValidateCredentialsPostRequestBody body) {
return toPostRequestInformation(body, null);
}
@@ -71,8 +80,11 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ValidateCredentialsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
@@ -85,8 +97,11 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link ValidateCredentialsRequestBuilder}
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public ValidateCredentialsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new ValidateCredentialsRequestBuilder(rawUrl, requestAdapter);
diff --git a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/jobs/validatecredentials/ValidateCredentialsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/jobs/validatecredentials/ValidateCredentialsRequestBuilder.java
index d65a63459b7..64517bba759 100644
--- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/jobs/validatecredentials/ValidateCredentialsRequestBuilder.java
+++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/jobs/validatecredentials/ValidateCredentialsRequestBuilder.java
@@ -38,7 +38,10 @@ public ValidateCredentialsRequestBuilder(@jakarta.annotation.Nonnull final Strin
* Invoke action validateCredentials
* @param body The request body
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
+ @Deprecated
public void post(@jakarta.annotation.Nonnull final ValidateCredentialsPostRequestBody body) {
post(body, null);
}
@@ -47,7 +50,10 @@ public void post(@jakarta.annotation.Nonnull final ValidateCredentialsPostReques
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
+ @Deprecated
public void post(@jakarta.annotation.Nonnull final ValidateCredentialsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
@@ -59,8 +65,11 @@ public void post(@jakarta.annotation.Nonnull final ValidateCredentialsPostReques
* Invoke action validateCredentials
* @param body The request body
* @return a {@link RequestInformation}
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ValidateCredentialsPostRequestBody body) {
return toPostRequestInformation(body, null);
}
@@ -69,8 +78,11 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ValidateCredentialsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
@@ -83,8 +95,11 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link ValidateCredentialsRequestBuilder}
+ * @deprecated
+ * Use validateConnectivity instead. This action will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public ValidateCredentialsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new ValidateCredentialsRequestBuilder(rawUrl, requestAdapter);
diff --git a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/secrets/SecretsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/secrets/SecretsRequestBuilder.java
index 7bf00644ec9..2f8235dc287 100644
--- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/secrets/SecretsRequestBuilder.java
+++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/secrets/SecretsRequestBuilder.java
@@ -22,7 +22,10 @@ public class SecretsRequestBuilder extends BaseRequestBuilder {
/**
* Provides operations to count the resources in the collection.
* @return a {@link CountRequestBuilder}
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
+ @Deprecated
@jakarta.annotation.Nonnull
public CountRequestBuilder count() {
return new CountRequestBuilder(pathParameters, requestAdapter);
@@ -48,8 +51,11 @@ public SecretsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j
* @param body The request body
* @return a {@link SecretsPutResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nullable
+ @Deprecated
public SecretsPutResponse put(@jakarta.annotation.Nonnull final SecretsPutRequestBody body) {
return put(body, null);
}
@@ -59,8 +65,11 @@ public SecretsPutResponse put(@jakarta.annotation.Nonnull final SecretsPutReques
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link SecretsPutResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nullable
+ @Deprecated
public SecretsPutResponse put(@jakarta.annotation.Nonnull final SecretsPutRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration);
@@ -72,8 +81,11 @@ public SecretsPutResponse put(@jakarta.annotation.Nonnull final SecretsPutReques
* Update property secrets value.
* @param body The request body
* @return a {@link RequestInformation}
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final SecretsPutRequestBody body) {
return toPutRequestInformation(body, null);
}
@@ -82,8 +94,11 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final SecretsPutRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters);
@@ -96,8 +111,11 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link SecretsRequestBuilder}
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public SecretsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new SecretsRequestBuilder(rawUrl, requestAdapter);
diff --git a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/secrets/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/secrets/count/CountRequestBuilder.java
index b2cdbdfca9c..5ae27b3d447 100644
--- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/secrets/count/CountRequestBuilder.java
+++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/synchronization/secrets/count/CountRequestBuilder.java
@@ -39,8 +39,11 @@ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak
* Get the number of the resource
* @return a {@link Integer}
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nullable
+ @Deprecated
public Integer get() {
return get(null);
}
@@ -49,8 +52,11 @@ public Integer get() {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link Integer}
* @throws ODataError When receiving a 4XX or 5XX status code
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nullable
+ @Deprecated
public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
final HashMap> errorMapping = new HashMap>();
@@ -60,8 +66,11 @@ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consume
/**
* Get the number of the resource
* @return a {@link RequestInformation}
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
@@ -69,8 +78,11 @@ public RequestInformation toGetRequestInformation() {
* Get the number of the resource
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
@@ -81,8 +93,11 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link CountRequestBuilder}
+ * @deprecated
+ * Use connectivityParameters for oauth flows and scim endpoint connectivity. Use SynchronizationJobSettings for job-specific settings This property will be removed. as of 2026-02/SynchronizationSecret_Deprecation on 2026-02-06 and will be removed 2027-07-06
*/
@jakarta.annotation.Nonnull
+ @Deprecated
public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new CountRequestBuilder(rawUrl, requestAdapter);
diff --git a/src/main/java/com/microsoft/graph/beta/generated/applicationtemplates/ApplicationTemplatesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applicationtemplates/ApplicationTemplatesRequestBuilder.java
index 6dc23ec03ec..2d42b7396c7 100644
--- a/src/main/java/com/microsoft/graph/beta/generated/applicationtemplates/ApplicationTemplatesRequestBuilder.java
+++ b/src/main/java/com/microsoft/graph/beta/generated/applicationtemplates/ApplicationTemplatesRequestBuilder.java
@@ -59,7 +59,7 @@ public ApplicationTemplatesRequestBuilder(@jakarta.annotation.Nonnull final Stri
super(requestAdapter, "{+baseurl}/applicationTemplates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
}
/**
- * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license.
+ * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license. If a risk property is included in the request without appropriate license, a @microsoft.graph.licenseRequired OData annotation is returned in the response.
* @return a {@link ApplicationTemplateCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see Find more info here
@@ -69,7 +69,7 @@ public ApplicationTemplateCollectionResponse get() {
return get(null);
}
/**
- * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license.
+ * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license. If a risk property is included in the request without appropriate license, a @microsoft.graph.licenseRequired OData annotation is returned in the response.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link ApplicationTemplateCollectionResponse}
* @throws ODataError When receiving a 4XX or 5XX status code
@@ -83,7 +83,7 @@ public ApplicationTemplateCollectionResponse get(@jakarta.annotation.Nullable fi
return this.requestAdapter.send(requestInfo, errorMapping, ApplicationTemplateCollectionResponse::createFromDiscriminatorValue);
}
/**
- * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license.
+ * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license. If a risk property is included in the request without appropriate license, a @microsoft.graph.licenseRequired OData annotation is returned in the response.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
@@ -91,7 +91,7 @@ public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
- * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license.
+ * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license. If a risk property is included in the request without appropriate license, a @microsoft.graph.licenseRequired OData annotation is returned in the response.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
@@ -113,7 +113,7 @@ public ApplicationTemplatesRequestBuilder withUrl(@jakarta.annotation.Nonnull fi
return new ApplicationTemplatesRequestBuilder(rawUrl, requestAdapter);
}
/**
- * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license.
+ * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. Details about optional risk properties such as riskScore and riskFactors are available with either the Microsoft Entra Suite or Microsoft Entra Internet Access license. If a risk property is included in the request without appropriate license, a @microsoft.graph.licenseRequired OData annotation is returned in the response.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/ChatItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/ChatItemRequestBuilder.java
index cb9c8abc2f6..5ad52a3e258 100644
--- a/src/main/java/com/microsoft/graph/beta/generated/chats/item/ChatItemRequestBuilder.java
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/ChatItemRequestBuilder.java
@@ -15,6 +15,7 @@
import com.microsoft.graph.beta.chats.item.sendactivitynotification.SendActivityNotificationRequestBuilder;
import com.microsoft.graph.beta.chats.item.startmigration.StartMigrationRequestBuilder;
import com.microsoft.graph.beta.chats.item.tabs.TabsRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.TargetedMessagesRequestBuilder;
import com.microsoft.graph.beta.chats.item.unhideforuser.UnhideForUserRequestBuilder;
import com.microsoft.graph.beta.models.Chat;
import com.microsoft.graph.beta.models.odataerrors.ODataError;
@@ -156,6 +157,14 @@ public StartMigrationRequestBuilder startMigration() {
public TabsRequestBuilder tabs() {
return new TabsRequestBuilder(pathParameters, requestAdapter);
}
+ /**
+ * Provides operations to manage the targetedMessages property of the microsoft.graph.chat entity.
+ * @return a {@link TargetedMessagesRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public TargetedMessagesRequestBuilder targetedMessages() {
+ return new TargetedMessagesRequestBuilder(pathParameters, requestAdapter);
+ }
/**
* Provides operations to call the unhideForUser method.
* @return a {@link UnhideForUserRequestBuilder}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/TargetedMessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/TargetedMessagesRequestBuilder.java
new file mode 100644
index 00000000000..a10205b99a9
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/TargetedMessagesRequestBuilder.java
@@ -0,0 +1,243 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages;
+
+import com.microsoft.graph.beta.chats.item.targetedmessages.count.CountRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.TargetedChatMessageItemRequestBuilder;
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.graph.beta.models.TargetedChatMessage;
+import com.microsoft.graph.beta.models.TargetedChatMessageCollectionResponse;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the targetedMessages property of the microsoft.graph.chat entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class TargetedMessagesRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the targetedMessages property of the microsoft.graph.chat entity.
+ * @param targetedChatMessageId The unique identifier of targetedChatMessage
+ * @return a {@link TargetedChatMessageItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public TargetedChatMessageItemRequestBuilder byTargetedChatMessageId(@jakarta.annotation.Nonnull final String targetedChatMessageId) {
+ Objects.requireNonNull(targetedChatMessageId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("targetedChatMessage%2Did", targetedChatMessageId);
+ return new TargetedChatMessageItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link TargetedMessagesRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public TargetedMessagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link TargetedMessagesRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public TargetedMessagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Get targetedMessages from chats
+ * @return a {@link TargetedChatMessageCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public TargetedChatMessageCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Get targetedMessages from chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link TargetedChatMessageCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public TargetedChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, TargetedChatMessageCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create new navigation property to targetedMessages for chats
+ * @param body The request body
+ * @return a {@link TargetedChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public TargetedChatMessage post(@jakarta.annotation.Nonnull final TargetedChatMessage body) {
+ return post(body, null);
+ }
+ /**
+ * Create new navigation property to targetedMessages for chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link TargetedChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public TargetedChatMessage post(@jakarta.annotation.Nonnull final TargetedChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, TargetedChatMessage::createFromDiscriminatorValue);
+ }
+ /**
+ * Get targetedMessages from chats
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get targetedMessages from chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create new navigation property to targetedMessages for chats
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TargetedChatMessage body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create new navigation property to targetedMessages for chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final TargetedChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link TargetedMessagesRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public TargetedMessagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new TargetedMessagesRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get targetedMessages from chats
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/count/CountRequestBuilder.java
new file mode 100644
index 00000000000..2a0bdb9079d
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/count/CountRequestBuilder.java
@@ -0,0 +1,128 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.count;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to count the resources in the collection.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class CountRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/$count{?%24filter,%24search}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/$count{?%24filter,%24search}", rawUrl);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get() {
+ return get(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new CountRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the number of the resource
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/TargetedChatMessageItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/TargetedChatMessageItemRequestBuilder.java
new file mode 100644
index 00000000000..4403ca64609
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/TargetedChatMessageItemRequestBuilder.java
@@ -0,0 +1,246 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item;
+
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.hostedcontents.HostedContentsRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.RepliesRequestBuilder;
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.graph.beta.models.TargetedChatMessage;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the targetedMessages property of the microsoft.graph.chat entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class TargetedChatMessageItemRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
+ * @return a {@link HostedContentsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public HostedContentsRequestBuilder hostedContents() {
+ return new HostedContentsRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.
+ * @return a {@link RepliesRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public RepliesRequestBuilder replies() {
+ return new RepliesRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link TargetedChatMessageItemRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public TargetedChatMessageItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link TargetedChatMessageItemRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public TargetedChatMessageItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property targetedMessages for chats
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property targetedMessages for chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Get targetedMessages from chats
+ * @return a {@link TargetedChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public TargetedChatMessage get() {
+ return get(null);
+ }
+ /**
+ * Get targetedMessages from chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link TargetedChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public TargetedChatMessage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, TargetedChatMessage::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property targetedMessages in chats
+ * @param body The request body
+ * @return a {@link TargetedChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public TargetedChatMessage patch(@jakarta.annotation.Nonnull final TargetedChatMessage body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property targetedMessages in chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link TargetedChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public TargetedChatMessage patch(@jakarta.annotation.Nonnull final TargetedChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, TargetedChatMessage::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property targetedMessages for chats
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property targetedMessages for chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Get targetedMessages from chats
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get targetedMessages from chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property targetedMessages in chats
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final TargetedChatMessage body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property targetedMessages in chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final TargetedChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link TargetedChatMessageItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public TargetedChatMessageItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new TargetedChatMessageItemRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Get targetedMessages from chats
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/HostedContentsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/HostedContentsRequestBuilder.java
new file mode 100644
index 00000000000..98607cd7c22
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/HostedContentsRequestBuilder.java
@@ -0,0 +1,243 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.hostedcontents;
+
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.hostedcontents.count.CountRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.hostedcontents.item.ChatMessageHostedContentItemRequestBuilder;
+import com.microsoft.graph.beta.models.ChatMessageHostedContent;
+import com.microsoft.graph.beta.models.ChatMessageHostedContentCollectionResponse;
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class HostedContentsRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
+ * @param chatMessageHostedContentId The unique identifier of chatMessageHostedContent
+ * @return a {@link ChatMessageHostedContentItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ChatMessageHostedContentItemRequestBuilder byChatMessageHostedContentId(@jakarta.annotation.Nonnull final String chatMessageHostedContentId) {
+ Objects.requireNonNull(chatMessageHostedContentId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("chatMessageHostedContent%2Did", chatMessageHostedContentId);
+ return new ChatMessageHostedContentItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link HostedContentsRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public HostedContentsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link HostedContentsRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public HostedContentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @return a {@link ChatMessageHostedContentCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContentCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessageHostedContentCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContentCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageHostedContentCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create new navigation property to hostedContents for chats
+ * @param body The request body
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent post(@jakarta.annotation.Nonnull final ChatMessageHostedContent body) {
+ return post(body, null);
+ }
+ /**
+ * Create new navigation property to hostedContents for chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent post(@jakarta.annotation.Nonnull final ChatMessageHostedContent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageHostedContent::createFromDiscriminatorValue);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create new navigation property to hostedContents for chats
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChatMessageHostedContent body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create new navigation property to hostedContents for chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChatMessageHostedContent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link HostedContentsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public HostedContentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new HostedContentsRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/count/CountRequestBuilder.java
new file mode 100644
index 00000000000..1a4620c10d2
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/count/CountRequestBuilder.java
@@ -0,0 +1,128 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.hostedcontents.count;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to count the resources in the collection.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class CountRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/hostedContents/$count{?%24filter,%24search}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/hostedContents/$count{?%24filter,%24search}", rawUrl);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get() {
+ return get(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new CountRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the number of the resource
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/item/ChatMessageHostedContentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/item/ChatMessageHostedContentItemRequestBuilder.java
new file mode 100644
index 00000000000..4916046e5ba
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/item/ChatMessageHostedContentItemRequestBuilder.java
@@ -0,0 +1,237 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.hostedcontents.item;
+
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.hostedcontents.item.value.ContentRequestBuilder;
+import com.microsoft.graph.beta.models.ChatMessageHostedContent;
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ChatMessageHostedContentItemRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to manage the media for the chat entity.
+ * @return a {@link ContentRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ContentRequestBuilder content() {
+ return new ContentRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ChatMessageHostedContentItemRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ChatMessageHostedContentItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ChatMessageHostedContentItemRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ChatMessageHostedContentItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property hostedContents for chats
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property hostedContents for chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent get() {
+ return get(null);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageHostedContent::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property hostedContents in chats
+ * @param body The request body
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent patch(@jakarta.annotation.Nonnull final ChatMessageHostedContent body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property hostedContents in chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent patch(@jakarta.annotation.Nonnull final ChatMessageHostedContent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageHostedContent::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property hostedContents for chats
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property hostedContents for chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property hostedContents in chats
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ChatMessageHostedContent body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property hostedContents in chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ChatMessageHostedContent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ChatMessageHostedContentItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ChatMessageHostedContentItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ChatMessageHostedContentItemRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/item/value/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/item/value/ContentRequestBuilder.java
new file mode 100644
index 00000000000..4bacfdbd7a3
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/hostedcontents/item/value/ContentRequestBuilder.java
@@ -0,0 +1,195 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.hostedcontents.item.value;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.io.InputStream;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the media for the chat entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ContentRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link ContentRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ContentRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", rawUrl);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @return a {@link InputStream}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public InputStream get() {
+ return get(null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link InputStream}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param body Binary request body
+ * @return a {@link InputStream}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public InputStream put(@jakarta.annotation.Nonnull final InputStream body) {
+ return put(body, null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param body Binary request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link InputStream}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public InputStream put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json");
+ return requestInfo;
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param body Binary request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) {
+ return toPutRequestInformation(body, null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param body Binary request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PutRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setStreamContent(body, "application/octet-stream");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ContentRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ContentRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PutRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/RepliesRequestBuilder.java
new file mode 100644
index 00000000000..7d5e4f95445
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/RepliesRequestBuilder.java
@@ -0,0 +1,270 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies;
+
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.count.CountRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.delta.DeltaRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.forwardtochat.ForwardToChatRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.ChatMessageItemRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.replywithquote.ReplyWithQuoteRequestBuilder;
+import com.microsoft.graph.beta.models.ChatMessage;
+import com.microsoft.graph.beta.models.ChatMessageCollectionResponse;
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class RepliesRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to call the delta method.
+ * @return a {@link DeltaRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public DeltaRequestBuilder delta() {
+ return new DeltaRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to call the forwardToChat method.
+ * @return a {@link ForwardToChatRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ForwardToChatRequestBuilder forwardToChat() {
+ return new ForwardToChatRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to call the replyWithQuote method.
+ * @return a {@link ReplyWithQuoteRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ReplyWithQuoteRequestBuilder replyWithQuote() {
+ return new ReplyWithQuoteRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.
+ * @param chatMessageId The unique identifier of chatMessage
+ * @return a {@link ChatMessageItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ChatMessageItemRequestBuilder byChatMessageId(@jakarta.annotation.Nonnull final String chatMessageId) {
+ Objects.requireNonNull(chatMessageId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("chatMessage%2Did", chatMessageId);
+ return new ChatMessageItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link RepliesRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public RepliesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link RepliesRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public RepliesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ * @return a {@link ChatMessageCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessageCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create new navigation property to replies for chats
+ * @param body The request body
+ * @return a {@link ChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) {
+ return post(body, null);
+ }
+ /**
+ * Create new navigation property to replies for chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessage::createFromDiscriminatorValue);
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create new navigation property to replies for chats
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChatMessage body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create new navigation property to replies for chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link RepliesRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public RepliesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new RepliesRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/count/CountRequestBuilder.java
new file mode 100644
index 00000000000..e450a0e241d
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/count/CountRequestBuilder.java
@@ -0,0 +1,128 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.count;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to count the resources in the collection.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class CountRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/$count{?%24filter,%24search}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/$count{?%24filter,%24search}", rawUrl);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get() {
+ return get(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new CountRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the number of the resource
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/delta/DeltaGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/delta/DeltaGetResponse.java
new file mode 100644
index 00000000000..0e96152e5ad
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/delta/DeltaGetResponse.java
@@ -0,0 +1,63 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.delta;
+
+import com.microsoft.graph.beta.models.BaseDeltaFunctionResponse;
+import com.microsoft.graph.beta.models.ChatMessage;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParseNode;
+import com.microsoft.kiota.serialization.SerializationWriter;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class DeltaGetResponse extends BaseDeltaFunctionResponse implements Parsable {
+ /**
+ * Instantiates a new {@link DeltaGetResponse} and sets the default values.
+ */
+ public DeltaGetResponse() {
+ super();
+ }
+ /**
+ * Creates a new instance of the appropriate class based on discriminator value
+ * @param parseNode The parse node to use to read the discriminator value and create the object
+ * @return a {@link DeltaGetResponse}
+ */
+ @jakarta.annotation.Nonnull
+ public static DeltaGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
+ Objects.requireNonNull(parseNode);
+ return new DeltaGetResponse();
+ }
+ /**
+ * The deserialization information for the current model
+ * @return a {@link Map>}
+ */
+ @jakarta.annotation.Nonnull
+ public Map> getFieldDeserializers() {
+ final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
+ deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ChatMessage::createFromDiscriminatorValue)); });
+ return deserializerMap;
+ }
+ /**
+ * Gets the value property value. The value property
+ * @return a {@link java.util.List}
+ */
+ @jakarta.annotation.Nullable
+ public java.util.List getValue() {
+ return this.backingStore.get("value");
+ }
+ /**
+ * Serializes information the current object
+ * @param writer Serialization writer to use to serialize this model
+ */
+ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
+ Objects.requireNonNull(writer);
+ super.serialize(writer);
+ writer.writeCollectionOfObjectValues("value", this.getValue());
+ }
+ /**
+ * Sets the value property value. The value property
+ * @param value Value to set for the value property.
+ */
+ public void setValue(@jakarta.annotation.Nullable final java.util.List value) {
+ this.backingStore.set("value", value);
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/delta/DeltaRequestBuilder.java
new file mode 100644
index 00000000000..fe9b7085d1a
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/delta/DeltaRequestBuilder.java
@@ -0,0 +1,166 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.delta;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to call the delta method.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class DeltaRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link DeltaRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public DeltaRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link DeltaRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public DeltaRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can obtain new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
+ * @return a {@link DeltaGetResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public DeltaGetResponse get() {
+ return get(null);
+ }
+ /**
+ * Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can obtain new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link DeltaGetResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public DeltaGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, DeltaGetResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can obtain new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can obtain new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link DeltaRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public DeltaRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new DeltaRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can obtain new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/forwardtochat/ForwardToChatPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/forwardtochat/ForwardToChatPostRequestBody.java
new file mode 100644
index 00000000000..f1cc6795547
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/forwardtochat/ForwardToChatPostRequestBody.java
@@ -0,0 +1,142 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.forwardtochat;
+
+import com.microsoft.graph.beta.models.ChatMessage;
+import com.microsoft.kiota.serialization.AdditionalDataHolder;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParseNode;
+import com.microsoft.kiota.serialization.SerializationWriter;
+import com.microsoft.kiota.store.BackedModel;
+import com.microsoft.kiota.store.BackingStore;
+import com.microsoft.kiota.store.BackingStoreFactorySingleton;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ForwardToChatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
+ /**
+ * Stores model information.
+ */
+ @jakarta.annotation.Nonnull
+ protected BackingStore backingStore;
+ /**
+ * Instantiates a new {@link ForwardToChatPostRequestBody} and sets the default values.
+ */
+ public ForwardToChatPostRequestBody() {
+ this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
+ this.setAdditionalData(new HashMap<>());
+ }
+ /**
+ * Creates a new instance of the appropriate class based on discriminator value
+ * @param parseNode The parse node to use to read the discriminator value and create the object
+ * @return a {@link ForwardToChatPostRequestBody}
+ */
+ @jakarta.annotation.Nonnull
+ public static ForwardToChatPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
+ Objects.requireNonNull(parseNode);
+ return new ForwardToChatPostRequestBody();
+ }
+ /**
+ * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map getAdditionalData() {
+ Map value = this.backingStore.get("additionalData");
+ if(value == null) {
+ value = new HashMap<>();
+ this.setAdditionalData(value);
+ }
+ return value;
+ }
+ /**
+ * Gets the additionalMessage property value. The additionalMessage property
+ * @return a {@link ChatMessage}
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessage getAdditionalMessage() {
+ return this.backingStore.get("additionalMessage");
+ }
+ /**
+ * Gets the backingStore property value. Stores model information.
+ * @return a {@link BackingStore}
+ */
+ @jakarta.annotation.Nonnull
+ public BackingStore getBackingStore() {
+ return this.backingStore;
+ }
+ /**
+ * The deserialization information for the current model
+ * @return a {@link Map>}
+ */
+ @jakarta.annotation.Nonnull
+ public Map> getFieldDeserializers() {
+ final HashMap> deserializerMap = new HashMap>(3);
+ deserializerMap.put("additionalMessage", (n) -> { this.setAdditionalMessage(n.getObjectValue(ChatMessage::createFromDiscriminatorValue)); });
+ deserializerMap.put("messageIds", (n) -> { this.setMessageIds(n.getCollectionOfPrimitiveValues(String.class)); });
+ deserializerMap.put("targetChatIds", (n) -> { this.setTargetChatIds(n.getCollectionOfPrimitiveValues(String.class)); });
+ return deserializerMap;
+ }
+ /**
+ * Gets the messageIds property value. The messageIds property
+ * @return a {@link java.util.List}
+ */
+ @jakarta.annotation.Nullable
+ public java.util.List getMessageIds() {
+ return this.backingStore.get("messageIds");
+ }
+ /**
+ * Gets the targetChatIds property value. The targetChatIds property
+ * @return a {@link java.util.List}
+ */
+ @jakarta.annotation.Nullable
+ public java.util.List getTargetChatIds() {
+ return this.backingStore.get("targetChatIds");
+ }
+ /**
+ * Serializes information the current object
+ * @param writer Serialization writer to use to serialize this model
+ */
+ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
+ Objects.requireNonNull(writer);
+ writer.writeObjectValue("additionalMessage", this.getAdditionalMessage());
+ writer.writeCollectionOfPrimitiveValues("messageIds", this.getMessageIds());
+ writer.writeCollectionOfPrimitiveValues("targetChatIds", this.getTargetChatIds());
+ writer.writeAdditionalData(this.getAdditionalData());
+ }
+ /**
+ * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ * @param value Value to set for the AdditionalData property.
+ */
+ public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
+ this.backingStore.set("additionalData", value);
+ }
+ /**
+ * Sets the additionalMessage property value. The additionalMessage property
+ * @param value Value to set for the additionalMessage property.
+ */
+ public void setAdditionalMessage(@jakarta.annotation.Nullable final ChatMessage value) {
+ this.backingStore.set("additionalMessage", value);
+ }
+ /**
+ * Sets the backingStore property value. Stores model information.
+ * @param value Value to set for the backingStore property.
+ */
+ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
+ Objects.requireNonNull(value);
+ this.backingStore = value;
+ }
+ /**
+ * Sets the messageIds property value. The messageIds property
+ * @param value Value to set for the messageIds property.
+ */
+ public void setMessageIds(@jakarta.annotation.Nullable final java.util.List value) {
+ this.backingStore.set("messageIds", value);
+ }
+ /**
+ * Sets the targetChatIds property value. The targetChatIds property
+ * @param value Value to set for the targetChatIds property.
+ */
+ public void setTargetChatIds(@jakarta.annotation.Nullable final java.util.List value) {
+ this.backingStore.set("targetChatIds", value);
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/forwardtochat/ForwardToChatPostResponse.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/forwardtochat/ForwardToChatPostResponse.java
new file mode 100644
index 00000000000..42cc6b0898d
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/forwardtochat/ForwardToChatPostResponse.java
@@ -0,0 +1,63 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.forwardtochat;
+
+import com.microsoft.graph.beta.models.ActionResultPart;
+import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParseNode;
+import com.microsoft.kiota.serialization.SerializationWriter;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ForwardToChatPostResponse extends BaseCollectionPaginationCountResponse implements Parsable {
+ /**
+ * Instantiates a new {@link ForwardToChatPostResponse} and sets the default values.
+ */
+ public ForwardToChatPostResponse() {
+ super();
+ }
+ /**
+ * Creates a new instance of the appropriate class based on discriminator value
+ * @param parseNode The parse node to use to read the discriminator value and create the object
+ * @return a {@link ForwardToChatPostResponse}
+ */
+ @jakarta.annotation.Nonnull
+ public static ForwardToChatPostResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
+ Objects.requireNonNull(parseNode);
+ return new ForwardToChatPostResponse();
+ }
+ /**
+ * The deserialization information for the current model
+ * @return a {@link Map>}
+ */
+ @jakarta.annotation.Nonnull
+ public Map> getFieldDeserializers() {
+ final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
+ deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(ActionResultPart::createFromDiscriminatorValue)); });
+ return deserializerMap;
+ }
+ /**
+ * Gets the value property value. The value property
+ * @return a {@link java.util.List}
+ */
+ @jakarta.annotation.Nullable
+ public java.util.List getValue() {
+ return this.backingStore.get("value");
+ }
+ /**
+ * Serializes information the current object
+ * @param writer Serialization writer to use to serialize this model
+ */
+ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
+ Objects.requireNonNull(writer);
+ super.serialize(writer);
+ writer.writeCollectionOfObjectValues("value", this.getValue());
+ }
+ /**
+ * Sets the value property value. The value property
+ * @param value Value to set for the value property.
+ */
+ public void setValue(@jakarta.annotation.Nullable final java.util.List value) {
+ this.backingStore.set("value", value);
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/forwardtochat/ForwardToChatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/forwardtochat/ForwardToChatRequestBuilder.java
new file mode 100644
index 00000000000..3d2caf47e6b
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/forwardtochat/ForwardToChatRequestBuilder.java
@@ -0,0 +1,104 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.forwardtochat;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to call the forwardToChat method.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ForwardToChatRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link ForwardToChatRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ForwardToChatRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/forwardToChat", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ForwardToChatRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ForwardToChatRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/forwardToChat", rawUrl);
+ }
+ /**
+ * Forward a chat message, a channel message, or a channel message reply to a chat.
+ * @param body The request body
+ * @return a {@link ForwardToChatPostResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ForwardToChatPostResponse post(@jakarta.annotation.Nonnull final ForwardToChatPostRequestBody body) {
+ return post(body, null);
+ }
+ /**
+ * Forward a chat message, a channel message, or a channel message reply to a chat.
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ForwardToChatPostResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ForwardToChatPostResponse post(@jakarta.annotation.Nonnull final ForwardToChatPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ForwardToChatPostResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Forward a chat message, a channel message, or a channel message reply to a chat.
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ForwardToChatPostRequestBody body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Forward a chat message, a channel message, or a channel message reply to a chat.
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ForwardToChatPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ForwardToChatRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ForwardToChatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ForwardToChatRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/ChatMessageItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/ChatMessageItemRequestBuilder.java
new file mode 100644
index 00000000000..c3435b9b501
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/ChatMessageItemRequestBuilder.java
@@ -0,0 +1,273 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item;
+
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.hostedcontents.HostedContentsRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.setreaction.SetReactionRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.softdelete.SoftDeleteRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.undosoftdelete.UndoSoftDeleteRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.unsetreaction.UnsetReactionRequestBuilder;
+import com.microsoft.graph.beta.models.ChatMessage;
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ChatMessageItemRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
+ * @return a {@link HostedContentsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public HostedContentsRequestBuilder hostedContents() {
+ return new HostedContentsRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to call the setReaction method.
+ * @return a {@link SetReactionRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public SetReactionRequestBuilder setReaction() {
+ return new SetReactionRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to call the softDelete method.
+ * @return a {@link SoftDeleteRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public SoftDeleteRequestBuilder softDelete() {
+ return new SoftDeleteRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to call the undoSoftDelete method.
+ * @return a {@link UndoSoftDeleteRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public UndoSoftDeleteRequestBuilder undoSoftDelete() {
+ return new UndoSoftDeleteRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to call the unsetReaction method.
+ * @return a {@link UnsetReactionRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public UnsetReactionRequestBuilder unsetReaction() {
+ return new UnsetReactionRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ChatMessageItemRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ChatMessageItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ChatMessageItemRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ChatMessageItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property replies for chats
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property replies for chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ * @return a {@link ChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessage get() {
+ return get(null);
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessage::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property replies in chats
+ * @param body The request body
+ * @return a {@link ChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessage patch(@jakarta.annotation.Nonnull final ChatMessage body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property replies in chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessage}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessage patch(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessage::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property replies for chats
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property replies for chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property replies in chats
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ChatMessage body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property replies in chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ChatMessageItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ChatMessageItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ChatMessageItemRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Replies for a specified message. Supports $expand for channel messages.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/HostedContentsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/HostedContentsRequestBuilder.java
new file mode 100644
index 00000000000..c0892cee40a
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/HostedContentsRequestBuilder.java
@@ -0,0 +1,243 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.hostedcontents;
+
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.hostedcontents.count.CountRequestBuilder;
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.hostedcontents.item.ChatMessageHostedContentItemRequestBuilder;
+import com.microsoft.graph.beta.models.ChatMessageHostedContent;
+import com.microsoft.graph.beta.models.ChatMessageHostedContentCollectionResponse;
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class HostedContentsRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
+ * @param chatMessageHostedContentId The unique identifier of chatMessageHostedContent
+ * @return a {@link ChatMessageHostedContentItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ChatMessageHostedContentItemRequestBuilder byChatMessageHostedContentId(@jakarta.annotation.Nonnull final String chatMessageHostedContentId) {
+ Objects.requireNonNull(chatMessageHostedContentId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("chatMessageHostedContent%2Did", chatMessageHostedContentId);
+ return new ChatMessageHostedContentItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link HostedContentsRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public HostedContentsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link HostedContentsRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public HostedContentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @return a {@link ChatMessageHostedContentCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContentCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessageHostedContentCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContentCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageHostedContentCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create new navigation property to hostedContents for chats
+ * @param body The request body
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent post(@jakarta.annotation.Nonnull final ChatMessageHostedContent body) {
+ return post(body, null);
+ }
+ /**
+ * Create new navigation property to hostedContents for chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent post(@jakarta.annotation.Nonnull final ChatMessageHostedContent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageHostedContent::createFromDiscriminatorValue);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create new navigation property to hostedContents for chats
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChatMessageHostedContent body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create new navigation property to hostedContents for chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChatMessageHostedContent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link HostedContentsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public HostedContentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new HostedContentsRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/count/CountRequestBuilder.java
new file mode 100644
index 00000000000..187dc5db4f8
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/count/CountRequestBuilder.java
@@ -0,0 +1,128 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.hostedcontents.count;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to count the resources in the collection.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class CountRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/hostedContents/$count{?%24filter,%24search}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/hostedContents/$count{?%24filter,%24search}", rawUrl);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get() {
+ return get(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new CountRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the number of the resource
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/item/ChatMessageHostedContentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/item/ChatMessageHostedContentItemRequestBuilder.java
new file mode 100644
index 00000000000..b594d287401
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/item/ChatMessageHostedContentItemRequestBuilder.java
@@ -0,0 +1,237 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.hostedcontents.item;
+
+import com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.hostedcontents.item.value.ContentRequestBuilder;
+import com.microsoft.graph.beta.models.ChatMessageHostedContent;
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ChatMessageHostedContentItemRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to manage the media for the chat entity.
+ * @return a {@link ContentRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ContentRequestBuilder content() {
+ return new ContentRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ChatMessageHostedContentItemRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ChatMessageHostedContentItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ChatMessageHostedContentItemRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ChatMessageHostedContentItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property hostedContents for chats
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property hostedContents for chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent get() {
+ return get(null);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageHostedContent::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property hostedContents in chats
+ * @param body The request body
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent patch(@jakarta.annotation.Nonnull final ChatMessageHostedContent body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property hostedContents in chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ChatMessageHostedContent}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ChatMessageHostedContent patch(@jakarta.annotation.Nonnull final ChatMessageHostedContent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageHostedContent::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property hostedContents for chats
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property hostedContents for chats
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property hostedContents in chats
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ChatMessageHostedContent body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property hostedContents in chats
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ChatMessageHostedContent body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ChatMessageHostedContentItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ChatMessageHostedContentItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ChatMessageHostedContentItemRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Content in a message hosted by Microsoft Teams - for example, images or code snippets.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/item/value/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/item/value/ContentRequestBuilder.java
new file mode 100644
index 00000000000..a5a9e8500a0
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/hostedcontents/item/value/ContentRequestBuilder.java
@@ -0,0 +1,195 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.hostedcontents.item.value;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.io.InputStream;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the media for the chat entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ContentRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link ContentRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ContentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ContentRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ContentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", rawUrl);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @return a {@link InputStream}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public InputStream get() {
+ return get(null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link InputStream}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public InputStream get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param body Binary request body
+ * @return a {@link InputStream}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public InputStream put(@jakarta.annotation.Nonnull final InputStream body) {
+ return put(body, null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param body Binary request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link InputStream}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public InputStream put(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json");
+ return requestInfo;
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param body Binary request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body) {
+ return toPutRequestInformation(body, null);
+ }
+ /**
+ * The unique identifier for an entity. Read-only.
+ * @param body Binary request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final InputStream body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PutRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setStreamContent(body, "application/octet-stream");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ContentRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ContentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ContentRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PutRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/setreaction/SetReactionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/setreaction/SetReactionPostRequestBody.java
new file mode 100644
index 00000000000..915e110618a
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/setreaction/SetReactionPostRequestBody.java
@@ -0,0 +1,107 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.setreaction;
+
+import com.microsoft.kiota.serialization.AdditionalDataHolder;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParseNode;
+import com.microsoft.kiota.serialization.SerializationWriter;
+import com.microsoft.kiota.store.BackedModel;
+import com.microsoft.kiota.store.BackingStore;
+import com.microsoft.kiota.store.BackingStoreFactorySingleton;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class SetReactionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
+ /**
+ * Stores model information.
+ */
+ @jakarta.annotation.Nonnull
+ protected BackingStore backingStore;
+ /**
+ * Instantiates a new {@link SetReactionPostRequestBody} and sets the default values.
+ */
+ public SetReactionPostRequestBody() {
+ this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
+ this.setAdditionalData(new HashMap<>());
+ }
+ /**
+ * Creates a new instance of the appropriate class based on discriminator value
+ * @param parseNode The parse node to use to read the discriminator value and create the object
+ * @return a {@link SetReactionPostRequestBody}
+ */
+ @jakarta.annotation.Nonnull
+ public static SetReactionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
+ Objects.requireNonNull(parseNode);
+ return new SetReactionPostRequestBody();
+ }
+ /**
+ * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map getAdditionalData() {
+ Map value = this.backingStore.get("additionalData");
+ if(value == null) {
+ value = new HashMap<>();
+ this.setAdditionalData(value);
+ }
+ return value;
+ }
+ /**
+ * Gets the backingStore property value. Stores model information.
+ * @return a {@link BackingStore}
+ */
+ @jakarta.annotation.Nonnull
+ public BackingStore getBackingStore() {
+ return this.backingStore;
+ }
+ /**
+ * The deserialization information for the current model
+ * @return a {@link Map>}
+ */
+ @jakarta.annotation.Nonnull
+ public Map> getFieldDeserializers() {
+ final HashMap> deserializerMap = new HashMap>(1);
+ deserializerMap.put("reactionType", (n) -> { this.setReactionType(n.getStringValue()); });
+ return deserializerMap;
+ }
+ /**
+ * Gets the reactionType property value. The reactionType property
+ * @return a {@link String}
+ */
+ @jakarta.annotation.Nullable
+ public String getReactionType() {
+ return this.backingStore.get("reactionType");
+ }
+ /**
+ * Serializes information the current object
+ * @param writer Serialization writer to use to serialize this model
+ */
+ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
+ Objects.requireNonNull(writer);
+ writer.writeStringValue("reactionType", this.getReactionType());
+ writer.writeAdditionalData(this.getAdditionalData());
+ }
+ /**
+ * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ * @param value Value to set for the AdditionalData property.
+ */
+ public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
+ this.backingStore.set("additionalData", value);
+ }
+ /**
+ * Sets the backingStore property value. Stores model information.
+ * @param value Value to set for the backingStore property.
+ */
+ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
+ Objects.requireNonNull(value);
+ this.backingStore = value;
+ }
+ /**
+ * Sets the reactionType property value. The reactionType property
+ * @param value Value to set for the reactionType property.
+ */
+ public void setReactionType(@jakarta.annotation.Nullable final String value) {
+ this.backingStore.set("reactionType", value);
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/setreaction/SetReactionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/setreaction/SetReactionRequestBuilder.java
new file mode 100644
index 00000000000..4a8a91a3905
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/setreaction/SetReactionRequestBuilder.java
@@ -0,0 +1,98 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.setreaction;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to call the setReaction method.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class SetReactionRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link SetReactionRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public SetReactionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/setReaction", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link SetReactionRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public SetReactionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/setReaction", rawUrl);
+ }
+ /**
+ * Invoke action setReaction
+ * @param body The request body
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void post(@jakarta.annotation.Nonnull final SetReactionPostRequestBody body) {
+ post(body, null);
+ }
+ /**
+ * Invoke action setReaction
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void post(@jakarta.annotation.Nonnull final SetReactionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Invoke action setReaction
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetReactionPostRequestBody body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Invoke action setReaction
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetReactionPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link SetReactionRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public SetReactionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new SetReactionRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/softdelete/SoftDeleteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/softdelete/SoftDeleteRequestBuilder.java
new file mode 100644
index 00000000000..eae5437f4da
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/softdelete/SoftDeleteRequestBuilder.java
@@ -0,0 +1,93 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.softdelete;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to call the softDelete method.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class SoftDeleteRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link SoftDeleteRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public SoftDeleteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/softDelete", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link SoftDeleteRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public SoftDeleteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/softDelete", rawUrl);
+ }
+ /**
+ * Delete a single chatMessage or a chat message reply in a channel or a chat.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ public void post() {
+ post(null);
+ }
+ /**
+ * Delete a single chatMessage or a chat message reply in a channel or a chat.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Delete a single chatMessage or a chat message reply in a channel or a chat.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation() {
+ return toPostRequestInformation(null);
+ }
+ /**
+ * Delete a single chatMessage or a chat message reply in a channel or a chat.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link SoftDeleteRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public SoftDeleteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new SoftDeleteRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/undosoftdelete/UndoSoftDeleteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/undosoftdelete/UndoSoftDeleteRequestBuilder.java
new file mode 100644
index 00000000000..82371818521
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/undosoftdelete/UndoSoftDeleteRequestBuilder.java
@@ -0,0 +1,93 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.undosoftdelete;
+
+import com.microsoft.graph.beta.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to call the undoSoftDelete method.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class UndoSoftDeleteRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link UndoSoftDeleteRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public UndoSoftDeleteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/undoSoftDelete", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link UndoSoftDeleteRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public UndoSoftDeleteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/chats/{chat%2Did}/targetedMessages/{targetedChatMessage%2Did}/replies/{chatMessage%2Did}/undoSoftDelete", rawUrl);
+ }
+ /**
+ * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ public void post() {
+ post(null);
+ }
+ /**
+ * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation() {
+ return toPostRequestInformation(null);
+ }
+ /**
+ * Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link UndoSoftDeleteRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public UndoSoftDeleteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new UndoSoftDeleteRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/unsetreaction/UnsetReactionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/unsetreaction/UnsetReactionPostRequestBody.java
new file mode 100644
index 00000000000..302970f32fd
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/beta/generated/chats/item/targetedmessages/item/replies/item/unsetreaction/UnsetReactionPostRequestBody.java
@@ -0,0 +1,107 @@
+package com.microsoft.graph.beta.chats.item.targetedmessages.item.replies.item.unsetreaction;
+
+import com.microsoft.kiota.serialization.AdditionalDataHolder;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParseNode;
+import com.microsoft.kiota.serialization.SerializationWriter;
+import com.microsoft.kiota.store.BackedModel;
+import com.microsoft.kiota.store.BackingStore;
+import com.microsoft.kiota.store.BackingStoreFactorySingleton;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class UnsetReactionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
+ /**
+ * Stores model information.
+ */
+ @jakarta.annotation.Nonnull
+ protected BackingStore backingStore;
+ /**
+ * Instantiates a new {@link UnsetReactionPostRequestBody} and sets the default values.
+ */
+ public UnsetReactionPostRequestBody() {
+ this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
+ this.setAdditionalData(new HashMap<>());
+ }
+ /**
+ * Creates a new instance of the appropriate class based on discriminator value
+ * @param parseNode The parse node to use to read the discriminator value and create the object
+ * @return a {@link UnsetReactionPostRequestBody}
+ */
+ @jakarta.annotation.Nonnull
+ public static UnsetReactionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
+ Objects.requireNonNull(parseNode);
+ return new UnsetReactionPostRequestBody();
+ }
+ /**
+ * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ * @return a {@link Map