File tree Expand file tree Collapse file tree 4 files changed +108
-0
lines changed
sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents Expand file tree Collapse file tree 4 files changed +108
-0
lines changed Original file line number Diff line number Diff line change 77import com .azure .core .annotation .Fluent ;
88import com .fasterxml .jackson .annotation .JsonProperty ;
99import java .time .OffsetDateTime ;
10+ import java .util .Map ;
1011
1112/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEdited event. */
1213@ Fluent
@@ -17,6 +18,12 @@ public final class AcsChatMessageEditedEventData extends AcsChatMessageEventBase
1718 @ JsonProperty (value = "messageBody" )
1819 private String messageBody ;
1920
21+ /*
22+ * The chat message metadata
23+ */
24+ @ JsonProperty (value = "metadata" )
25+ private Map <String , String > metadata ;
26+
2027 /*
2128 * The time at which the message was edited
2229 */
@@ -43,6 +50,26 @@ public AcsChatMessageEditedEventData setMessageBody(String messageBody) {
4350 return this ;
4451 }
4552
53+ /**
54+ * Get the metadata property: The chat message metadata.
55+ *
56+ * @return the metadata value.
57+ */
58+ public Map <String , String > getMetadata () {
59+ return this .metadata ;
60+ }
61+
62+ /**
63+ * Set the metadata property: The chat message metadata.
64+ *
65+ * @param metadata the metadata value to set.
66+ * @return the AcsChatMessageEditedEventData object itself.
67+ */
68+ public AcsChatMessageEditedEventData setMetadata (Map <String , String > metadata ) {
69+ this .metadata = metadata ;
70+ return this ;
71+ }
72+
4673 /**
4774 * Get the editTime property: The time at which the message was edited.
4875 *
Original file line number Diff line number Diff line change 77import com .azure .core .annotation .Fluent ;
88import com .fasterxml .jackson .annotation .JsonProperty ;
99import java .time .OffsetDateTime ;
10+ import java .util .Map ;
1011
1112/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEditedInThread event. */
1213@ Fluent
@@ -17,6 +18,12 @@ public final class AcsChatMessageEditedInThreadEventData extends AcsChatMessageE
1718 @ JsonProperty (value = "messageBody" )
1819 private String messageBody ;
1920
21+ /*
22+ * The chat message metadata
23+ */
24+ @ JsonProperty (value = "metadata" )
25+ private Map <String , String > metadata ;
26+
2027 /*
2128 * The time at which the message was edited
2229 */
@@ -43,6 +50,26 @@ public AcsChatMessageEditedInThreadEventData setMessageBody(String messageBody)
4350 return this ;
4451 }
4552
53+ /**
54+ * Get the metadata property: The chat message metadata.
55+ *
56+ * @return the metadata value.
57+ */
58+ public Map <String , String > getMetadata () {
59+ return this .metadata ;
60+ }
61+
62+ /**
63+ * Set the metadata property: The chat message metadata.
64+ *
65+ * @param metadata the metadata value to set.
66+ * @return the AcsChatMessageEditedInThreadEventData object itself.
67+ */
68+ public AcsChatMessageEditedInThreadEventData setMetadata (Map <String , String > metadata ) {
69+ this .metadata = metadata ;
70+ return this ;
71+ }
72+
4673 /**
4774 * Get the editTime property: The time at which the message was edited.
4875 *
Original file line number Diff line number Diff line change 77import com .azure .core .annotation .Fluent ;
88import com .fasterxml .jackson .annotation .JsonProperty ;
99import java .time .OffsetDateTime ;
10+ import java .util .Map ;
1011
1112/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceived event. */
1213@ Fluent
@@ -17,6 +18,12 @@ public final class AcsChatMessageReceivedEventData extends AcsChatMessageEventBa
1718 @ JsonProperty (value = "messageBody" )
1819 private String messageBody ;
1920
21+ /*
22+ * The chat message metadata
23+ */
24+ @ JsonProperty (value = "metadata" )
25+ private Map <String , String > metadata ;
26+
2027 /**
2128 * Get the messageBody property: The body of the chat message.
2229 *
@@ -37,6 +44,26 @@ public AcsChatMessageReceivedEventData setMessageBody(String messageBody) {
3744 return this ;
3845 }
3946
47+ /**
48+ * Get the metadata property: The chat message metadata.
49+ *
50+ * @return the metadata value.
51+ */
52+ public Map <String , String > getMetadata () {
53+ return this .metadata ;
54+ }
55+
56+ /**
57+ * Set the metadata property: The chat message metadata.
58+ *
59+ * @param metadata the metadata value to set.
60+ * @return the AcsChatMessageReceivedEventData object itself.
61+ */
62+ public AcsChatMessageReceivedEventData setMetadata (Map <String , String > metadata ) {
63+ this .metadata = metadata ;
64+ return this ;
65+ }
66+
4067 /** {@inheritDoc} */
4168 @ Override
4269 public AcsChatMessageReceivedEventData setMessageId (String messageId ) {
Original file line number Diff line number Diff line change 77import com .azure .core .annotation .Fluent ;
88import com .fasterxml .jackson .annotation .JsonProperty ;
99import java .time .OffsetDateTime ;
10+ import java .util .Map ;
1011
1112/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceivedInThread event. */
1213@ Fluent
@@ -17,6 +18,12 @@ public final class AcsChatMessageReceivedInThreadEventData extends AcsChatMessag
1718 @ JsonProperty (value = "messageBody" )
1819 private String messageBody ;
1920
21+ /*
22+ * The chat message metadata
23+ */
24+ @ JsonProperty (value = "metadata" )
25+ private Map <String , String > metadata ;
26+
2027 /**
2128 * Get the messageBody property: The body of the chat message.
2229 *
@@ -37,6 +44,26 @@ public AcsChatMessageReceivedInThreadEventData setMessageBody(String messageBody
3744 return this ;
3845 }
3946
47+ /**
48+ * Get the metadata property: The chat message metadata.
49+ *
50+ * @return the metadata value.
51+ */
52+ public Map <String , String > getMetadata () {
53+ return this .metadata ;
54+ }
55+
56+ /**
57+ * Set the metadata property: The chat message metadata.
58+ *
59+ * @param metadata the metadata value to set.
60+ * @return the AcsChatMessageReceivedInThreadEventData object itself.
61+ */
62+ public AcsChatMessageReceivedInThreadEventData setMetadata (Map <String , String > metadata ) {
63+ this .metadata = metadata ;
64+ return this ;
65+ }
66+
4067 /** {@inheritDoc} */
4168 @ Override
4269 public AcsChatMessageReceivedInThreadEventData setMessageId (String messageId ) {
You can’t perform that action at this time.
0 commit comments