com.tencentcloudapi.tcb.v20180608.models.ModifyDatabaseACLRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-tcb Show documentation
Show all versions of tencentcloud-sdk-java-tcb Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.tcb.v20180608.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyDatabaseACLRequest extends AbstractModel{
/**
* 环境ID
*/
@SerializedName("EnvId")
@Expose
private String EnvId;
/**
* 集合名称
*/
@SerializedName("CollectionName")
@Expose
private String CollectionName;
/**
* 权限标签。包含以下取值:
READONLY:所有用户可读,仅创建者和管理员可写
PRIVATE:仅创建者及管理员可读写
ADMINWRITE:所有用户可读,仅管理员可写
ADMINONLY:仅管理员可读写
*/
@SerializedName("AclTag")
@Expose
private String AclTag;
/**
* Get 环境ID
* @return EnvId 环境ID
*/
public String getEnvId() {
return this.EnvId;
}
/**
* Set 环境ID
* @param EnvId 环境ID
*/
public void setEnvId(String EnvId) {
this.EnvId = EnvId;
}
/**
* Get 集合名称
* @return CollectionName 集合名称
*/
public String getCollectionName() {
return this.CollectionName;
}
/**
* Set 集合名称
* @param CollectionName 集合名称
*/
public void setCollectionName(String CollectionName) {
this.CollectionName = CollectionName;
}
/**
* Get 权限标签。包含以下取值:
READONLY:所有用户可读,仅创建者和管理员可写
PRIVATE:仅创建者及管理员可读写
ADMINWRITE:所有用户可读,仅管理员可写
ADMINONLY:仅管理员可读写
* @return AclTag 权限标签。包含以下取值:
READONLY:所有用户可读,仅创建者和管理员可写
PRIVATE:仅创建者及管理员可读写
ADMINWRITE:所有用户可读,仅管理员可写
ADMINONLY:仅管理员可读写
*/
public String getAclTag() {
return this.AclTag;
}
/**
* Set 权限标签。包含以下取值:
READONLY:所有用户可读,仅创建者和管理员可写
PRIVATE:仅创建者及管理员可读写
ADMINWRITE:所有用户可读,仅管理员可写
ADMINONLY:仅管理员可读写
* @param AclTag 权限标签。包含以下取值:
READONLY:所有用户可读,仅创建者和管理员可写
PRIVATE:仅创建者及管理员可读写
ADMINWRITE:所有用户可读,仅管理员可写
ADMINONLY:仅管理员可读写
*/
public void setAclTag(String AclTag) {
this.AclTag = AclTag;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "EnvId", this.EnvId);
this.setParamSimple(map, prefix + "CollectionName", this.CollectionName);
this.setParamSimple(map, prefix + "AclTag", this.AclTag);
}
}