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

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

import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.wiki.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 Space {
    /**
     * 知识空间名称
     * 

示例值:知识空间 */ @SerializedName("name") private String name; /** * 知识空间描述 *

示例值:知识空间描述 */ @SerializedName("description") private String description; /** * 知识空间id *

示例值:6946843325487456878 */ @SerializedName("space_id") private String spaceId; /** * 表示知识空间类型(团队空间 或 个人空间) *

示例值:team */ @SerializedName("space_type") private String spaceType; /** * 表示知识空间可见性(公开空间 或 私有空间) *

示例值:private */ @SerializedName("visibility") private String visibility; /** * 表示知识空间的分享状态 *

示例值:open */ @SerializedName("open_sharing") private String openSharing; // builder 开始 public Space() { } public Space(Builder builder) { /** * 知识空间名称 *

示例值:知识空间 */ this.name = builder.name; /** * 知识空间描述 *

示例值:知识空间描述 */ this.description = builder.description; /** * 知识空间id *

示例值:6946843325487456878 */ this.spaceId = builder.spaceId; /** * 表示知识空间类型(团队空间 或 个人空间) *

示例值:team */ this.spaceType = builder.spaceType; /** * 表示知识空间可见性(公开空间 或 私有空间) *

示例值:private */ this.visibility = builder.visibility; /** * 表示知识空间的分享状态 *

示例值:open */ this.openSharing = builder.openSharing; } public static Builder newBuilder() { return new Builder(); } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public String getDescription() { return this.description; } public void setDescription(String description) { this.description = description; } public String getSpaceId() { return this.spaceId; } public void setSpaceId(String spaceId) { this.spaceId = spaceId; } public String getSpaceType() { return this.spaceType; } public void setSpaceType(String spaceType) { this.spaceType = spaceType; } public String getVisibility() { return this.visibility; } public void setVisibility(String visibility) { this.visibility = visibility; } public String getOpenSharing() { return this.openSharing; } public void setOpenSharing(String openSharing) { this.openSharing = openSharing; } public static class Builder { /** * 知识空间名称 *

示例值:知识空间 */ private String name; /** * 知识空间描述 *

示例值:知识空间描述 */ private String description; /** * 知识空间id *

示例值:6946843325487456878 */ private String spaceId; /** * 表示知识空间类型(团队空间 或 个人空间) *

示例值:team */ private String spaceType; /** * 表示知识空间可见性(公开空间 或 私有空间) *

示例值:private */ private String visibility; /** * 表示知识空间的分享状态 *

示例值:open */ private String openSharing; /** * 知识空间名称 *

示例值:知识空间 * * @param name * @return */ public Builder name(String name) { this.name = name; return this; } /** * 知识空间描述 *

示例值:知识空间描述 * * @param description * @return */ public Builder description(String description) { this.description = description; return this; } /** * 知识空间id *

示例值:6946843325487456878 * * @param spaceId * @return */ public Builder spaceId(String spaceId) { this.spaceId = spaceId; return this; } /** * 表示知识空间类型(团队空间 或 个人空间) *

示例值:team * * @param spaceType * @return */ public Builder spaceType(String spaceType) { this.spaceType = spaceType; return this; } /** * 表示知识空间类型(团队空间 或 个人空间) *

示例值:team * * @param spaceType {@link com.lark.oapi.service.wiki.v2.enums.SpaceSpaceTypeEnum} * @return */ public Builder spaceType(com.lark.oapi.service.wiki.v2.enums.SpaceSpaceTypeEnum spaceType) { this.spaceType = spaceType.getValue(); return this; } /** * 表示知识空间可见性(公开空间 或 私有空间) *

示例值:private * * @param visibility * @return */ public Builder visibility(String visibility) { this.visibility = visibility; return this; } /** * 表示知识空间可见性(公开空间 或 私有空间) *

示例值:private * * @param visibility {@link com.lark.oapi.service.wiki.v2.enums.SpaceSpaceVisibilityEnum} * @return */ public Builder visibility(com.lark.oapi.service.wiki.v2.enums.SpaceSpaceVisibilityEnum visibility) { this.visibility = visibility.getValue(); return this; } /** * 表示知识空间的分享状态 *

示例值:open * * @param openSharing * @return */ public Builder openSharing(String openSharing) { this.openSharing = openSharing; return this; } /** * 表示知识空间的分享状态 *

示例值:open * * @param openSharing {@link com.lark.oapi.service.wiki.v2.enums.SpaceOpenSharingEnum} * @return */ public Builder openSharing(com.lark.oapi.service.wiki.v2.enums.SpaceOpenSharingEnum openSharing) { this.openSharing = openSharing.getValue(); return this; } public Space build() { return new Space(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy