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

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

import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.im.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 java.util.Map;

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

public class OpenAppFeedCardButton {
    /**
     * 跳转 URL
     * 

示例值: */ @SerializedName("multi_url") private OpenAppFeedCardUrl multiUrl; /** * 交互类型 *

示例值:url_page */ @SerializedName("action_type") private String actionType; /** * 文字 *

示例值: */ @SerializedName("text") private OpenAppFeedCardText text; /** * 按钮类型 *

示例值:default */ @SerializedName("button_type") private String buttonType; /** * action 字典 *

示例值: */ @SerializedName("action_map") private Map actionMap; // builder 开始 public OpenAppFeedCardButton() { } public OpenAppFeedCardButton(Builder builder) { /** * 跳转 URL *

示例值: */ this.multiUrl = builder.multiUrl; /** * 交互类型 *

示例值:url_page */ this.actionType = builder.actionType; /** * 文字 *

示例值: */ this.text = builder.text; /** * 按钮类型 *

示例值:default */ this.buttonType = builder.buttonType; /** * action 字典 *

示例值: */ this.actionMap = builder.actionMap; } public static Builder newBuilder() { return new Builder(); } public OpenAppFeedCardUrl getMultiUrl() { return this.multiUrl; } public void setMultiUrl(OpenAppFeedCardUrl multiUrl) { this.multiUrl = multiUrl; } public String getActionType() { return this.actionType; } public void setActionType(String actionType) { this.actionType = actionType; } public OpenAppFeedCardText getText() { return this.text; } public void setText(OpenAppFeedCardText text) { this.text = text; } public String getButtonType() { return this.buttonType; } public void setButtonType(String buttonType) { this.buttonType = buttonType; } public Map getActionMap() { return this.actionMap; } public void setActionMap(Map actionMap) { this.actionMap = actionMap; } public static class Builder { /** * 跳转 URL *

示例值: */ private OpenAppFeedCardUrl multiUrl; /** * 交互类型 *

示例值:url_page */ private String actionType; /** * 文字 *

示例值: */ private OpenAppFeedCardText text; /** * 按钮类型 *

示例值:default */ private String buttonType; /** * action 字典 *

示例值: */ private Map actionMap; /** * 跳转 URL *

示例值: * * @param multiUrl * @return */ public Builder multiUrl(OpenAppFeedCardUrl multiUrl) { this.multiUrl = multiUrl; return this; } /** * 交互类型 *

示例值:url_page * * @param actionType * @return */ public Builder actionType(String actionType) { this.actionType = actionType; return this; } /** * 交互类型 *

示例值:url_page * * @param actionType {@link com.lark.oapi.service.im.v2.enums.OpenAppFeedCardButtonActionTypeEnum} * @return */ public Builder actionType(com.lark.oapi.service.im.v2.enums.OpenAppFeedCardButtonActionTypeEnum actionType) { this.actionType = actionType.getValue(); return this; } /** * 文字 *

示例值: * * @param text * @return */ public Builder text(OpenAppFeedCardText text) { this.text = text; return this; } /** * 按钮类型 *

示例值:default * * @param buttonType * @return */ public Builder buttonType(String buttonType) { this.buttonType = buttonType; return this; } /** * 按钮类型 *

示例值:default * * @param buttonType {@link com.lark.oapi.service.im.v2.enums.OpenAppFeedCardButtonButtonTypeEnum} * @return */ public Builder buttonType(com.lark.oapi.service.im.v2.enums.OpenAppFeedCardButtonButtonTypeEnum buttonType) { this.buttonType = buttonType.getValue(); return this; } /** * action 字典 *

示例值: * * @param actionMap * @return */ public Builder actionMap(Map actionMap) { this.actionMap = actionMap; return this; } public OpenAppFeedCardButton build() { return new OpenAppFeedCardButton(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy