AcsChatThreadCreatedWithUserEventData.java

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.messaging.eventgrid.systemevents;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/** The AcsChatThreadCreatedWithUserEventData model. */
@Fluent
public final class AcsChatThreadCreatedWithUserEventData extends AcsChatThreadEventBaseProperties {
    /*
     * The MRI of the creator of the thread
     */
    @JsonProperty(value = "createdBy")
    private String createdBy;

    /*
     * The thread properties
     */
    @JsonProperty(value = "properties")
    private Map<String, Object> properties;

    /*
     * The list of properties of users who are part of the thread
     */
    @JsonProperty(value = "members")
    private List<AcsChatThreadMemberProperties> members;

    /**
     * Get the createdBy property: The MRI of the creator of the thread.
     *
     * @return the createdBy value.
     */
    public String getCreatedBy() {
        return this.createdBy;
    }

    /**
     * Set the createdBy property: The MRI of the creator of the thread.
     *
     * @param createdBy the createdBy value to set.
     * @return the AcsChatThreadCreatedWithUserEventData object itself.
     */
    public AcsChatThreadCreatedWithUserEventData setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
        return this;
    }

    /**
     * Get the properties property: The thread properties.
     *
     * @return the properties value.
     */
    public Map<String, Object> getProperties() {
        return this.properties;
    }

    /**
     * Set the properties property: The thread properties.
     *
     * @param properties the properties value to set.
     * @return the AcsChatThreadCreatedWithUserEventData object itself.
     */
    public AcsChatThreadCreatedWithUserEventData setProperties(Map<String, Object> properties) {
        this.properties = properties;
        return this;
    }

    /**
     * Get the members property: The list of properties of users who are part of the thread.
     *
     * @return the members value.
     */
    public List<AcsChatThreadMemberProperties> getMembers() {
        return this.members;
    }

    /**
     * Set the members property: The list of properties of users who are part of the thread.
     *
     * @param members the members value to set.
     * @return the AcsChatThreadCreatedWithUserEventData object itself.
     */
    public AcsChatThreadCreatedWithUserEventData setMembers(List<AcsChatThreadMemberProperties> members) {
        this.members = members;
        return this;
    }
}