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

com.lark.oapi.service.drive.v1.model.PermissionPublicRequest 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.drive.v1.model;

import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.drive.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 PermissionPublicRequest {
    /**
     * 允许内容被分享到组织外
     * 

示例值:true */ @SerializedName("external_access") private Boolean externalAccess; /** * 谁可以复制内容、创建副本、打印、下载 *

示例值:anyone_can_view */ @SerializedName("security_entity") private String securityEntity; /** * 谁可以评论 *

示例值:anyone_can_view */ @SerializedName("comment_entity") private String commentEntity; /** * 谁可以添加和管理协作者 *

示例值:anyone */ @SerializedName("share_entity") private String shareEntity; /** * 链接分享设置 *

示例值:tenant_readable */ @SerializedName("link_share_entity") private String linkShareEntity; /** * 允许非「可管理权限」的人分享到组织外 *

示例值:true */ @SerializedName("invite_external") private Boolean inviteExternal; // builder 开始 public PermissionPublicRequest() { } public PermissionPublicRequest(Builder builder) { /** * 允许内容被分享到组织外 *

示例值:true */ this.externalAccess = builder.externalAccess; /** * 谁可以复制内容、创建副本、打印、下载 *

示例值:anyone_can_view */ this.securityEntity = builder.securityEntity; /** * 谁可以评论 *

示例值:anyone_can_view */ this.commentEntity = builder.commentEntity; /** * 谁可以添加和管理协作者 *

示例值:anyone */ this.shareEntity = builder.shareEntity; /** * 链接分享设置 *

示例值:tenant_readable */ this.linkShareEntity = builder.linkShareEntity; /** * 允许非「可管理权限」的人分享到组织外 *

示例值:true */ this.inviteExternal = builder.inviteExternal; } public static Builder newBuilder() { return new Builder(); } public Boolean getExternalAccess() { return this.externalAccess; } public void setExternalAccess(Boolean externalAccess) { this.externalAccess = externalAccess; } public String getSecurityEntity() { return this.securityEntity; } public void setSecurityEntity(String securityEntity) { this.securityEntity = securityEntity; } public String getCommentEntity() { return this.commentEntity; } public void setCommentEntity(String commentEntity) { this.commentEntity = commentEntity; } public String getShareEntity() { return this.shareEntity; } public void setShareEntity(String shareEntity) { this.shareEntity = shareEntity; } public String getLinkShareEntity() { return this.linkShareEntity; } public void setLinkShareEntity(String linkShareEntity) { this.linkShareEntity = linkShareEntity; } public Boolean getInviteExternal() { return this.inviteExternal; } public void setInviteExternal(Boolean inviteExternal) { this.inviteExternal = inviteExternal; } public static class Builder { /** * 允许内容被分享到组织外 *

示例值:true */ private Boolean externalAccess; /** * 谁可以复制内容、创建副本、打印、下载 *

示例值:anyone_can_view */ private String securityEntity; /** * 谁可以评论 *

示例值:anyone_can_view */ private String commentEntity; /** * 谁可以添加和管理协作者 *

示例值:anyone */ private String shareEntity; /** * 链接分享设置 *

示例值:tenant_readable */ private String linkShareEntity; /** * 允许非「可管理权限」的人分享到组织外 *

示例值:true */ private Boolean inviteExternal; /** * 允许内容被分享到组织外 *

示例值:true * * @param externalAccess * @return */ public Builder externalAccess(Boolean externalAccess) { this.externalAccess = externalAccess; return this; } /** * 谁可以复制内容、创建副本、打印、下载 *

示例值:anyone_can_view * * @param securityEntity * @return */ public Builder securityEntity(String securityEntity) { this.securityEntity = securityEntity; return this; } /** * 谁可以复制内容、创建副本、打印、下载 *

示例值:anyone_can_view * * @param securityEntity {@link com.lark.oapi.service.drive.v1.enums.PermissionPublicRequestSecurityEntityEnum} * @return */ public Builder securityEntity(com.lark.oapi.service.drive.v1.enums.PermissionPublicRequestSecurityEntityEnum securityEntity) { this.securityEntity = securityEntity.getValue(); return this; } /** * 谁可以评论 *

示例值:anyone_can_view * * @param commentEntity * @return */ public Builder commentEntity(String commentEntity) { this.commentEntity = commentEntity; return this; } /** * 谁可以评论 *

示例值:anyone_can_view * * @param commentEntity {@link com.lark.oapi.service.drive.v1.enums.PermissionPublicRequestCommentEntityEnum} * @return */ public Builder commentEntity(com.lark.oapi.service.drive.v1.enums.PermissionPublicRequestCommentEntityEnum commentEntity) { this.commentEntity = commentEntity.getValue(); return this; } /** * 谁可以添加和管理协作者 *

示例值:anyone * * @param shareEntity * @return */ public Builder shareEntity(String shareEntity) { this.shareEntity = shareEntity; return this; } /** * 谁可以添加和管理协作者 *

示例值:anyone * * @param shareEntity {@link com.lark.oapi.service.drive.v1.enums.PermissionPublicRequestShareEntityEnum} * @return */ public Builder shareEntity(com.lark.oapi.service.drive.v1.enums.PermissionPublicRequestShareEntityEnum shareEntity) { this.shareEntity = shareEntity.getValue(); return this; } /** * 链接分享设置 *

示例值:tenant_readable * * @param linkShareEntity * @return */ public Builder linkShareEntity(String linkShareEntity) { this.linkShareEntity = linkShareEntity; return this; } /** * 链接分享设置 *

示例值:tenant_readable * * @param linkShareEntity {@link com.lark.oapi.service.drive.v1.enums.PermissionPublicRequestLinkShareEntityEnum} * @return */ public Builder linkShareEntity(com.lark.oapi.service.drive.v1.enums.PermissionPublicRequestLinkShareEntityEnum linkShareEntity) { this.linkShareEntity = linkShareEntity.getValue(); return this; } /** * 允许非「可管理权限」的人分享到组织外 *

示例值:true * * @param inviteExternal * @return */ public Builder inviteExternal(Boolean inviteExternal) { this.inviteExternal = inviteExternal; return this; } public PermissionPublicRequest build() { return new PermissionPublicRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy