com.tencentcloudapi.sqlserver.v20180328.models.ModifyAccountPrivilegeRequest Maven / Gradle / Ivy
/*
* 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.sqlserver.v20180328.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyAccountPrivilegeRequest extends AbstractModel{
/**
* Database instance ID in the format of mssql-njj2mtpl
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Account permission change information
*/
@SerializedName("Accounts")
@Expose
private AccountPrivilegeModifyInfo [] Accounts;
/**
* Get Database instance ID in the format of mssql-njj2mtpl
* @return InstanceId Database instance ID in the format of mssql-njj2mtpl
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set Database instance ID in the format of mssql-njj2mtpl
* @param InstanceId Database instance ID in the format of mssql-njj2mtpl
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Account permission change information
* @return Accounts Account permission change information
*/
public AccountPrivilegeModifyInfo [] getAccounts() {
return this.Accounts;
}
/**
* Set Account permission change information
* @param Accounts Account permission change information
*/
public void setAccounts(AccountPrivilegeModifyInfo [] Accounts) {
this.Accounts = Accounts;
}
public ModifyAccountPrivilegeRequest() {
}
/**
* 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 ModifyAccountPrivilegeRequest(ModifyAccountPrivilegeRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Accounts != null) {
this.Accounts = new AccountPrivilegeModifyInfo[source.Accounts.length];
for (int i = 0; i < source.Accounts.length; i++) {
this.Accounts[i] = new AccountPrivilegeModifyInfo(source.Accounts[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamArrayObj(map, prefix + "Accounts.", this.Accounts);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy