All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.messaging.eventgrid.systemevents.AcsChatThreadEventInThreadBaseProperties Maven / Gradle / Ivy

There is a newer version: 4.27.0
Show newest version
// 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.time.OffsetDateTime;

/** Schema of common properties of all chat thread events. */
@Fluent
public class AcsChatThreadEventInThreadBaseProperties extends AcsChatEventInThreadBaseProperties {
    /*
     * The original creation time of the thread
     */
    @JsonProperty(value = "createTime")
    private OffsetDateTime createTime;

    /*
     * The version of the thread
     */
    @JsonProperty(value = "version")
    private Long version;

    /** Creates an instance of AcsChatThreadEventInThreadBaseProperties class. */
    public AcsChatThreadEventInThreadBaseProperties() {}

    /**
     * Get the createTime property: The original creation time of the thread.
     *
     * @return the createTime value.
     */
    public OffsetDateTime getCreateTime() {
        return this.createTime;
    }

    /**
     * Set the createTime property: The original creation time of the thread.
     *
     * @param createTime the createTime value to set.
     * @return the AcsChatThreadEventInThreadBaseProperties object itself.
     */
    public AcsChatThreadEventInThreadBaseProperties setCreateTime(OffsetDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    /**
     * Get the version property: The version of the thread.
     *
     * @return the version value.
     */
    public Long getVersion() {
        return this.version;
    }

    /**
     * Set the version property: The version of the thread.
     *
     * @param version the version value to set.
     * @return the AcsChatThreadEventInThreadBaseProperties object itself.
     */
    public AcsChatThreadEventInThreadBaseProperties setVersion(Long version) {
        this.version = version;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AcsChatThreadEventInThreadBaseProperties setTransactionId(String transactionId) {
        super.setTransactionId(transactionId);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AcsChatThreadEventInThreadBaseProperties setThreadId(String threadId) {
        super.setThreadId(threadId);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy