129 lines
3.6 KiB
C++
129 lines
3.6 KiB
C++
/*
|
|
* Copyright 2009-2017 Alibaba Cloud 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.
|
|
*/
|
|
|
|
#include <alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h>
|
|
|
|
using AlibabaCloud::Adb::Model::ModifyClusterConnectionStringRequest;
|
|
|
|
ModifyClusterConnectionStringRequest::ModifyClusterConnectionStringRequest() :
|
|
RpcServiceRequest("adb", "2019-03-15", "ModifyClusterConnectionString")
|
|
{
|
|
setMethod(HttpRequest::Method::Post);
|
|
}
|
|
|
|
ModifyClusterConnectionStringRequest::~ModifyClusterConnectionStringRequest()
|
|
{}
|
|
|
|
long ModifyClusterConnectionStringRequest::getResourceOwnerId()const
|
|
{
|
|
return resourceOwnerId_;
|
|
}
|
|
|
|
void ModifyClusterConnectionStringRequest::setResourceOwnerId(long resourceOwnerId)
|
|
{
|
|
resourceOwnerId_ = resourceOwnerId;
|
|
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
}
|
|
|
|
std::string ModifyClusterConnectionStringRequest::getConnectionStringPrefix()const
|
|
{
|
|
return connectionStringPrefix_;
|
|
}
|
|
|
|
void ModifyClusterConnectionStringRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix)
|
|
{
|
|
connectionStringPrefix_ = connectionStringPrefix;
|
|
setParameter("ConnectionStringPrefix", connectionStringPrefix);
|
|
}
|
|
|
|
std::string ModifyClusterConnectionStringRequest::getAccessKeyId()const
|
|
{
|
|
return accessKeyId_;
|
|
}
|
|
|
|
void ModifyClusterConnectionStringRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
{
|
|
accessKeyId_ = accessKeyId;
|
|
setParameter("AccessKeyId", accessKeyId);
|
|
}
|
|
|
|
std::string ModifyClusterConnectionStringRequest::getResourceOwnerAccount()const
|
|
{
|
|
return resourceOwnerAccount_;
|
|
}
|
|
|
|
void ModifyClusterConnectionStringRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
{
|
|
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
}
|
|
|
|
std::string ModifyClusterConnectionStringRequest::getDBClusterId()const
|
|
{
|
|
return dBClusterId_;
|
|
}
|
|
|
|
void ModifyClusterConnectionStringRequest::setDBClusterId(const std::string& dBClusterId)
|
|
{
|
|
dBClusterId_ = dBClusterId;
|
|
setParameter("DBClusterId", dBClusterId);
|
|
}
|
|
|
|
std::string ModifyClusterConnectionStringRequest::getOwnerAccount()const
|
|
{
|
|
return ownerAccount_;
|
|
}
|
|
|
|
void ModifyClusterConnectionStringRequest::setOwnerAccount(const std::string& ownerAccount)
|
|
{
|
|
ownerAccount_ = ownerAccount;
|
|
setParameter("OwnerAccount", ownerAccount);
|
|
}
|
|
|
|
long ModifyClusterConnectionStringRequest::getOwnerId()const
|
|
{
|
|
return ownerId_;
|
|
}
|
|
|
|
void ModifyClusterConnectionStringRequest::setOwnerId(long ownerId)
|
|
{
|
|
ownerId_ = ownerId;
|
|
setParameter("OwnerId", std::to_string(ownerId));
|
|
}
|
|
|
|
std::string ModifyClusterConnectionStringRequest::getCurrentConnectionString()const
|
|
{
|
|
return currentConnectionString_;
|
|
}
|
|
|
|
void ModifyClusterConnectionStringRequest::setCurrentConnectionString(const std::string& currentConnectionString)
|
|
{
|
|
currentConnectionString_ = currentConnectionString;
|
|
setParameter("CurrentConnectionString", currentConnectionString);
|
|
}
|
|
|
|
int ModifyClusterConnectionStringRequest::getPort()const
|
|
{
|
|
return port_;
|
|
}
|
|
|
|
void ModifyClusterConnectionStringRequest::setPort(int port)
|
|
{
|
|
port_ = port;
|
|
setParameter("Port", std::to_string(port));
|
|
}
|
|
|