ECS SDK Auto Released By zhengguang.yzg,Version:1.33.3
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/AddIpRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::AddIpRangeRequest;
|
||||
|
||||
AddIpRangeRequest::AddIpRangeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "AddIpRange")
|
||||
{}
|
||||
|
||||
AddIpRangeRequest::~AddIpRangeRequest()
|
||||
{}
|
||||
|
||||
std::string AddIpRangeRequest::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long AddIpRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
long AddIpRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/AddIpRangeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
AddIpRangeResult::AddIpRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddIpRangeResult::AddIpRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddIpRangeResult::~AddIpRangeResult()
|
||||
{}
|
||||
|
||||
void AddIpRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/AttachVolumeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::AttachVolumeRequest;
|
||||
|
||||
AttachVolumeRequest::AttachVolumeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "AttachVolume")
|
||||
{}
|
||||
|
||||
AttachVolumeRequest::~AttachVolumeRequest()
|
||||
{}
|
||||
|
||||
long AttachVolumeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AttachVolumeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AttachVolumeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AttachVolumeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AttachVolumeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AttachVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AttachVolumeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AttachVolumeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AttachVolumeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AttachVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AttachVolumeRequest::getVolumeId()const
|
||||
{
|
||||
return volumeId_;
|
||||
}
|
||||
|
||||
void AttachVolumeRequest::setVolumeId(const std::string& volumeId)
|
||||
{
|
||||
volumeId_ = volumeId;
|
||||
setParameter("VolumeId", volumeId);
|
||||
}
|
||||
|
||||
long AttachVolumeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AttachVolumeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/AttachVolumeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
AttachVolumeResult::AttachVolumeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachVolumeResult::AttachVolumeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachVolumeResult::~AttachVolumeResult()
|
||||
{}
|
||||
|
||||
void AttachVolumeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/BindIpRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::BindIpRangeRequest;
|
||||
|
||||
BindIpRangeRequest::BindIpRangeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "BindIpRange")
|
||||
{}
|
||||
|
||||
BindIpRangeRequest::~BindIpRangeRequest()
|
||||
{}
|
||||
|
||||
std::string BindIpRangeRequest::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long BindIpRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BindIpRangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BindIpRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string BindIpRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long BindIpRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/BindIpRangeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
BindIpRangeResult::BindIpRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindIpRangeResult::BindIpRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindIpRangeResult::~BindIpRangeResult()
|
||||
{}
|
||||
|
||||
void BindIpRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,280 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CancelAgreementRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CancelAgreementRequest;
|
||||
|
||||
CancelAgreementRequest::CancelAgreementRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CancelAgreement")
|
||||
{}
|
||||
|
||||
CancelAgreementRequest::~CancelAgreementRequest()
|
||||
{}
|
||||
|
||||
std::string CancelAgreementRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
long CancelAgreementRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CancelAgreementRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
bool CancelAgreementRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CancelAgreementRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool CancelAgreementRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool CancelAgreementRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CancelAgreementRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
bool CancelAgreementRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getAgreementType()const
|
||||
{
|
||||
return agreementType_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setAgreementType(const std::string& agreementType)
|
||||
{
|
||||
agreementType_ = agreementType;
|
||||
setParameter("AgreementType", agreementType);
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CancelAgreementRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CancelAgreementRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CancelAgreementRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CancelAgreementResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CancelAgreementResult::CancelAgreementResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelAgreementResult::CancelAgreementResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelAgreementResult::~CancelAgreementResult()
|
||||
{}
|
||||
|
||||
void CancelAgreementResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,291 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CancelUserEventRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CancelUserEventRequest;
|
||||
|
||||
CancelUserEventRequest::CancelUserEventRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CancelUserEvent")
|
||||
{}
|
||||
|
||||
CancelUserEventRequest::~CancelUserEventRequest()
|
||||
{}
|
||||
|
||||
std::string CancelUserEventRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
long CancelUserEventRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CancelUserEventRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CancelUserEventRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CancelUserEventRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CancelUserEventRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CancelUserEventRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CancelUserEventRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool CancelUserEventRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool CancelUserEventRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string CancelUserEventRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CancelUserEventRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CancelUserEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CancelUserEventResult::CancelUserEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelUserEventResult::CancelUserEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelUserEventResult::~CancelUserEventResult()
|
||||
{}
|
||||
|
||||
void CancelUserEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EventId"].isNull())
|
||||
eventId_ = value["EventId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CancelUserEventResult::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CheckAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CheckAutoSnapshotPolicyRequest;
|
||||
|
||||
CheckAutoSnapshotPolicyRequest::CheckAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CheckAutoSnapshotPolicy")
|
||||
{}
|
||||
|
||||
CheckAutoSnapshotPolicyRequest::~CheckAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled()const
|
||||
{
|
||||
return dataDiskPolicyEnabled_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled)
|
||||
{
|
||||
dataDiskPolicyEnabled_ = dataDiskPolicyEnabled;
|
||||
setParameter("DataDiskPolicyEnabled", std::to_string(dataDiskPolicyEnabled));
|
||||
}
|
||||
|
||||
long CheckAutoSnapshotPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionDays()const
|
||||
{
|
||||
return dataDiskPolicyRetentionDays_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays)
|
||||
{
|
||||
dataDiskPolicyRetentionDays_ = dataDiskPolicyRetentionDays;
|
||||
setParameter("DataDiskPolicyRetentionDays", std::to_string(dataDiskPolicyRetentionDays));
|
||||
}
|
||||
|
||||
std::string CheckAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionLastWeek()const
|
||||
{
|
||||
return systemDiskPolicyRetentionLastWeek_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek)
|
||||
{
|
||||
systemDiskPolicyRetentionLastWeek_ = systemDiskPolicyRetentionLastWeek;
|
||||
setParameter("SystemDiskPolicyRetentionLastWeek", std::to_string(systemDiskPolicyRetentionLastWeek));
|
||||
}
|
||||
|
||||
std::string CheckAutoSnapshotPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyTimePeriod()const
|
||||
{
|
||||
return systemDiskPolicyTimePeriod_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod)
|
||||
{
|
||||
systemDiskPolicyTimePeriod_ = systemDiskPolicyTimePeriod;
|
||||
setParameter("SystemDiskPolicyTimePeriod", std::to_string(systemDiskPolicyTimePeriod));
|
||||
}
|
||||
|
||||
long CheckAutoSnapshotPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionLastWeek()const
|
||||
{
|
||||
return dataDiskPolicyRetentionLastWeek_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek)
|
||||
{
|
||||
dataDiskPolicyRetentionLastWeek_ = dataDiskPolicyRetentionLastWeek;
|
||||
setParameter("DataDiskPolicyRetentionLastWeek", std::to_string(dataDiskPolicyRetentionLastWeek));
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionDays()const
|
||||
{
|
||||
return systemDiskPolicyRetentionDays_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays)
|
||||
{
|
||||
systemDiskPolicyRetentionDays_ = systemDiskPolicyRetentionDays;
|
||||
setParameter("SystemDiskPolicyRetentionDays", std::to_string(systemDiskPolicyRetentionDays));
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyTimePeriod()const
|
||||
{
|
||||
return dataDiskPolicyTimePeriod_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod)
|
||||
{
|
||||
dataDiskPolicyTimePeriod_ = dataDiskPolicyTimePeriod;
|
||||
setParameter("DataDiskPolicyTimePeriod", std::to_string(dataDiskPolicyTimePeriod));
|
||||
}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyEnabled()const
|
||||
{
|
||||
return systemDiskPolicyEnabled_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled)
|
||||
{
|
||||
systemDiskPolicyEnabled_ = systemDiskPolicyEnabled;
|
||||
setParameter("SystemDiskPolicyEnabled", std::to_string(systemDiskPolicyEnabled));
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CheckAutoSnapshotPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckAutoSnapshotPolicyResult::~CheckAutoSnapshotPolicyResult()
|
||||
{}
|
||||
|
||||
void CheckAutoSnapshotPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AutoSnapshotOccupation"].isNull())
|
||||
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
|
||||
if(!value["IsPermittedModify"].isNull())
|
||||
isPermittedModify_ = value["IsPermittedModify"].asString();
|
||||
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const
|
||||
{
|
||||
return autoSnapshotOccupation_;
|
||||
}
|
||||
|
||||
std::string CheckAutoSnapshotPolicyResult::getIsPermittedModify()const
|
||||
{
|
||||
return isPermittedModify_;
|
||||
}
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CheckDiskEnableAutoSnapshotValidationRequest;
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationRequest::CheckDiskEnableAutoSnapshotValidationRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CheckDiskEnableAutoSnapshotValidation")
|
||||
{}
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationRequest::~CheckDiskEnableAutoSnapshotValidationRequest()
|
||||
{}
|
||||
|
||||
long CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationRequest::getDiskIds()const
|
||||
{
|
||||
return diskIds_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setDiskIds(const std::string& diskIds)
|
||||
{
|
||||
diskIds_ = diskIds;
|
||||
setParameter("DiskIds", diskIds);
|
||||
}
|
||||
|
||||
long CheckDiskEnableAutoSnapshotValidationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult::~CheckDiskEnableAutoSnapshotValidationResult()
|
||||
{}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsPermitted"].isNull())
|
||||
isPermitted_ = value["IsPermitted"].asString();
|
||||
if(!value["AutoSnapshotOccupation"].isNull())
|
||||
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
|
||||
|
||||
}
|
||||
|
||||
int CheckDiskEnableAutoSnapshotValidationResult::getAutoSnapshotOccupation()const
|
||||
{
|
||||
return autoSnapshotOccupation_;
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationResult::getIsPermitted()const
|
||||
{
|
||||
return isPermitted_;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,17 @@ void CreateInstanceRequest::setSpotPriceLimit(float spotPriceLimit)
|
||||
setParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
|
||||
}
|
||||
|
||||
bool CreateInstanceRequest::getDeletionProtection()const
|
||||
{
|
||||
return deletionProtection_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDeletionProtection(bool deletionProtection)
|
||||
{
|
||||
deletionProtection_ = deletionProtection;
|
||||
setParameter("DeletionProtection", std::to_string(deletionProtection));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
|
||||
@@ -1,313 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CreateUserEventRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CreateUserEventRequest;
|
||||
|
||||
CreateUserEventRequest::CreateUserEventRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CreateUserEvent")
|
||||
{}
|
||||
|
||||
CreateUserEventRequest::~CreateUserEventRequest()
|
||||
{}
|
||||
|
||||
long CreateUserEventRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateUserEventRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateUserEventRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateUserEventRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getPlanTime()const
|
||||
{
|
||||
return planTime_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setPlanTime(const std::string& planTime)
|
||||
{
|
||||
planTime_ = planTime;
|
||||
setParameter("PlanTime", planTime);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateUserEventRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setExpireTime(const std::string& expireTime)
|
||||
{
|
||||
expireTime_ = expireTime;
|
||||
setParameter("ExpireTime", expireTime);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateUserEventRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CreateUserEventRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool CreateUserEventRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool CreateUserEventRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateUserEventRequest::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
void CreateUserEventRequest::setEventType(const std::string& eventType)
|
||||
{
|
||||
eventType_ = eventType;
|
||||
setParameter("EventType", eventType);
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CreateUserEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CreateUserEventResult::CreateUserEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserEventResult::CreateUserEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserEventResult::~CreateUserEventResult()
|
||||
{}
|
||||
|
||||
void CreateUserEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EventId"].isNull())
|
||||
eventId_ = value["EventId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateUserEventResult::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
@@ -1,187 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CreateVolumeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CreateVolumeRequest;
|
||||
|
||||
CreateVolumeRequest::CreateVolumeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CreateVolume")
|
||||
{}
|
||||
|
||||
CreateVolumeRequest::~CreateVolumeRequest()
|
||||
{}
|
||||
|
||||
long CreateVolumeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateVolumeRequest::getSnapshotId()const
|
||||
{
|
||||
return snapshotId_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setSnapshotId(const std::string& snapshotId)
|
||||
{
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter("SnapshotId", snapshotId);
|
||||
}
|
||||
|
||||
std::string CreateVolumeRequest::getVolumeName()const
|
||||
{
|
||||
return volumeName_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setVolumeName(const std::string& volumeName)
|
||||
{
|
||||
volumeName_ = volumeName;
|
||||
setParameter("VolumeName", volumeName);
|
||||
}
|
||||
|
||||
bool CreateVolumeRequest::getVolumeEncrypted()const
|
||||
{
|
||||
return volumeEncrypted_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setVolumeEncrypted(bool volumeEncrypted)
|
||||
{
|
||||
volumeEncrypted_ = volumeEncrypted;
|
||||
setParameter("VolumeEncrypted", std::to_string(volumeEncrypted));
|
||||
}
|
||||
|
||||
std::string CreateVolumeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateVolumeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateVolumeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateVolumeRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateVolumeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateVolumeRequest::getVolumeCategory()const
|
||||
{
|
||||
return volumeCategory_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setVolumeCategory(const std::string& volumeCategory)
|
||||
{
|
||||
volumeCategory_ = volumeCategory;
|
||||
setParameter("VolumeCategory", volumeCategory);
|
||||
}
|
||||
|
||||
int CreateVolumeRequest::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setSize(int size)
|
||||
{
|
||||
size_ = size;
|
||||
setParameter("Size", std::to_string(size));
|
||||
}
|
||||
|
||||
std::string CreateVolumeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateVolumeRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::vector<CreateVolumeRequest::Tag> CreateVolumeRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateVolumeRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/CreateVolumeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CreateVolumeResult::CreateVolumeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVolumeResult::CreateVolumeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVolumeResult::~CreateVolumeResult()
|
||||
{}
|
||||
|
||||
void CreateVolumeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VolumeId"].isNull())
|
||||
volumeId_ = value["VolumeId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVolumeResult::getVolumeId()const
|
||||
{
|
||||
return volumeId_;
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DeleteRecycleBinRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DeleteRecycleBinRequest;
|
||||
|
||||
DeleteRecycleBinRequest::DeleteRecycleBinRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DeleteRecycleBin")
|
||||
{}
|
||||
|
||||
DeleteRecycleBinRequest::~DeleteRecycleBinRequest()
|
||||
{}
|
||||
|
||||
long DeleteRecycleBinRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteRecycleBinRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteRecycleBinRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteRecycleBinRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteRecycleBinRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRecycleBinRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteRecycleBinRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteRecycleBinRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteRecycleBinRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteRecycleBinRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteRecycleBinRequest::getResourceIds()const
|
||||
{
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
void DeleteRecycleBinRequest::setResourceIds(const std::string& resourceIds)
|
||||
{
|
||||
resourceIds_ = resourceIds;
|
||||
setParameter("ResourceIds", resourceIds);
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DeleteRecycleBinResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DeleteRecycleBinResult::DeleteRecycleBinResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRecycleBinResult::DeleteRecycleBinResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRecycleBinResult::~DeleteRecycleBinResult()
|
||||
{}
|
||||
|
||||
void DeleteRecycleBinResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DeleteVolumeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DeleteVolumeRequest;
|
||||
|
||||
DeleteVolumeRequest::DeleteVolumeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DeleteVolume")
|
||||
{}
|
||||
|
||||
DeleteVolumeRequest::~DeleteVolumeRequest()
|
||||
{}
|
||||
|
||||
long DeleteVolumeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteVolumeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteVolumeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteVolumeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteVolumeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteVolumeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteVolumeRequest::getVolumeId()const
|
||||
{
|
||||
return volumeId_;
|
||||
}
|
||||
|
||||
void DeleteVolumeRequest::setVolumeId(const std::string& volumeId)
|
||||
{
|
||||
volumeId_ = volumeId;
|
||||
setParameter("VolumeId", volumeId);
|
||||
}
|
||||
|
||||
long DeleteVolumeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteVolumeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DeleteVolumeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DeleteVolumeResult::DeleteVolumeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteVolumeResult::DeleteVolumeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteVolumeResult::~DeleteVolumeResult()
|
||||
{}
|
||||
|
||||
void DeleteVolumeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeAutoSnapshotPolicyRequest;
|
||||
|
||||
DescribeAutoSnapshotPolicyRequest::DescribeAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoSnapshotPolicy")
|
||||
{}
|
||||
|
||||
DescribeAutoSnapshotPolicyRequest::~DescribeAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeAutoSnapshotPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAutoSnapshotPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeAutoSnapshotPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeAutoSnapshotPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::~DescribeAutoSnapshotPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeAutoSnapshotPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto autoSnapshotPolicyNode = value["AutoSnapshotPolicy"];
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyEnabled"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyEnabled = autoSnapshotPolicyNode["SystemDiskPolicyEnabled"].asString();
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyTimePeriod"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyTimePeriod = autoSnapshotPolicyNode["SystemDiskPolicyTimePeriod"].asString();
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyRetentionDays"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyRetentionDays = autoSnapshotPolicyNode["SystemDiskPolicyRetentionDays"].asString();
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyRetentionLastWeek"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyRetentionLastWeek = autoSnapshotPolicyNode["SystemDiskPolicyRetentionLastWeek"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyEnabled"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyEnabled = autoSnapshotPolicyNode["DataDiskPolicyEnabled"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyTimePeriod"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyTimePeriod = autoSnapshotPolicyNode["DataDiskPolicyTimePeriod"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyRetentionDays"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyRetentionDays = autoSnapshotPolicyNode["DataDiskPolicyRetentionDays"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyRetentionLastWeek"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyRetentionLastWeek = autoSnapshotPolicyNode["DataDiskPolicyRetentionLastWeek"].asString();
|
||||
auto autoSnapshotExcutionStatusNode = value["AutoSnapshotExcutionStatus"];
|
||||
if(!autoSnapshotExcutionStatusNode["SystemDiskExcutionStatus"].isNull())
|
||||
autoSnapshotExcutionStatus_.systemDiskExcutionStatus = autoSnapshotExcutionStatusNode["SystemDiskExcutionStatus"].asString();
|
||||
if(!autoSnapshotExcutionStatusNode["DataDiskExcutionStatus"].isNull())
|
||||
autoSnapshotExcutionStatus_.dataDiskExcutionStatus = autoSnapshotExcutionStatusNode["DataDiskExcutionStatus"].asString();
|
||||
if(!value["AutoSnapshotOccupation"].isNull())
|
||||
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const
|
||||
{
|
||||
return autoSnapshotOccupation_;
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::AutoSnapshotExcutionStatus DescribeAutoSnapshotPolicyResult::getAutoSnapshotExcutionStatus()const
|
||||
{
|
||||
return autoSnapshotExcutionStatus_;
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::AutoSnapshotPolicy DescribeAutoSnapshotPolicyResult::getAutoSnapshotPolicy()const
|
||||
{
|
||||
return autoSnapshotPolicy_;
|
||||
}
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeDeploymentSetTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeDeploymentSetTopologyRequest;
|
||||
|
||||
DescribeDeploymentSetTopologyRequest::DescribeDeploymentSetTopologyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeDeploymentSetTopology")
|
||||
{}
|
||||
|
||||
DescribeDeploymentSetTopologyRequest::~DescribeDeploymentSetTopologyRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDeploymentSetTopologyRequest::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setDeploymentSetId(const std::string& deploymentSetId)
|
||||
{
|
||||
deploymentSetId_ = deploymentSetId;
|
||||
setParameter("DeploymentSetId", deploymentSetId);
|
||||
}
|
||||
|
||||
long DescribeDeploymentSetTopologyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDeploymentSetTopologyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDeploymentSetTopologyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDeploymentSetTopologyRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setGranularity(const std::string& granularity)
|
||||
{
|
||||
granularity_ = granularity;
|
||||
setParameter("Granularity", granularity);
|
||||
}
|
||||
|
||||
std::string DescribeDeploymentSetTopologyRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
std::string DescribeDeploymentSetTopologyRequest::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
std::string DescribeDeploymentSetTopologyRequest::getDeploymentSetName()const
|
||||
{
|
||||
return deploymentSetName_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setDeploymentSetName(const std::string& deploymentSetName)
|
||||
{
|
||||
deploymentSetName_ = deploymentSetName;
|
||||
setParameter("DeploymentSetName", deploymentSetName);
|
||||
}
|
||||
|
||||
long DescribeDeploymentSetTopologyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDeploymentSetTopologyRequest::getStrategy()const
|
||||
{
|
||||
return strategy_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetTopologyRequest::setStrategy(const std::string& strategy)
|
||||
{
|
||||
strategy_ = strategy;
|
||||
setParameter("Strategy", strategy);
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeDeploymentSetTopologyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeDeploymentSetTopologyResult::DescribeDeploymentSetTopologyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDeploymentSetTopologyResult::DescribeDeploymentSetTopologyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDeploymentSetTopologyResult::~DescribeDeploymentSetTopologyResult()
|
||||
{}
|
||||
|
||||
void DescribeDeploymentSetTopologyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSwitchs = value["Switchs"]["Switch"];
|
||||
for (auto value : allSwitchs)
|
||||
{
|
||||
Switch switchsObject;
|
||||
if(!value["SwitchId"].isNull())
|
||||
switchsObject.switchId = value["SwitchId"].asString();
|
||||
auto allHosts = value["Hosts"]["Host"];
|
||||
for (auto value : allHosts)
|
||||
{
|
||||
Switch::Host hostsObject;
|
||||
if(!value["HostId"].isNull())
|
||||
hostsObject.hostId = value["HostId"].asString();
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (auto value : allInstanceIds)
|
||||
hostsObject.instanceIds.push_back(value.asString());
|
||||
switchsObject.hosts.push_back(hostsObject);
|
||||
}
|
||||
switchs_.push_back(switchsObject);
|
||||
}
|
||||
auto allRacks = value["Racks"]["Rack"];
|
||||
for (auto value : allRacks)
|
||||
{
|
||||
Rack racksObject;
|
||||
if(!value["RackId"].isNull())
|
||||
racksObject.rackId = value["RackId"].asString();
|
||||
auto allHosts1 = value["Hosts"]["Host"];
|
||||
for (auto value : allHosts1)
|
||||
{
|
||||
Rack::Host2 hosts1Object;
|
||||
if(!value["HostId"].isNull())
|
||||
hosts1Object.hostId = value["HostId"].asString();
|
||||
auto allInstanceIds3 = value["InstanceIds"]["InstanceId"];
|
||||
for (auto value : allInstanceIds3)
|
||||
hosts1Object.instanceIds3.push_back(value.asString());
|
||||
racksObject.hosts1.push_back(hosts1Object);
|
||||
}
|
||||
racks_.push_back(racksObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDeploymentSetTopologyResult::Switch> DescribeDeploymentSetTopologyResult::getSwitchs()const
|
||||
{
|
||||
return switchs_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDeploymentSetTopologyResult::Rack> DescribeDeploymentSetTopologyResult::getRacks()const
|
||||
{
|
||||
return racks_;
|
||||
}
|
||||
|
||||
@@ -1,280 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeEventDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeEventDetailRequest;
|
||||
|
||||
DescribeEventDetailRequest::DescribeEventDetailRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeEventDetail")
|
||||
{}
|
||||
|
||||
DescribeEventDetailRequest::~DescribeEventDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEventDetailRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
@@ -1,136 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeEventDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventDetailResult::~DescribeEventDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeEventDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResourceId"].isNull())
|
||||
resourceId_ = value["ResourceId"].asString();
|
||||
if(!value["EventType"].isNull())
|
||||
eventType_ = value["EventType"].asString();
|
||||
if(!value["EventCategory"].isNull())
|
||||
eventCategory_ = value["EventCategory"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["SupportModify"].isNull())
|
||||
supportModify_ = value["SupportModify"].asString();
|
||||
if(!value["PlanTime"].isNull())
|
||||
planTime_ = value["PlanTime"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["EventId"].isNull())
|
||||
eventId_ = value["EventId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["EffectTime"].isNull())
|
||||
effectTime_ = value["EffectTime"].asString();
|
||||
if(!value["LimitTime"].isNull())
|
||||
limitTime_ = value["LimitTime"].asString();
|
||||
if(!value["Mark"].isNull())
|
||||
mark_ = value["Mark"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getLimitTime()const
|
||||
{
|
||||
return limitTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEventCategory()const
|
||||
{
|
||||
return eventCategory_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEffectTime()const
|
||||
{
|
||||
return effectTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getMark()const
|
||||
{
|
||||
return mark_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getPlanTime()const
|
||||
{
|
||||
return planTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getSupportModify()const
|
||||
{
|
||||
return supportModify_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
@@ -1,357 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeEventsRequest;
|
||||
|
||||
DescribeEventsRequest::DescribeEventsRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeEvents")
|
||||
{}
|
||||
|
||||
DescribeEventsRequest::~DescribeEventsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEventsRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
long DescribeEventsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeEventsRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeEventsRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
int DescribeEventsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DescribeEventsRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
int DescribeEventsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getPlanTime()const
|
||||
{
|
||||
return planTime_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setPlanTime(const std::string& planTime)
|
||||
{
|
||||
planTime_ = planTime;
|
||||
setParameter("PlanTime", planTime);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeEventsRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setExpireTime(const std::string& expireTime)
|
||||
{
|
||||
expireTime_ = expireTime;
|
||||
setParameter("ExpireTime", expireTime);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeEventsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool DescribeEventsRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DescribeEventsRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool DescribeEventsRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setEventType(const std::string& eventType)
|
||||
{
|
||||
eventType_ = eventType;
|
||||
setParameter("EventType", eventType);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeEventsResult::DescribeEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventsResult::DescribeEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventsResult::~DescribeEventsResult()
|
||||
{}
|
||||
|
||||
void DescribeEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEvents = value["Events"]["Event"];
|
||||
for (auto value : allEvents)
|
||||
{
|
||||
Event eventsObject;
|
||||
if(!value["ResourceId"].isNull())
|
||||
eventsObject.resourceId = value["ResourceId"].asString();
|
||||
if(!value["EventType"].isNull())
|
||||
eventsObject.eventType = value["EventType"].asString();
|
||||
if(!value["EventCategory"].isNull())
|
||||
eventsObject.eventCategory = value["EventCategory"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
eventsObject.status = value["Status"].asString();
|
||||
if(!value["SupportModify"].isNull())
|
||||
eventsObject.supportModify = value["SupportModify"].asString();
|
||||
if(!value["PlanTime"].isNull())
|
||||
eventsObject.planTime = value["PlanTime"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
eventsObject.expireTime = value["ExpireTime"].asString();
|
||||
if(!value["EventId"].isNull())
|
||||
eventsObject.eventId = value["EventId"].asString();
|
||||
events_.push_back(eventsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeEventsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeEventsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEventsResult::Event> DescribeEventsResult::getEvents()const
|
||||
{
|
||||
return events_;
|
||||
}
|
||||
|
||||
int DescribeEventsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeInstanceTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeInstanceTopologyRequest;
|
||||
|
||||
DescribeInstanceTopologyRequest::DescribeInstanceTopologyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTopology")
|
||||
{}
|
||||
|
||||
DescribeInstanceTopologyRequest::~DescribeInstanceTopologyRequest()
|
||||
{}
|
||||
|
||||
long DescribeInstanceTopologyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceTopologyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceTopologyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceTopologyRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setInstanceIds(const std::string& instanceIds)
|
||||
{
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter("InstanceIds", instanceIds);
|
||||
}
|
||||
|
||||
long DescribeInstanceTopologyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeInstanceTopologyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeInstanceTopologyResult::DescribeInstanceTopologyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstanceTopologyResult::DescribeInstanceTopologyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstanceTopologyResult::~DescribeInstanceTopologyResult()
|
||||
{}
|
||||
|
||||
void DescribeInstanceTopologyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTopologys = value["Topologys"]["Topology"];
|
||||
for (auto value : allTopologys)
|
||||
{
|
||||
Topology topologysObject;
|
||||
if(!value["InstanceId"].isNull())
|
||||
topologysObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["HostId"].isNull())
|
||||
topologysObject.hostId = value["HostId"].asString();
|
||||
topologys_.push_back(topologysObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeInstanceTopologyResult::Topology> DescribeInstanceTopologyResult::getTopologys()const
|
||||
{
|
||||
return topologys_;
|
||||
}
|
||||
|
||||
@@ -128,6 +128,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.stoppedMode = value["StoppedMode"].asString();
|
||||
if(!value["CreditSpecification"].isNull())
|
||||
instancesObject.creditSpecification = value["CreditSpecification"].asString();
|
||||
if(!value["DeletionProtection"].isNull())
|
||||
instancesObject.deletionProtection = value["DeletionProtection"].asString() == "true";
|
||||
auto allNetworkInterfaces = value["NetworkInterfaces"]["NetworkInterface"];
|
||||
for (auto value : allNetworkInterfaces)
|
||||
{
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeIntranetAttributeKbRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeIntranetAttributeKbRequest;
|
||||
|
||||
DescribeIntranetAttributeKbRequest::DescribeIntranetAttributeKbRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeIntranetAttributeKb")
|
||||
{}
|
||||
|
||||
DescribeIntranetAttributeKbRequest::~DescribeIntranetAttributeKbRequest()
|
||||
{}
|
||||
|
||||
long DescribeIntranetAttributeKbRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeIntranetAttributeKbRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeIntranetAttributeKbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIntranetAttributeKbResult::~DescribeIntranetAttributeKbResult()
|
||||
{}
|
||||
|
||||
void DescribeIntranetAttributeKbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["VlanId"].isNull())
|
||||
vlanId_ = value["VlanId"].asString();
|
||||
if(!value["IntranetIpAddress"].isNull())
|
||||
intranetIpAddress_ = value["IntranetIpAddress"].asString();
|
||||
if(!value["IntranetMaxBandwidthIn"].isNull())
|
||||
intranetMaxBandwidthIn_ = std::stoi(value["IntranetMaxBandwidthIn"].asString());
|
||||
if(!value["IntranetMaxBandwidthOut"].isNull())
|
||||
intranetMaxBandwidthOut_ = std::stoi(value["IntranetMaxBandwidthOut"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthOut()const
|
||||
{
|
||||
return intranetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbResult::getVlanId()const
|
||||
{
|
||||
return vlanId_;
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbResult::getIntranetIpAddress()const
|
||||
{
|
||||
return intranetIpAddress_;
|
||||
}
|
||||
|
||||
int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthIn()const
|
||||
{
|
||||
return intranetMaxBandwidthIn_;
|
||||
}
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeIpRangesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeIpRangesRequest;
|
||||
|
||||
DescribeIpRangesRequest::DescribeIpRangesRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeIpRanges")
|
||||
{}
|
||||
|
||||
DescribeIpRangesRequest::~DescribeIpRangesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIpRangesRequest::getNicType()const
|
||||
{
|
||||
return nicType_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setNicType(const std::string& nicType)
|
||||
{
|
||||
nicType_ = nicType;
|
||||
setParameter("NicType", nicType);
|
||||
}
|
||||
|
||||
long DescribeIpRangesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeIpRangesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
long DescribeIpRangesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeIpRangesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeIpRangesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeIpRangesResult::DescribeIpRangesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIpRangesResult::DescribeIpRangesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIpRangesResult::~DescribeIpRangesResult()
|
||||
{}
|
||||
|
||||
void DescribeIpRangesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIpRanges = value["IpRanges"]["IpRange"];
|
||||
for (auto value : allIpRanges)
|
||||
{
|
||||
IpRange ipRangesObject;
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipRangesObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["NicType"].isNull())
|
||||
ipRangesObject.nicType = value["NicType"].asString();
|
||||
ipRanges_.push_back(ipRangesObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeIpRangesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeIpRangesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
int DescribeIpRangesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeIpRangesResult::IpRange> DescribeIpRangesResult::getIpRanges()const
|
||||
{
|
||||
return ipRanges_;
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeRecycleBinRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeRecycleBinRequest;
|
||||
|
||||
DescribeRecycleBinRequest::DescribeRecycleBinRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeRecycleBin")
|
||||
{}
|
||||
|
||||
DescribeRecycleBinRequest::~DescribeRecycleBinRequest()
|
||||
{}
|
||||
|
||||
long DescribeRecycleBinRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRecycleBinRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRecycleBinRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeRecycleBinRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string DescribeRecycleBinRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRecycleBinRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeRecycleBinRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRecycleBinRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRecycleBinRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeRecycleBinRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeRecycleBinRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRecycleBinRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeRecycleBinRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRecycleBinRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeRecycleBinRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRecycleBinRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeRecycleBinRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeRecycleBinRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeRecycleBinResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeRecycleBinResult::DescribeRecycleBinResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRecycleBinResult::DescribeRecycleBinResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRecycleBinResult::~DescribeRecycleBinResult()
|
||||
{}
|
||||
|
||||
void DescribeRecycleBinResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRecycleBinModels = value["RecycleBinModels"]["RecycleBinModel"];
|
||||
for (auto value : allRecycleBinModels)
|
||||
{
|
||||
RecycleBinModel recycleBinModelsObject;
|
||||
if(!value["ResourceId"].isNull())
|
||||
recycleBinModelsObject.resourceId = value["ResourceId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
recycleBinModelsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ResourceType"].isNull())
|
||||
recycleBinModelsObject.resourceType = value["ResourceType"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
recycleBinModelsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
recycleBinModelsObject.status = value["Status"].asString();
|
||||
auto allRelationResources = value["RelationResources"]["relationResource"];
|
||||
for (auto value : allRelationResources)
|
||||
{
|
||||
RecycleBinModel::RelationResource relationResourcesObject;
|
||||
if(!value["RelationResourceId"].isNull())
|
||||
relationResourcesObject.relationResourceId = value["RelationResourceId"].asString();
|
||||
if(!value["RelationResourceType"].isNull())
|
||||
relationResourcesObject.relationResourceType = value["RelationResourceType"].asString();
|
||||
recycleBinModelsObject.relationResources.push_back(relationResourcesObject);
|
||||
}
|
||||
recycleBinModels_.push_back(recycleBinModelsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeRecycleBinResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRecycleBinResult::RecycleBinModel> DescribeRecycleBinResult::getRecycleBinModels()const
|
||||
{
|
||||
return recycleBinModels_;
|
||||
}
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeTagKeysRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeTagKeysRequest;
|
||||
|
||||
DescribeTagKeysRequest::DescribeTagKeysRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeTagKeys")
|
||||
{}
|
||||
|
||||
DescribeTagKeysRequest::~DescribeTagKeysRequest()
|
||||
{}
|
||||
|
||||
long DescribeTagKeysRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeTagKeysRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeTagKeysRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeTagKeysRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string DescribeTagKeysRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeTagKeysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeTagKeysRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTagKeysRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeTagKeysRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeTagKeysRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeTagKeysRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeTagKeysRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeTagKeysRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeTagKeysRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
int DescribeTagKeysRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeTagKeysRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeTagKeysResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeTagKeysResult::DescribeTagKeysResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTagKeysResult::DescribeTagKeysResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTagKeysResult::~DescribeTagKeysResult()
|
||||
{}
|
||||
|
||||
void DescribeTagKeysResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagKeys = value["TagKeys"]["TagKey"];
|
||||
for (const auto &item : allTagKeys)
|
||||
tagKeys_.push_back(item.asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeTagKeysResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeTagKeysResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeTagKeysResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeTagKeysResult::getTagKeys()const
|
||||
{
|
||||
return tagKeys_;
|
||||
}
|
||||
|
||||
@@ -1,220 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeVolumesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeVolumesRequest;
|
||||
|
||||
DescribeVolumesRequest::DescribeVolumesRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeVolumes")
|
||||
{}
|
||||
|
||||
DescribeVolumesRequest::~DescribeVolumesRequest()
|
||||
{}
|
||||
|
||||
long DescribeVolumesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getSnapshotId()const
|
||||
{
|
||||
return snapshotId_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setSnapshotId(const std::string& snapshotId)
|
||||
{
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter("SnapshotId", snapshotId);
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getAutoSnapshotPolicyId()const
|
||||
{
|
||||
return autoSnapshotPolicyId_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId)
|
||||
{
|
||||
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
|
||||
setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
bool DescribeVolumesRequest::getEnableAutomatedSnapshotPolicy()const
|
||||
{
|
||||
return enableAutomatedSnapshotPolicy_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy)
|
||||
{
|
||||
enableAutomatedSnapshotPolicy_ = enableAutomatedSnapshotPolicy;
|
||||
setParameter("EnableAutomatedSnapshotPolicy", std::to_string(enableAutomatedSnapshotPolicy));
|
||||
}
|
||||
|
||||
long DescribeVolumesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeVolumesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getLockReason()const
|
||||
{
|
||||
return lockReason_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setLockReason(const std::string& lockReason)
|
||||
{
|
||||
lockReason_ = lockReason;
|
||||
setParameter("LockReason", lockReason);
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeVolumesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getVolumeIds()const
|
||||
{
|
||||
return volumeIds_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setVolumeIds(const std::string& volumeIds)
|
||||
{
|
||||
volumeIds_ = volumeIds;
|
||||
setParameter("VolumeIds", volumeIds);
|
||||
}
|
||||
|
||||
std::vector<DescribeVolumesRequest::Tag> DescribeVolumesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
std::string DescribeVolumesRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeVolumesRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DescribeVolumesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeVolumesResult::DescribeVolumesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVolumesResult::DescribeVolumesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVolumesResult::~DescribeVolumesResult()
|
||||
{}
|
||||
|
||||
void DescribeVolumesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVolumes = value["Volumes"]["Volume"];
|
||||
for (auto value : allVolumes)
|
||||
{
|
||||
Volume volumesObject;
|
||||
if(!value["VolumeId"].isNull())
|
||||
volumesObject.volumeId = value["VolumeId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
volumesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
volumesObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["VolumeName"].isNull())
|
||||
volumesObject.volumeName = value["VolumeName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
volumesObject.description = value["Description"].asString();
|
||||
if(!value["Category"].isNull())
|
||||
volumesObject.category = value["Category"].asString();
|
||||
if(!value["Size"].isNull())
|
||||
volumesObject.size = std::stoi(value["Size"].asString());
|
||||
if(!value["SourceSnapshotId"].isNull())
|
||||
volumesObject.sourceSnapshotId = value["SourceSnapshotId"].asString();
|
||||
if(!value["AutoSnapshotPolicyId"].isNull())
|
||||
volumesObject.autoSnapshotPolicyId = value["AutoSnapshotPolicyId"].asString();
|
||||
if(!value["SnapshotLinkId"].isNull())
|
||||
volumesObject.snapshotLinkId = value["SnapshotLinkId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
volumesObject.status = value["Status"].asString();
|
||||
if(!value["EnableAutomatedSnapshotPolicy"].isNull())
|
||||
volumesObject.enableAutomatedSnapshotPolicy = value["EnableAutomatedSnapshotPolicy"].asString() == "true";
|
||||
if(!value["CreationTime"].isNull())
|
||||
volumesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["VolumeChargeType"].isNull())
|
||||
volumesObject.volumeChargeType = value["VolumeChargeType"].asString();
|
||||
if(!value["MountInstanceNum"].isNull())
|
||||
volumesObject.mountInstanceNum = std::stoi(value["MountInstanceNum"].asString());
|
||||
if(!value["Encrypted"].isNull())
|
||||
volumesObject.encrypted = value["Encrypted"].asString() == "true";
|
||||
auto allOperationLocks = value["OperationLocks"]["OperationLock"];
|
||||
for (auto value : allOperationLocks)
|
||||
{
|
||||
Volume::OperationLock operationLocksObject;
|
||||
if(!value["LockReason"].isNull())
|
||||
operationLocksObject.lockReason = value["LockReason"].asString();
|
||||
volumesObject.operationLocks.push_back(operationLocksObject);
|
||||
}
|
||||
auto allMountInstances = value["MountInstances"]["MountInstance"];
|
||||
for (auto value : allMountInstances)
|
||||
{
|
||||
Volume::MountInstance mountInstancesObject;
|
||||
if(!value["InstanceId"].isNull())
|
||||
mountInstancesObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["Device"].isNull())
|
||||
mountInstancesObject.device = value["Device"].asString();
|
||||
if(!value["AttachedTime"].isNull())
|
||||
mountInstancesObject.attachedTime = value["AttachedTime"].asString();
|
||||
volumesObject.mountInstances.push_back(mountInstancesObject);
|
||||
}
|
||||
auto allTags = value["Tags"]["Tag"];
|
||||
for (auto value : allTags)
|
||||
{
|
||||
Volume::Tag tagsObject;
|
||||
if(!value["TagKey"].isNull())
|
||||
tagsObject.tagKey = value["TagKey"].asString();
|
||||
if(!value["TagValue"].isNull())
|
||||
tagsObject.tagValue = value["TagValue"].asString();
|
||||
volumesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
volumes_.push_back(volumesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeVolumesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeVolumesResult::Volume> DescribeVolumesResult::getVolumes()const
|
||||
{
|
||||
return volumes_;
|
||||
}
|
||||
|
||||
int DescribeVolumesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeVolumesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DetachVolumeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DetachVolumeRequest;
|
||||
|
||||
DetachVolumeRequest::DetachVolumeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DetachVolume")
|
||||
{}
|
||||
|
||||
DetachVolumeRequest::~DetachVolumeRequest()
|
||||
{}
|
||||
|
||||
long DetachVolumeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DetachVolumeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DetachVolumeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DetachVolumeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DetachVolumeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DetachVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DetachVolumeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DetachVolumeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DetachVolumeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DetachVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DetachVolumeRequest::getVolumeId()const
|
||||
{
|
||||
return volumeId_;
|
||||
}
|
||||
|
||||
void DetachVolumeRequest::setVolumeId(const std::string& volumeId)
|
||||
{
|
||||
volumeId_ = volumeId;
|
||||
setParameter("VolumeId", volumeId);
|
||||
}
|
||||
|
||||
long DetachVolumeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DetachVolumeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/DetachVolumeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DetachVolumeResult::DetachVolumeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachVolumeResult::DetachVolumeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachVolumeResult::~DetachVolumeResult()
|
||||
{}
|
||||
|
||||
void DetachVolumeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -102,6 +102,17 @@ void ModifyInstanceAttributeRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool ModifyInstanceAttributeRequest::getDeletionProtection()const
|
||||
{
|
||||
return deletionProtection_;
|
||||
}
|
||||
|
||||
void ModifyInstanceAttributeRequest::setDeletionProtection(bool deletionProtection)
|
||||
{
|
||||
deletionProtection_ = deletionProtection;
|
||||
setParameter("DeletionProtection", std::to_string(deletionProtection));
|
||||
}
|
||||
|
||||
std::string ModifyInstanceAttributeRequest::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyIntranetBandwidthKbRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ModifyIntranetBandwidthKbRequest;
|
||||
|
||||
ModifyIntranetBandwidthKbRequest::ModifyIntranetBandwidthKbRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ModifyIntranetBandwidthKb")
|
||||
{}
|
||||
|
||||
ModifyIntranetBandwidthKbRequest::~ModifyIntranetBandwidthKbRequest()
|
||||
{}
|
||||
|
||||
long ModifyIntranetBandwidthKbRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthOut()const
|
||||
{
|
||||
return intranetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut)
|
||||
{
|
||||
intranetMaxBandwidthOut_ = intranetMaxBandwidthOut;
|
||||
setParameter("IntranetMaxBandwidthOut", std::to_string(intranetMaxBandwidthOut));
|
||||
}
|
||||
|
||||
std::string ModifyIntranetBandwidthKbRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthIn()const
|
||||
{
|
||||
return intranetMaxBandwidthIn_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn)
|
||||
{
|
||||
intranetMaxBandwidthIn_ = intranetMaxBandwidthIn;
|
||||
setParameter("IntranetMaxBandwidthIn", std::to_string(intranetMaxBandwidthIn));
|
||||
}
|
||||
|
||||
std::string ModifyIntranetBandwidthKbRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyIntranetBandwidthKbRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyIntranetBandwidthKbRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyIntranetBandwidthKbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyIntranetBandwidthKbResult::~ModifyIntranetBandwidthKbResult()
|
||||
{}
|
||||
|
||||
void ModifyIntranetBandwidthKbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,313 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyUserEventAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ModifyUserEventAttributeRequest;
|
||||
|
||||
ModifyUserEventAttributeRequest::ModifyUserEventAttributeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ModifyUserEventAttribute")
|
||||
{}
|
||||
|
||||
ModifyUserEventAttributeRequest::~ModifyUserEventAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
long ModifyUserEventAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long ModifyUserEventAttributeRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ModifyUserEventAttributeRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool ModifyUserEventAttributeRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ModifyUserEventAttributeRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getNewPlanTime()const
|
||||
{
|
||||
return newPlanTime_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setNewPlanTime(const std::string& newPlanTime)
|
||||
{
|
||||
newPlanTime_ = newPlanTime;
|
||||
setParameter("NewPlanTime", newPlanTime);
|
||||
}
|
||||
|
||||
long ModifyUserEventAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool ModifyUserEventAttributeRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool ModifyUserEventAttributeRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool ModifyUserEventAttributeRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getNewExpireTime()const
|
||||
{
|
||||
return newExpireTime_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setNewExpireTime(const std::string& newExpireTime)
|
||||
{
|
||||
newExpireTime_ = newExpireTime;
|
||||
setParameter("NewExpireTime", newExpireTime);
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ModifyUserEventAttributeRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyUserEventAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ModifyUserEventAttributeResult::ModifyUserEventAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyUserEventAttributeResult::ModifyUserEventAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyUserEventAttributeResult::~ModifyUserEventAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyUserEventAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EventId"].isNull())
|
||||
eventId_ = value["EventId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyUserEventAttributeResult::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyVolumeAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ModifyVolumeAttributeRequest;
|
||||
|
||||
ModifyVolumeAttributeRequest::ModifyVolumeAttributeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ModifyVolumeAttribute")
|
||||
{}
|
||||
|
||||
ModifyVolumeAttributeRequest::~ModifyVolumeAttributeRequest()
|
||||
{}
|
||||
|
||||
long ModifyVolumeAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyVolumeAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyVolumeAttributeRequest::getVolumeName()const
|
||||
{
|
||||
return volumeName_;
|
||||
}
|
||||
|
||||
void ModifyVolumeAttributeRequest::setVolumeName(const std::string& volumeName)
|
||||
{
|
||||
volumeName_ = volumeName;
|
||||
setParameter("VolumeName", volumeName);
|
||||
}
|
||||
|
||||
std::string ModifyVolumeAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyVolumeAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyVolumeAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyVolumeAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyVolumeAttributeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyVolumeAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyVolumeAttributeRequest::getVolumeId()const
|
||||
{
|
||||
return volumeId_;
|
||||
}
|
||||
|
||||
void ModifyVolumeAttributeRequest::setVolumeId(const std::string& volumeId)
|
||||
{
|
||||
volumeId_ = volumeId;
|
||||
setParameter("VolumeId", volumeId);
|
||||
}
|
||||
|
||||
std::string ModifyVolumeAttributeRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyVolumeAttributeRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
long ModifyVolumeAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyVolumeAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ModifyVolumeAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ModifyVolumeAttributeResult::ModifyVolumeAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyVolumeAttributeResult::ModifyVolumeAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyVolumeAttributeResult::~ModifyVolumeAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyVolumeAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ReInitVolumeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ReInitVolumeRequest;
|
||||
|
||||
ReInitVolumeRequest::ReInitVolumeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ReInitVolume")
|
||||
{}
|
||||
|
||||
ReInitVolumeRequest::~ReInitVolumeRequest()
|
||||
{}
|
||||
|
||||
long ReInitVolumeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ReInitVolumeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ReInitVolumeRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void ReInitVolumeRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string ReInitVolumeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ReInitVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ReInitVolumeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ReInitVolumeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ReInitVolumeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ReInitVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ReInitVolumeRequest::getVolumeId()const
|
||||
{
|
||||
return volumeId_;
|
||||
}
|
||||
|
||||
void ReInitVolumeRequest::setVolumeId(const std::string& volumeId)
|
||||
{
|
||||
volumeId_ = volumeId;
|
||||
setParameter("VolumeId", volumeId);
|
||||
}
|
||||
|
||||
long ReInitVolumeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ReInitVolumeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ReInitVolumeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ReInitVolumeResult::ReInitVolumeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReInitVolumeResult::ReInitVolumeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReInitVolumeResult::~ReInitVolumeResult()
|
||||
{}
|
||||
|
||||
void ReInitVolumeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ResizeVolumeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ResizeVolumeRequest;
|
||||
|
||||
ResizeVolumeRequest::ResizeVolumeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ResizeVolume")
|
||||
{}
|
||||
|
||||
ResizeVolumeRequest::~ResizeVolumeRequest()
|
||||
{}
|
||||
|
||||
long ResizeVolumeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ResizeVolumeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ResizeVolumeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ResizeVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ResizeVolumeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ResizeVolumeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ResizeVolumeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ResizeVolumeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ResizeVolumeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ResizeVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ResizeVolumeRequest::getVolumeId()const
|
||||
{
|
||||
return volumeId_;
|
||||
}
|
||||
|
||||
void ResizeVolumeRequest::setVolumeId(const std::string& volumeId)
|
||||
{
|
||||
volumeId_ = volumeId;
|
||||
setParameter("VolumeId", volumeId);
|
||||
}
|
||||
|
||||
int ResizeVolumeRequest::getNewSize()const
|
||||
{
|
||||
return newSize_;
|
||||
}
|
||||
|
||||
void ResizeVolumeRequest::setNewSize(int newSize)
|
||||
{
|
||||
newSize_ = newSize;
|
||||
setParameter("NewSize", std::to_string(newSize));
|
||||
}
|
||||
|
||||
long ResizeVolumeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ResizeVolumeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ResizeVolumeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ResizeVolumeResult::ResizeVolumeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResizeVolumeResult::ResizeVolumeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResizeVolumeResult::~ResizeVolumeResult()
|
||||
{}
|
||||
|
||||
void ResizeVolumeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/RollbackVolumeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::RollbackVolumeRequest;
|
||||
|
||||
RollbackVolumeRequest::RollbackVolumeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "RollbackVolume")
|
||||
{}
|
||||
|
||||
RollbackVolumeRequest::~RollbackVolumeRequest()
|
||||
{}
|
||||
|
||||
long RollbackVolumeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void RollbackVolumeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string RollbackVolumeRequest::getSnapshotId()const
|
||||
{
|
||||
return snapshotId_;
|
||||
}
|
||||
|
||||
void RollbackVolumeRequest::setSnapshotId(const std::string& snapshotId)
|
||||
{
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter("SnapshotId", snapshotId);
|
||||
}
|
||||
|
||||
std::string RollbackVolumeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void RollbackVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RollbackVolumeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RollbackVolumeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string RollbackVolumeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void RollbackVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string RollbackVolumeRequest::getVolumeId()const
|
||||
{
|
||||
return volumeId_;
|
||||
}
|
||||
|
||||
void RollbackVolumeRequest::setVolumeId(const std::string& volumeId)
|
||||
{
|
||||
volumeId_ = volumeId;
|
||||
setParameter("VolumeId", volumeId);
|
||||
}
|
||||
|
||||
long RollbackVolumeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RollbackVolumeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/RollbackVolumeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
RollbackVolumeResult::RollbackVolumeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RollbackVolumeResult::RollbackVolumeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RollbackVolumeResult::~RollbackVolumeResult()
|
||||
{}
|
||||
|
||||
void RollbackVolumeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -146,6 +146,17 @@ void RunInstancesRequest::setCallerType(const std::string& callerType)
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool RunInstancesRequest::getDeletionProtection()const
|
||||
{
|
||||
return deletionProtection_;
|
||||
}
|
||||
|
||||
void RunInstancesRequest::setDeletionProtection(bool deletionProtection)
|
||||
{
|
||||
deletionProtection_ = deletionProtection;
|
||||
setParameter("DeletionProtection", std::to_string(deletionProtection));
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
|
||||
@@ -1,280 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/SignAgreementRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::SignAgreementRequest;
|
||||
|
||||
SignAgreementRequest::SignAgreementRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "SignAgreement")
|
||||
{}
|
||||
|
||||
SignAgreementRequest::~SignAgreementRequest()
|
||||
{}
|
||||
|
||||
std::string SignAgreementRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
long SignAgreementRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long SignAgreementRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
bool SignAgreementRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long SignAgreementRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool SignAgreementRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool SignAgreementRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool SignAgreementRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
bool SignAgreementRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getAgreementType()const
|
||||
{
|
||||
return agreementType_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setAgreementType(const std::string& agreementType)
|
||||
{
|
||||
agreementType_ = agreementType;
|
||||
setParameter("AgreementType", agreementType);
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string SignAgreementRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long SignAgreementRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void SignAgreementRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/SignAgreementResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
SignAgreementResult::SignAgreementResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SignAgreementResult::SignAgreementResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SignAgreementResult::~SignAgreementResult()
|
||||
{}
|
||||
|
||||
void SignAgreementResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/UnbindIpRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::UnbindIpRangeRequest;
|
||||
|
||||
UnbindIpRangeRequest::UnbindIpRangeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "UnbindIpRange")
|
||||
{}
|
||||
|
||||
UnbindIpRangeRequest::~UnbindIpRangeRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindIpRangeRequest::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long UnbindIpRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UnbindIpRangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UnbindIpRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UnbindIpRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UnbindIpRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/UnbindIpRangeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
UnbindIpRangeResult::UnbindIpRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindIpRangeResult::UnbindIpRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindIpRangeResult::~UnbindIpRangeResult()
|
||||
{}
|
||||
|
||||
void UnbindIpRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,368 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ValidateSecurityGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ValidateSecurityGroupRequest;
|
||||
|
||||
ValidateSecurityGroupRequest::ValidateSecurityGroupRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ValidateSecurityGroup")
|
||||
{}
|
||||
|
||||
ValidateSecurityGroupRequest::~ValidateSecurityGroupRequest()
|
||||
{}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getNicType()const
|
||||
{
|
||||
return nicType_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setNicType(const std::string& nicType)
|
||||
{
|
||||
nicType_ = nicType;
|
||||
setParameter("NicType", nicType);
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int ValidateSecurityGroupRequest::getSourcePort()const
|
||||
{
|
||||
return sourcePort_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSourcePort(int sourcePort)
|
||||
{
|
||||
sourcePort_ = sourcePort;
|
||||
setParameter("SourcePort", std::to_string(sourcePort));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getDestIp()const
|
||||
{
|
||||
return destIp_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setDestIp(const std::string& destIp)
|
||||
{
|
||||
destIp_ = destIp;
|
||||
setParameter("DestIp", destIp);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getIpProtocol()const
|
||||
{
|
||||
return ipProtocol_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol)
|
||||
{
|
||||
ipProtocol_ = ipProtocol;
|
||||
setParameter("IpProtocol", ipProtocol);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
int ValidateSecurityGroupRequest::getDestPort()const
|
||||
{
|
||||
return destPort_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setDestPort(int destPort)
|
||||
{
|
||||
destPort_ = destPort;
|
||||
setParameter("DestPort", std::to_string(destPort));
|
||||
}
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* 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/ecs/model/ValidateSecurityGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ValidateSecurityGroupResult::ValidateSecurityGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ValidateSecurityGroupResult::ValidateSecurityGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ValidateSecurityGroupResult::~ValidateSecurityGroupResult()
|
||||
{}
|
||||
|
||||
void ValidateSecurityGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto triggeredGroupRuleNode = value["TriggeredGroupRule"];
|
||||
if(!triggeredGroupRuleNode["IpProtocol"].isNull())
|
||||
triggeredGroupRule_.ipProtocol = triggeredGroupRuleNode["IpProtocol"].asString();
|
||||
if(!triggeredGroupRuleNode["PortRange"].isNull())
|
||||
triggeredGroupRule_.portRange = triggeredGroupRuleNode["PortRange"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceGroupId"].isNull())
|
||||
triggeredGroupRule_.sourceGroupId = triggeredGroupRuleNode["SourceGroupId"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceGroupName"].isNull())
|
||||
triggeredGroupRule_.sourceGroupName = triggeredGroupRuleNode["SourceGroupName"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceCidrIp"].isNull())
|
||||
triggeredGroupRule_.sourceCidrIp = triggeredGroupRuleNode["SourceCidrIp"].asString();
|
||||
if(!triggeredGroupRuleNode["Policy"].isNull())
|
||||
triggeredGroupRule_.policy = triggeredGroupRuleNode["Policy"].asString();
|
||||
if(!triggeredGroupRuleNode["NicType"].isNull())
|
||||
triggeredGroupRule_.nicType = triggeredGroupRuleNode["NicType"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceGroupOwnerAccount"].isNull())
|
||||
triggeredGroupRule_.sourceGroupOwnerAccount = triggeredGroupRuleNode["SourceGroupOwnerAccount"].asString();
|
||||
if(!triggeredGroupRuleNode["DestGroupId"].isNull())
|
||||
triggeredGroupRule_.destGroupId = triggeredGroupRuleNode["DestGroupId"].asString();
|
||||
if(!triggeredGroupRuleNode["DestGroupName"].isNull())
|
||||
triggeredGroupRule_.destGroupName = triggeredGroupRuleNode["DestGroupName"].asString();
|
||||
if(!triggeredGroupRuleNode["DestCidrIp"].isNull())
|
||||
triggeredGroupRule_.destCidrIp = triggeredGroupRuleNode["DestCidrIp"].asString();
|
||||
if(!triggeredGroupRuleNode["DestGroupOwnerAccount"].isNull())
|
||||
triggeredGroupRule_.destGroupOwnerAccount = triggeredGroupRuleNode["DestGroupOwnerAccount"].asString();
|
||||
if(!triggeredGroupRuleNode["Priority"].isNull())
|
||||
triggeredGroupRule_.priority = triggeredGroupRuleNode["Priority"].asString();
|
||||
if(!triggeredGroupRuleNode["Direction"].isNull())
|
||||
triggeredGroupRule_.direction = triggeredGroupRuleNode["Direction"].asString();
|
||||
if(!triggeredGroupRuleNode["Description"].isNull())
|
||||
triggeredGroupRule_.description = triggeredGroupRuleNode["Description"].asString();
|
||||
if(!triggeredGroupRuleNode["CreateTime"].isNull())
|
||||
triggeredGroupRule_.createTime = triggeredGroupRuleNode["CreateTime"].asString();
|
||||
if(!value["Policy"].isNull())
|
||||
policy_ = value["Policy"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupResult::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
ValidateSecurityGroupResult::TriggeredGroupRule ValidateSecurityGroupResult::getTriggeredGroupRule()const
|
||||
{
|
||||
return triggeredGroupRule_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user