com.tencentcloudapi.dcdb.v20180411.models.DescribeAccountPrivilegesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.dcdb.v20180411.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeAccountPrivilegesRequest extends AbstractModel{
/**
* Instance ID in the format of dcdbt-ow7t8lmc.
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Login username.
*/
@SerializedName("UserName")
@Expose
private String UserName;
/**
* Access host allowed for a user. An account is uniquely identified by username and host.
*/
@SerializedName("Host")
@Expose
private String Host;
/**
* Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored.
*/
@SerializedName("DbName")
@Expose
private String DbName;
/**
* Type. Valid values: table, view, proc, func, \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be queried (i.e., `db.\*`), in which case the `Object` parameter will be ignored.
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* Type name. For example, if `Type` is `table`, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty.
*/
@SerializedName("Object")
@Expose
private String Object;
/**
* If `Type` is `table` and `ColName` is `\*`, the permissions of the table will be queried; if `ColName` is a specific field name, the permissions of the corresponding field will be queried.
*/
@SerializedName("ColName")
@Expose
private String ColName;
/**
* Get Instance ID in the format of dcdbt-ow7t8lmc.
* @return InstanceId Instance ID in the format of dcdbt-ow7t8lmc.
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set Instance ID in the format of dcdbt-ow7t8lmc.
* @param InstanceId Instance ID in the format of dcdbt-ow7t8lmc.
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Login username.
* @return UserName Login username.
*/
public String getUserName() {
return this.UserName;
}
/**
* Set Login username.
* @param UserName Login username.
*/
public void setUserName(String UserName) {
this.UserName = UserName;
}
/**
* Get Access host allowed for a user. An account is uniquely identified by username and host.
* @return Host Access host allowed for a user. An account is uniquely identified by username and host.
*/
public String getHost() {
return this.Host;
}
/**
* Set Access host allowed for a user. An account is uniquely identified by username and host.
* @param Host Access host allowed for a user. An account is uniquely identified by username and host.
*/
public void setHost(String Host) {
this.Host = Host;
}
/**
* Get Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored.
* @return DbName Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored.
*/
public String getDbName() {
return this.DbName;
}
/**
* Set Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored.
* @param DbName Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored.
*/
public void setDbName(String DbName) {
this.DbName = DbName;
}
/**
* Get Type. Valid values: table, view, proc, func, \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be queried (i.e., `db.\*`), in which case the `Object` parameter will be ignored.
* @return Type Type. Valid values: table, view, proc, func, \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be queried (i.e., `db.\*`), in which case the `Object` parameter will be ignored.
*/
public String getType() {
return this.Type;
}
/**
* Set Type. Valid values: table, view, proc, func, \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be queried (i.e., `db.\*`), in which case the `Object` parameter will be ignored.
* @param Type Type. Valid values: table, view, proc, func, \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be queried (i.e., `db.\*`), in which case the `Object` parameter will be ignored.
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get Type name. For example, if `Type` is `table`, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty.
* @return Object Type name. For example, if `Type` is `table`, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty.
*/
public String getObject() {
return this.Object;
}
/**
* Set Type name. For example, if `Type` is `table`, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty.
* @param Object Type name. For example, if `Type` is `table`, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty.
*/
public void setObject(String Object) {
this.Object = Object;
}
/**
* Get If `Type` is `table` and `ColName` is `\*`, the permissions of the table will be queried; if `ColName` is a specific field name, the permissions of the corresponding field will be queried.
* @return ColName If `Type` is `table` and `ColName` is `\*`, the permissions of the table will be queried; if `ColName` is a specific field name, the permissions of the corresponding field will be queried.
*/
public String getColName() {
return this.ColName;
}
/**
* Set If `Type` is `table` and `ColName` is `\*`, the permissions of the table will be queried; if `ColName` is a specific field name, the permissions of the corresponding field will be queried.
* @param ColName If `Type` is `table` and `ColName` is `\*`, the permissions of the table will be queried; if `ColName` is a specific field name, the permissions of the corresponding field will be queried.
*/
public void setColName(String ColName) {
this.ColName = ColName;
}
public DescribeAccountPrivilegesRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeAccountPrivilegesRequest(DescribeAccountPrivilegesRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.UserName != null) {
this.UserName = new String(source.UserName);
}
if (source.Host != null) {
this.Host = new String(source.Host);
}
if (source.DbName != null) {
this.DbName = new String(source.DbName);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.Object != null) {
this.Object = new String(source.Object);
}
if (source.ColName != null) {
this.ColName = new String(source.ColName);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "UserName", this.UserName);
this.setParamSimple(map, prefix + "Host", this.Host);
this.setParamSimple(map, prefix + "DbName", this.DbName);
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "Object", this.Object);
this.setParamSimple(map, prefix + "ColName", this.ColName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy