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

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

Go to download

Larksuite open platform facilitates the integration of enterprise applications and larksuite, making collaboration and management more efficient

The newest version!
// 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 Kctx {
    /**
     * 租户 id
     * 

示例值:0 */ @SerializedName("tenant_id") private Integer tenantId; /** * 用户 id *

示例值: */ @SerializedName("user_id") private Integer userId; /** * 租户域名 *

示例值:apaas */ @SerializedName("tenant_domain_name") private String tenantDomainName; /** * 用户设置 *

示例值:"{}" */ @SerializedName("user_setting") private String userSetting; /** * 语言 *

示例值:1033 */ @SerializedName("lang_id") private Integer langId; /** * 请求 id *

示例值:a */ @SerializedName("request_id") private String requestId; /** * 域名 *

示例值:a */ @SerializedName("host") private String host; /** * 资源路由 key *

示例值:"a" */ @SerializedName("tenant_resource_route_key") private String tenantResourceRouteKey; /** * 命名空间 *

示例值:package_abc */ @SerializedName("namespace") private String namespace; /** * 租户类型 *

示例值:1 */ @SerializedName("tenant_type") private Integer tenantType; /** * 事务ID *

示例值:0 */ @SerializedName("transaction_id") private Integer transactionId; /** * consistency retry type *

示例值:a */ @SerializedName("ConsistencyRetryType") private String consistencyRetryType; /** * psm link *

示例值:a */ @SerializedName("PsmLink") private String psmLink; /** * breakout retry psm *

示例值:a */ @SerializedName("BreakoutRetryPsm") private String breakoutRetryPsm; /** * credential id *

示例值:a */ @SerializedName("CredentialID") private String credentialID; /** * 鉴权类型 *

示例值:user */ @SerializedName("AuthenticationType") private String authenticationType; // builder 开始 public Kctx() { } public Kctx(Builder builder) { /** * 租户 id *

示例值:0 */ this.tenantId = builder.tenantId; /** * 用户 id *

示例值: */ this.userId = builder.userId; /** * 租户域名 *

示例值:apaas */ this.tenantDomainName = builder.tenantDomainName; /** * 用户设置 *

示例值:"{}" */ this.userSetting = builder.userSetting; /** * 语言 *

示例值:1033 */ this.langId = builder.langId; /** * 请求 id *

示例值:a */ this.requestId = builder.requestId; /** * 域名 *

示例值:a */ this.host = builder.host; /** * 资源路由 key *

示例值:"a" */ this.tenantResourceRouteKey = builder.tenantResourceRouteKey; /** * 命名空间 *

示例值:package_abc */ this.namespace = builder.namespace; /** * 租户类型 *

示例值:1 */ this.tenantType = builder.tenantType; /** * 事务ID *

示例值:0 */ this.transactionId = builder.transactionId; /** * consistency retry type *

示例值:a */ this.consistencyRetryType = builder.consistencyRetryType; /** * psm link *

示例值:a */ this.psmLink = builder.psmLink; /** * breakout retry psm *

示例值:a */ this.breakoutRetryPsm = builder.breakoutRetryPsm; /** * credential id *

示例值:a */ this.credentialID = builder.credentialID; /** * 鉴权类型 *

示例值:user */ this.authenticationType = builder.authenticationType; } public static Builder newBuilder() { return new Builder(); } public Integer getTenantId() { return this.tenantId; } public void setTenantId(Integer tenantId) { this.tenantId = tenantId; } public Integer getUserId() { return this.userId; } public void setUserId(Integer userId) { this.userId = userId; } public String getTenantDomainName() { return this.tenantDomainName; } public void setTenantDomainName(String tenantDomainName) { this.tenantDomainName = tenantDomainName; } public String getUserSetting() { return this.userSetting; } public void setUserSetting(String userSetting) { this.userSetting = userSetting; } public Integer getLangId() { return this.langId; } public void setLangId(Integer langId) { this.langId = langId; } public String getRequestId() { return this.requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public String getHost() { return this.host; } public void setHost(String host) { this.host = host; } public String getTenantResourceRouteKey() { return this.tenantResourceRouteKey; } public void setTenantResourceRouteKey(String tenantResourceRouteKey) { this.tenantResourceRouteKey = tenantResourceRouteKey; } public String getNamespace() { return this.namespace; } public void setNamespace(String namespace) { this.namespace = namespace; } public Integer getTenantType() { return this.tenantType; } public void setTenantType(Integer tenantType) { this.tenantType = tenantType; } public Integer getTransactionId() { return this.transactionId; } public void setTransactionId(Integer transactionId) { this.transactionId = transactionId; } public String getConsistencyRetryType() { return this.consistencyRetryType; } public void setConsistencyRetryType(String consistencyRetryType) { this.consistencyRetryType = consistencyRetryType; } public String getPsmLink() { return this.psmLink; } public void setPsmLink(String psmLink) { this.psmLink = psmLink; } public String getBreakoutRetryPsm() { return this.breakoutRetryPsm; } public void setBreakoutRetryPsm(String breakoutRetryPsm) { this.breakoutRetryPsm = breakoutRetryPsm; } public String getCredentialID() { return this.credentialID; } public void setCredentialID(String credentialID) { this.credentialID = credentialID; } public String getAuthenticationType() { return this.authenticationType; } public void setAuthenticationType(String authenticationType) { this.authenticationType = authenticationType; } public static class Builder { /** * 租户 id *

示例值:0 */ private Integer tenantId; /** * 用户 id *

示例值: */ private Integer userId; /** * 租户域名 *

示例值:apaas */ private String tenantDomainName; /** * 用户设置 *

示例值:"{}" */ private String userSetting; /** * 语言 *

示例值:1033 */ private Integer langId; /** * 请求 id *

示例值:a */ private String requestId; /** * 域名 *

示例值:a */ private String host; /** * 资源路由 key *

示例值:"a" */ private String tenantResourceRouteKey; /** * 命名空间 *

示例值:package_abc */ private String namespace; /** * 租户类型 *

示例值:1 */ private Integer tenantType; /** * 事务ID *

示例值:0 */ private Integer transactionId; /** * consistency retry type *

示例值:a */ private String consistencyRetryType; /** * psm link *

示例值:a */ private String psmLink; /** * breakout retry psm *

示例值:a */ private String breakoutRetryPsm; /** * credential id *

示例值:a */ private String credentialID; /** * 鉴权类型 *

示例值:user */ private String authenticationType; /** * 租户 id *

示例值:0 * * @param tenantId * @return */ public Builder tenantId(Integer tenantId) { this.tenantId = tenantId; return this; } /** * 用户 id *

示例值: * * @param userId * @return */ public Builder userId(Integer userId) { this.userId = userId; return this; } /** * 租户域名 *

示例值:apaas * * @param tenantDomainName * @return */ public Builder tenantDomainName(String tenantDomainName) { this.tenantDomainName = tenantDomainName; return this; } /** * 用户设置 *

示例值:"{}" * * @param userSetting * @return */ public Builder userSetting(String userSetting) { this.userSetting = userSetting; return this; } /** * 语言 *

示例值:1033 * * @param langId * @return */ public Builder langId(Integer langId) { this.langId = langId; return this; } /** * 请求 id *

示例值:a * * @param requestId * @return */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * 域名 *

示例值:a * * @param host * @return */ public Builder host(String host) { this.host = host; return this; } /** * 资源路由 key *

示例值:"a" * * @param tenantResourceRouteKey * @return */ public Builder tenantResourceRouteKey(String tenantResourceRouteKey) { this.tenantResourceRouteKey = tenantResourceRouteKey; return this; } /** * 命名空间 *

示例值:package_abc * * @param namespace * @return */ public Builder namespace(String namespace) { this.namespace = namespace; return this; } /** * 租户类型 *

示例值:1 * * @param tenantType * @return */ public Builder tenantType(Integer tenantType) { this.tenantType = tenantType; return this; } /** * 事务ID *

示例值:0 * * @param transactionId * @return */ public Builder transactionId(Integer transactionId) { this.transactionId = transactionId; return this; } /** * consistency retry type *

示例值:a * * @param consistencyRetryType * @return */ public Builder consistencyRetryType(String consistencyRetryType) { this.consistencyRetryType = consistencyRetryType; return this; } /** * psm link *

示例值:a * * @param psmLink * @return */ public Builder psmLink(String psmLink) { this.psmLink = psmLink; return this; } /** * breakout retry psm *

示例值:a * * @param breakoutRetryPsm * @return */ public Builder breakoutRetryPsm(String breakoutRetryPsm) { this.breakoutRetryPsm = breakoutRetryPsm; return this; } /** * credential id *

示例值:a * * @param credentialID * @return */ public Builder credentialID(String credentialID) { this.credentialID = credentialID; return this; } /** * 鉴权类型 *

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





© 2015 - 2025 Weber Informatics LLC | Privacy Policy