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

com.lark.oapi.service.aily.v1.model.AilySession Maven / Gradle / Ivy

// Code generated by lark suite oapi sdk gen
/*
 * MIT License
 *
 * Copyright (c) 2022 Lark Technologies Pte. Ltd.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.lark.oapi.service.aily.v1.model;

import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.aily.v1.enums.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.SerializedName;
import com.lark.oapi.core.annotation.Body;
import com.lark.oapi.core.annotation.Path;
import com.lark.oapi.core.annotation.Query;

import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

import com.lark.oapi.core.utils.Strings;
import com.lark.oapi.core.response.BaseResponse;

public class AilySession {
    /**
     * 会话 ID
     * 

示例值:session_4dfunz7sp1g8m */ @SerializedName("id") private String id; /** * 会话的创建时间,毫秒时间戳 *

示例值:1711975665710 */ @SerializedName("created_at") private String createdAt; /** * 会话的上次更新时间,毫秒时间戳 *

示例值:1711975665710 */ @SerializedName("modified_at") private String modifiedAt; /** * 会话的创建人 *

示例值:1794840334557292 */ @SerializedName("created_by") private String createdBy; /** * 渠道上下文 *

示例值:{} */ @SerializedName("channel_context") private String channelContext; /** * 其他透传信息 *

示例值:{} */ @SerializedName("metadata") private String metadata; // builder 开始 public AilySession() { } public AilySession(Builder builder) { /** * 会话 ID *

示例值:session_4dfunz7sp1g8m */ this.id = builder.id; /** * 会话的创建时间,毫秒时间戳 *

示例值:1711975665710 */ this.createdAt = builder.createdAt; /** * 会话的上次更新时间,毫秒时间戳 *

示例值:1711975665710 */ this.modifiedAt = builder.modifiedAt; /** * 会话的创建人 *

示例值:1794840334557292 */ this.createdBy = builder.createdBy; /** * 渠道上下文 *

示例值:{} */ this.channelContext = builder.channelContext; /** * 其他透传信息 *

示例值:{} */ this.metadata = builder.metadata; } public static Builder newBuilder() { return new Builder(); } public String getId() { return this.id; } public void setId(String id) { this.id = id; } public String getCreatedAt() { return this.createdAt; } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } public String getModifiedAt() { return this.modifiedAt; } public void setModifiedAt(String modifiedAt) { this.modifiedAt = modifiedAt; } public String getCreatedBy() { return this.createdBy; } public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } public String getChannelContext() { return this.channelContext; } public void setChannelContext(String channelContext) { this.channelContext = channelContext; } public String getMetadata() { return this.metadata; } public void setMetadata(String metadata) { this.metadata = metadata; } public static class Builder { /** * 会话 ID *

示例值:session_4dfunz7sp1g8m */ private String id; /** * 会话的创建时间,毫秒时间戳 *

示例值:1711975665710 */ private String createdAt; /** * 会话的上次更新时间,毫秒时间戳 *

示例值:1711975665710 */ private String modifiedAt; /** * 会话的创建人 *

示例值:1794840334557292 */ private String createdBy; /** * 渠道上下文 *

示例值:{} */ private String channelContext; /** * 其他透传信息 *

示例值:{} */ private String metadata; /** * 会话 ID *

示例值:session_4dfunz7sp1g8m * * @param id * @return */ public Builder id(String id) { this.id = id; return this; } /** * 会话的创建时间,毫秒时间戳 *

示例值:1711975665710 * * @param createdAt * @return */ public Builder createdAt(String createdAt) { this.createdAt = createdAt; return this; } /** * 会话的上次更新时间,毫秒时间戳 *

示例值:1711975665710 * * @param modifiedAt * @return */ public Builder modifiedAt(String modifiedAt) { this.modifiedAt = modifiedAt; return this; } /** * 会话的创建人 *

示例值:1794840334557292 * * @param createdBy * @return */ public Builder createdBy(String createdBy) { this.createdBy = createdBy; return this; } /** * 渠道上下文 *

示例值:{} * * @param channelContext * @return */ public Builder channelContext(String channelContext) { this.channelContext = channelContext; return this; } /** * 其他透传信息 *

示例值:{} * * @param metadata * @return */ public Builder metadata(String metadata) { this.metadata = metadata; return this; } public AilySession build() { return new AilySession(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy