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

com.lark.oapi.service.calendar.v4.model.ExchangeBinding 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.calendar.v4.model;

import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.calendar.v4.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 ExchangeBinding {
    /**
     * admin账户
     * 

示例值:[email protected] */ @SerializedName("admin_account") private String adminAccount; /** * 用户绑定的exchange账户 *

示例值:[email protected] */ @SerializedName("exchange_account") private String exchangeAccount; /** * exchange账户绑定user唯一标识id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction) *

示例值:ou_xxxxxxxxxxxxxxxxxx */ @SerializedName("user_id") private String userId; /** * exchange账户同步状态 *

示例值:doing */ @SerializedName("status") private String status; /** * exchange绑定唯一标识id。参见[exchange绑定ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/introduction#12533d5e) *

示例值:ZW1haWxfYWRtaW5fZXhhbXBsZUBvdXRsb29rLmNvbSBlbWFpbF9hY2NvdW50X2V4YW1wbGVAb3V0bG9vay5jb20= */ @SerializedName("exchange_binding_id") private String exchangeBindingId; // builder 开始 public ExchangeBinding() { } public ExchangeBinding(Builder builder) { /** * admin账户 *

示例值:[email protected] */ this.adminAccount = builder.adminAccount; /** * 用户绑定的exchange账户 *

示例值:[email protected] */ this.exchangeAccount = builder.exchangeAccount; /** * exchange账户绑定user唯一标识id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction) *

示例值:ou_xxxxxxxxxxxxxxxxxx */ this.userId = builder.userId; /** * exchange账户同步状态 *

示例值:doing */ this.status = builder.status; /** * exchange绑定唯一标识id。参见[exchange绑定ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/introduction#12533d5e) *

示例值:ZW1haWxfYWRtaW5fZXhhbXBsZUBvdXRsb29rLmNvbSBlbWFpbF9hY2NvdW50X2V4YW1wbGVAb3V0bG9vay5jb20= */ this.exchangeBindingId = builder.exchangeBindingId; } public static Builder newBuilder() { return new Builder(); } public String getAdminAccount() { return this.adminAccount; } public void setAdminAccount(String adminAccount) { this.adminAccount = adminAccount; } public String getExchangeAccount() { return this.exchangeAccount; } public void setExchangeAccount(String exchangeAccount) { this.exchangeAccount = exchangeAccount; } public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } public String getStatus() { return this.status; } public void setStatus(String status) { this.status = status; } public String getExchangeBindingId() { return this.exchangeBindingId; } public void setExchangeBindingId(String exchangeBindingId) { this.exchangeBindingId = exchangeBindingId; } public static class Builder { /** * admin账户 *

示例值:[email protected] */ private String adminAccount; /** * 用户绑定的exchange账户 *

示例值:[email protected] */ private String exchangeAccount; /** * exchange账户绑定user唯一标识id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction) *

示例值:ou_xxxxxxxxxxxxxxxxxx */ private String userId; /** * exchange账户同步状态 *

示例值:doing */ private String status; /** * exchange绑定唯一标识id。参见[exchange绑定ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/introduction#12533d5e) *

示例值:ZW1haWxfYWRtaW5fZXhhbXBsZUBvdXRsb29rLmNvbSBlbWFpbF9hY2NvdW50X2V4YW1wbGVAb3V0bG9vay5jb20= */ private String exchangeBindingId; /** * admin账户 *

示例值:[email protected] * * @param adminAccount * @return */ public Builder adminAccount(String adminAccount) { this.adminAccount = adminAccount; return this; } /** * 用户绑定的exchange账户 *

示例值:[email protected] * * @param exchangeAccount * @return */ public Builder exchangeAccount(String exchangeAccount) { this.exchangeAccount = exchangeAccount; return this; } /** * exchange账户绑定user唯一标识id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction) *

示例值:ou_xxxxxxxxxxxxxxxxxx * * @param userId * @return */ public Builder userId(String userId) { this.userId = userId; return this; } /** * exchange账户同步状态 *

示例值:doing * * @param status * @return */ public Builder status(String status) { this.status = status; return this; } /** * exchange账户同步状态 *

示例值:doing * * @param status {@link com.lark.oapi.service.calendar.v4.enums.ExchangeBindingExchangeBindingStatusEnum} * @return */ public Builder status(com.lark.oapi.service.calendar.v4.enums.ExchangeBindingExchangeBindingStatusEnum status) { this.status = status.getValue(); return this; } /** * exchange绑定唯一标识id。参见[exchange绑定ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/introduction#12533d5e) *

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





© 2015 - 2025 Weber Informatics LLC | Privacy Policy