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

com.lark.oapi.service.search.v2.model.UserInfo 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.search.v2.model;

import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.search.v2.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 UserInfo {
    /**
     * 用户使用语言类型
     * 

示例值:English */ @SerializedName("user_language") private String userLanguage; /** * 用户时区 *

示例值:zh */ @SerializedName("timezone") private String timezone; /** * 用户id *

示例值:22 */ @SerializedName("user_id") private String userId; /** * 用户open id *

示例值:ou_abc */ @SerializedName("user_open_id") private String userOpenId; /** * 租户id *

示例值:22 */ @SerializedName("tenant_id") private String tenantId; /** * 地区 *

示例值:zh-cn */ @SerializedName("locale") private String locale; // builder 开始 public UserInfo() { } public UserInfo(Builder builder) { /** * 用户使用语言类型 *

示例值:English */ this.userLanguage = builder.userLanguage; /** * 用户时区 *

示例值:zh */ this.timezone = builder.timezone; /** * 用户id *

示例值:22 */ this.userId = builder.userId; /** * 用户open id *

示例值:ou_abc */ this.userOpenId = builder.userOpenId; /** * 租户id *

示例值:22 */ this.tenantId = builder.tenantId; /** * 地区 *

示例值:zh-cn */ this.locale = builder.locale; } public static Builder newBuilder() { return new Builder(); } public String getUserLanguage() { return this.userLanguage; } public void setUserLanguage(String userLanguage) { this.userLanguage = userLanguage; } public String getTimezone() { return this.timezone; } public void setTimezone(String timezone) { this.timezone = timezone; } public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } public String getUserOpenId() { return this.userOpenId; } public void setUserOpenId(String userOpenId) { this.userOpenId = userOpenId; } public String getTenantId() { return this.tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public String getLocale() { return this.locale; } public void setLocale(String locale) { this.locale = locale; } public static class Builder { /** * 用户使用语言类型 *

示例值:English */ private String userLanguage; /** * 用户时区 *

示例值:zh */ private String timezone; /** * 用户id *

示例值:22 */ private String userId; /** * 用户open id *

示例值:ou_abc */ private String userOpenId; /** * 租户id *

示例值:22 */ private String tenantId; /** * 地区 *

示例值:zh-cn */ private String locale; /** * 用户使用语言类型 *

示例值:English * * @param userLanguage * @return */ public Builder userLanguage(String userLanguage) { this.userLanguage = userLanguage; return this; } /** * 用户时区 *

示例值:zh * * @param timezone * @return */ public Builder timezone(String timezone) { this.timezone = timezone; return this; } /** * 用户id *

示例值:22 * * @param userId * @return */ public Builder userId(String userId) { this.userId = userId; return this; } /** * 用户open id *

示例值:ou_abc * * @param userOpenId * @return */ public Builder userOpenId(String userOpenId) { this.userOpenId = userOpenId; return this; } /** * 租户id *

示例值:22 * * @param tenantId * @return */ public Builder tenantId(String tenantId) { this.tenantId = tenantId; return this; } /** * 地区 *

示例值:zh-cn * * @param locale * @return */ public Builder locale(String locale) { this.locale = locale; return this; } public UserInfo build() { return new UserInfo(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy