Add CreateStorageSet api to support storageSet.

This commit is contained in:
sdk-team
2019-08-08 16:13:07 +08:00
parent 1f20945851
commit 29401f9711
1095 changed files with 52396 additions and 42714 deletions

View File

@@ -1,30 +1,30 @@
/*
* 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/AcceptInquiredSystemEventRequest.h>
using AlibabaCloud::Ecs::Model::AcceptInquiredSystemEventRequest;
AcceptInquiredSystemEventRequest::AcceptInquiredSystemEventRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AcceptInquiredSystemEvent")
{}
AcceptInquiredSystemEventRequest::~AcceptInquiredSystemEventRequest()
{}
/*
* 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/AcceptInquiredSystemEventRequest.h>
using AlibabaCloud::Ecs::Model::AcceptInquiredSystemEventRequest;
AcceptInquiredSystemEventRequest::AcceptInquiredSystemEventRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AcceptInquiredSystemEvent")
{}
AcceptInquiredSystemEventRequest::~AcceptInquiredSystemEventRequest()
{}
std::string AcceptInquiredSystemEventRequest::getEventId()const
{
return eventId_;
@@ -311,3 +311,14 @@ void AcceptInquiredSystemEventRequest::setRequestId(const std::string& requestId
setCoreParameter("RequestId", requestId);
}
std::string AcceptInquiredSystemEventRequest::getAkProxy()const
{
return akProxy_;
}
void AcceptInquiredSystemEventRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}

View File

@@ -1,45 +1,45 @@
/*
* 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/AcceptInquiredSystemEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AcceptInquiredSystemEventResult::AcceptInquiredSystemEventResult() :
ServiceResult()
{}
AcceptInquiredSystemEventResult::AcceptInquiredSystemEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AcceptInquiredSystemEventResult::~AcceptInquiredSystemEventResult()
{}
void AcceptInquiredSystemEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AcceptInquiredSystemEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AcceptInquiredSystemEventResult::AcceptInquiredSystemEventResult() :
ServiceResult()
{}
AcceptInquiredSystemEventResult::AcceptInquiredSystemEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AcceptInquiredSystemEventResult::~AcceptInquiredSystemEventResult()
{}
void AcceptInquiredSystemEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/ActivateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::ActivateRouterInterfaceRequest;
ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ActivateRouterInterface")
{}
ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest()
{}
/*
* 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/ActivateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::ActivateRouterInterfaceRequest;
ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ActivateRouterInterface")
{}
ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest()
{}
long ActivateRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/ActivateRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ActivateRouterInterfaceResult::ActivateRouterInterfaceResult() :
ServiceResult()
{}
ActivateRouterInterfaceResult::ActivateRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ActivateRouterInterfaceResult::~ActivateRouterInterfaceResult()
{}
void ActivateRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/ActivateRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ActivateRouterInterfaceResult::ActivateRouterInterfaceResult() :
ServiceResult()
{}
ActivateRouterInterfaceResult::ActivateRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ActivateRouterInterfaceResult::~ActivateRouterInterfaceResult()
{}
void ActivateRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AddBandwidthPackageIpsRequest.h>
using AlibabaCloud::Ecs::Model::AddBandwidthPackageIpsRequest;
AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AddBandwidthPackageIps")
{}
AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest()
{}
/*
* 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/AddBandwidthPackageIpsRequest.h>
using AlibabaCloud::Ecs::Model::AddBandwidthPackageIpsRequest;
AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AddBandwidthPackageIps")
{}
AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest()
{}
long AddBandwidthPackageIpsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AddBandwidthPackageIpsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult() :
ServiceResult()
{}
AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult()
{}
void AddBandwidthPackageIpsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AddBandwidthPackageIpsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult() :
ServiceResult()
{}
AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult()
{}
void AddBandwidthPackageIpsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AddTagsRequest.h>
using AlibabaCloud::Ecs::Model::AddTagsRequest;
AddTagsRequest::AddTagsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AddTags")
{}
AddTagsRequest::~AddTagsRequest()
{}
/*
* 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/AddTagsRequest.h>
using AlibabaCloud::Ecs::Model::AddTagsRequest;
AddTagsRequest::AddTagsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AddTags")
{}
AddTagsRequest::~AddTagsRequest()
{}
std::string AddTagsRequest::getSourceRegionId()const
{
return sourceRegionId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AddTagsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AddTagsResult::AddTagsResult() :
ServiceResult()
{}
AddTagsResult::AddTagsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddTagsResult::~AddTagsResult()
{}
void AddTagsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AddTagsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AddTagsResult::AddTagsResult() :
ServiceResult()
{}
AddTagsResult::AddTagsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddTagsResult::~AddTagsResult()
{}
void AddTagsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AllocateDedicatedHostsRequest.h>
using AlibabaCloud::Ecs::Model::AllocateDedicatedHostsRequest;
AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts")
{}
AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest()
{}
/*
* 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/AllocateDedicatedHostsRequest.h>
using AlibabaCloud::Ecs::Model::AllocateDedicatedHostsRequest;
AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts")
{}
AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest()
{}
long AllocateDedicatedHostsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -438,6 +438,17 @@ void AllocateDedicatedHostsRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string AllocateDedicatedHostsRequest::getAkProxy()const
{
return akProxy_;
}
void AllocateDedicatedHostsRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
int AllocateDedicatedHostsRequest::getNetworkAttributesSlbUdpTimeout()const
{
return networkAttributesSlbUdpTimeout_;

View File

@@ -1,51 +1,51 @@
/*
* 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/AllocateDedicatedHostsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AllocateDedicatedHostsResult::AllocateDedicatedHostsResult() :
ServiceResult()
{}
AllocateDedicatedHostsResult::AllocateDedicatedHostsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllocateDedicatedHostsResult::~AllocateDedicatedHostsResult()
{}
void AllocateDedicatedHostsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/AllocateDedicatedHostsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AllocateDedicatedHostsResult::AllocateDedicatedHostsResult() :
ServiceResult()
{}
AllocateDedicatedHostsResult::AllocateDedicatedHostsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllocateDedicatedHostsResult::~AllocateDedicatedHostsResult()
{}
void AllocateDedicatedHostsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDedicatedHostIdSets = value["DedicatedHostIdSets"]["DedicatedHostId"];
for (const auto &item : allDedicatedHostIdSets)
dedicatedHostIdSets_.push_back(item.asString());
}
}
std::vector<std::string> AllocateDedicatedHostsResult::getDedicatedHostIdSets()const
{
return dedicatedHostIdSets_;

View File

@@ -1,30 +1,41 @@
/*
* 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/AllocateEipAddressRequest.h>
using AlibabaCloud::Ecs::Model::AllocateEipAddressRequest;
AllocateEipAddressRequest::AllocateEipAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocateEipAddress")
{}
AllocateEipAddressRequest::~AllocateEipAddressRequest()
{}
/*
* 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/AllocateEipAddressRequest.h>
using AlibabaCloud::Ecs::Model::AllocateEipAddressRequest;
AllocateEipAddressRequest::AllocateEipAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocateEipAddress")
{}
AllocateEipAddressRequest::~AllocateEipAddressRequest()
{}
long AllocateEipAddressRequest::getActivityId()const
{
return activityId_;
}
void AllocateEipAddressRequest::setActivityId(long activityId)
{
activityId_ = activityId;
setCoreParameter("ActivityId", std::to_string(activityId));
}
long AllocateEipAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,52 +1,52 @@
/*
* 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/AllocateEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AllocateEipAddressResult::AllocateEipAddressResult() :
ServiceResult()
{}
AllocateEipAddressResult::AllocateEipAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllocateEipAddressResult::~AllocateEipAddressResult()
{}
void AllocateEipAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/AllocateEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AllocateEipAddressResult::AllocateEipAddressResult() :
ServiceResult()
{}
AllocateEipAddressResult::AllocateEipAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllocateEipAddressResult::~AllocateEipAddressResult()
{}
void AllocateEipAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AllocationId"].isNull())
allocationId_ = value["AllocationId"].asString();
if(!value["EipAddress"].isNull())
eipAddress_ = value["EipAddress"].asString();
}
}
std::string AllocateEipAddressResult::getAllocationId()const
{
return allocationId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/AllocatePublicIpAddressRequest.h>
using AlibabaCloud::Ecs::Model::AllocatePublicIpAddressRequest;
AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocatePublicIpAddress")
{}
AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest()
{}
/*
* 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/AllocatePublicIpAddressRequest.h>
using AlibabaCloud::Ecs::Model::AllocatePublicIpAddressRequest;
AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocatePublicIpAddress")
{}
AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest()
{}
std::string AllocatePublicIpAddressRequest::getSourceRegionId()const
{
return sourceRegionId_;

View File

@@ -1,50 +1,50 @@
/*
* 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/AllocatePublicIpAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AllocatePublicIpAddressResult::AllocatePublicIpAddressResult() :
ServiceResult()
{}
AllocatePublicIpAddressResult::AllocatePublicIpAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllocatePublicIpAddressResult::~AllocatePublicIpAddressResult()
{}
void AllocatePublicIpAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/AllocatePublicIpAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AllocatePublicIpAddressResult::AllocatePublicIpAddressResult() :
ServiceResult()
{}
AllocatePublicIpAddressResult::AllocatePublicIpAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllocatePublicIpAddressResult::~AllocatePublicIpAddressResult()
{}
void AllocatePublicIpAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["IpAddress"].isNull())
ipAddress_ = value["IpAddress"].asString();
}
}
std::string AllocatePublicIpAddressResult::getIpAddress()const
{
return ipAddress_;

View File

@@ -1,30 +1,30 @@
/*
* 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/ApplyAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::ApplyAutoSnapshotPolicyRequest;
ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ApplyAutoSnapshotPolicy")
{}
ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest()
{}
/*
* 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/ApplyAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::ApplyAutoSnapshotPolicyRequest;
ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ApplyAutoSnapshotPolicy")
{}
ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest()
{}
std::string ApplyAutoSnapshotPolicyRequest::getSourceRegionId()const
{
return sourceRegionId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/ApplyAutoSnapshotPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult() :
ServiceResult()
{}
ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyAutoSnapshotPolicyResult::~ApplyAutoSnapshotPolicyResult()
{}
void ApplyAutoSnapshotPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/ApplyAutoSnapshotPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult() :
ServiceResult()
{}
ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyAutoSnapshotPolicyResult::~ApplyAutoSnapshotPolicyResult()
{}
void ApplyAutoSnapshotPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AssignIpv6AddressesRequest.h>
using AlibabaCloud::Ecs::Model::AssignIpv6AddressesRequest;
AssignIpv6AddressesRequest::AssignIpv6AddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses")
{}
AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest()
{}
/*
* 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/AssignIpv6AddressesRequest.h>
using AlibabaCloud::Ecs::Model::AssignIpv6AddressesRequest;
AssignIpv6AddressesRequest::AssignIpv6AddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses")
{}
AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest()
{}
long AssignIpv6AddressesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -311,6 +311,17 @@ void AssignIpv6AddressesRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string AssignIpv6AddressesRequest::getAkProxy()const
{
return akProxy_;
}
void AssignIpv6AddressesRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string AssignIpv6AddressesRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AssignIpv6AddressesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssignIpv6AddressesResult::AssignIpv6AddressesResult() :
ServiceResult()
{}
AssignIpv6AddressesResult::AssignIpv6AddressesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssignIpv6AddressesResult::~AssignIpv6AddressesResult()
{}
void AssignIpv6AddressesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AssignIpv6AddressesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssignIpv6AddressesResult::AssignIpv6AddressesResult() :
ServiceResult()
{}
AssignIpv6AddressesResult::AssignIpv6AddressesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssignIpv6AddressesResult::~AssignIpv6AddressesResult()
{}
void AssignIpv6AddressesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AssignPrivateIpAddressesRequest.h>
using AlibabaCloud::Ecs::Model::AssignPrivateIpAddressesRequest;
AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses")
{}
AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest()
{}
/*
* 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/AssignPrivateIpAddressesRequest.h>
using AlibabaCloud::Ecs::Model::AssignPrivateIpAddressesRequest;
AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses")
{}
AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest()
{}
long AssignPrivateIpAddressesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -312,6 +312,17 @@ void AssignPrivateIpAddressesRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string AssignPrivateIpAddressesRequest::getAkProxy()const
{
return akProxy_;
}
void AssignPrivateIpAddressesRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string AssignPrivateIpAddressesRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AssignPrivateIpAddressesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult() :
ServiceResult()
{}
AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssignPrivateIpAddressesResult::~AssignPrivateIpAddressesResult()
{}
void AssignPrivateIpAddressesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AssignPrivateIpAddressesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult() :
ServiceResult()
{}
AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssignPrivateIpAddressesResult::~AssignPrivateIpAddressesResult()
{}
void AssignPrivateIpAddressesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AssociateEipAddressRequest.h>
using AlibabaCloud::Ecs::Model::AssociateEipAddressRequest;
AssociateEipAddressRequest::AssociateEipAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssociateEipAddress")
{}
AssociateEipAddressRequest::~AssociateEipAddressRequest()
{}
/*
* 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/AssociateEipAddressRequest.h>
using AlibabaCloud::Ecs::Model::AssociateEipAddressRequest;
AssociateEipAddressRequest::AssociateEipAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssociateEipAddress")
{}
AssociateEipAddressRequest::~AssociateEipAddressRequest()
{}
long AssociateEipAddressRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AssociateEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssociateEipAddressResult::AssociateEipAddressResult() :
ServiceResult()
{}
AssociateEipAddressResult::AssociateEipAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateEipAddressResult::~AssociateEipAddressResult()
{}
void AssociateEipAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AssociateEipAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssociateEipAddressResult::AssociateEipAddressResult() :
ServiceResult()
{}
AssociateEipAddressResult::AssociateEipAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateEipAddressResult::~AssociateEipAddressResult()
{}
void AssociateEipAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AssociateHaVipRequest.h>
using AlibabaCloud::Ecs::Model::AssociateHaVipRequest;
AssociateHaVipRequest::AssociateHaVipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssociateHaVip")
{}
AssociateHaVipRequest::~AssociateHaVipRequest()
{}
/*
* 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/AssociateHaVipRequest.h>
using AlibabaCloud::Ecs::Model::AssociateHaVipRequest;
AssociateHaVipRequest::AssociateHaVipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssociateHaVip")
{}
AssociateHaVipRequest::~AssociateHaVipRequest()
{}
std::string AssociateHaVipRequest::getHaVipId()const
{
return haVipId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AssociateHaVipResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssociateHaVipResult::AssociateHaVipResult() :
ServiceResult()
{}
AssociateHaVipResult::AssociateHaVipResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateHaVipResult::~AssociateHaVipResult()
{}
void AssociateHaVipResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AssociateHaVipResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AssociateHaVipResult::AssociateHaVipResult() :
ServiceResult()
{}
AssociateHaVipResult::AssociateHaVipResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateHaVipResult::~AssociateHaVipResult()
{}
void AssociateHaVipResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AttachClassicLinkVpcRequest.h>
using AlibabaCloud::Ecs::Model::AttachClassicLinkVpcRequest;
AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachClassicLinkVpc")
{}
AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest()
{}
/*
* 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/AttachClassicLinkVpcRequest.h>
using AlibabaCloud::Ecs::Model::AttachClassicLinkVpcRequest;
AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachClassicLinkVpc")
{}
AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest()
{}
std::string AttachClassicLinkVpcRequest::getSourceRegionId()const
{
return sourceRegionId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AttachClassicLinkVpcResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachClassicLinkVpcResult::AttachClassicLinkVpcResult() :
ServiceResult()
{}
AttachClassicLinkVpcResult::AttachClassicLinkVpcResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachClassicLinkVpcResult::~AttachClassicLinkVpcResult()
{}
void AttachClassicLinkVpcResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AttachClassicLinkVpcResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachClassicLinkVpcResult::AttachClassicLinkVpcResult() :
ServiceResult()
{}
AttachClassicLinkVpcResult::AttachClassicLinkVpcResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachClassicLinkVpcResult::~AttachClassicLinkVpcResult()
{}
void AttachClassicLinkVpcResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AttachDiskRequest.h>
using AlibabaCloud::Ecs::Model::AttachDiskRequest;
AttachDiskRequest::AttachDiskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachDisk")
{}
AttachDiskRequest::~AttachDiskRequest()
{}
/*
* 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/AttachDiskRequest.h>
using AlibabaCloud::Ecs::Model::AttachDiskRequest;
AttachDiskRequest::AttachDiskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachDisk")
{}
AttachDiskRequest::~AttachDiskRequest()
{}
std::string AttachDiskRequest::getSourceRegionId()const
{
return sourceRegionId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AttachDiskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachDiskResult::AttachDiskResult() :
ServiceResult()
{}
AttachDiskResult::AttachDiskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachDiskResult::~AttachDiskResult()
{}
void AttachDiskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AttachDiskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachDiskResult::AttachDiskResult() :
ServiceResult()
{}
AttachDiskResult::AttachDiskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachDiskResult::~AttachDiskResult()
{}
void AttachDiskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,41 @@
/*
* 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/AttachInstanceRamRoleRequest.h>
using AlibabaCloud::Ecs::Model::AttachInstanceRamRoleRequest;
AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachInstanceRamRole")
{}
AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest()
{}
/*
* 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/AttachInstanceRamRoleRequest.h>
using AlibabaCloud::Ecs::Model::AttachInstanceRamRoleRequest;
AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachInstanceRamRole")
{}
AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest()
{}
std::string AttachInstanceRamRoleRequest::getSourceRegionId()const
{
return sourceRegionId_;
}
void AttachInstanceRamRoleRequest::setSourceRegionId(const std::string& sourceRegionId)
{
sourceRegionId_ = sourceRegionId;
setCoreParameter("SourceRegionId", sourceRegionId);
}
long AttachInstanceRamRoleRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AttachInstanceRamRoleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachInstanceRamRoleResult::AttachInstanceRamRoleResult() :
ServiceResult()
{}
AttachInstanceRamRoleResult::AttachInstanceRamRoleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachInstanceRamRoleResult::~AttachInstanceRamRoleResult()
{}
void AttachInstanceRamRoleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/AttachInstanceRamRoleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachInstanceRamRoleResult::AttachInstanceRamRoleResult() :
ServiceResult()
{}
AttachInstanceRamRoleResult::AttachInstanceRamRoleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachInstanceRamRoleResult::~AttachInstanceRamRoleResult()
{}
void AttachInstanceRamRoleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAttachInstanceRamRoleResults = value["AttachInstanceRamRoleResults"]["AttachInstanceRamRoleResult"];
for (auto value : allAttachInstanceRamRoleResults)
{
@@ -60,9 +60,9 @@ void AttachInstanceRamRoleResult::parse(const std::string &payload)
failCount_ = std::stoi(value["FailCount"].asString());
if(!value["RamRoleName"].isNull())
ramRoleName_ = value["RamRoleName"].asString();
}
}
std::vector<AttachInstanceRamRoleResult::Result> AttachInstanceRamRoleResult::getAttachInstanceRamRoleResults()const
{
return attachInstanceRamRoleResults_;

View File

@@ -1,30 +1,41 @@
/*
* 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/AttachKeyPairRequest.h>
using AlibabaCloud::Ecs::Model::AttachKeyPairRequest;
AttachKeyPairRequest::AttachKeyPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachKeyPair")
{}
AttachKeyPairRequest::~AttachKeyPairRequest()
{}
/*
* 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/AttachKeyPairRequest.h>
using AlibabaCloud::Ecs::Model::AttachKeyPairRequest;
AttachKeyPairRequest::AttachKeyPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachKeyPair")
{}
AttachKeyPairRequest::~AttachKeyPairRequest()
{}
std::string AttachKeyPairRequest::getSourceRegionId()const
{
return sourceRegionId_;
}
void AttachKeyPairRequest::setSourceRegionId(const std::string& sourceRegionId)
{
sourceRegionId_ = sourceRegionId;
setCoreParameter("SourceRegionId", sourceRegionId);
}
long AttachKeyPairRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AttachKeyPairResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachKeyPairResult::AttachKeyPairResult() :
ServiceResult()
{}
AttachKeyPairResult::AttachKeyPairResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachKeyPairResult::~AttachKeyPairResult()
{}
void AttachKeyPairResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/AttachKeyPairResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachKeyPairResult::AttachKeyPairResult() :
ServiceResult()
{}
AttachKeyPairResult::AttachKeyPairResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachKeyPairResult::~AttachKeyPairResult()
{}
void AttachKeyPairResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
@@ -60,9 +60,9 @@ void AttachKeyPairResult::parse(const std::string &payload)
failCount_ = value["FailCount"].asString();
if(!value["KeyPairName"].isNull())
keyPairName_ = value["KeyPairName"].asString();
}
}
std::string AttachKeyPairResult::getKeyPairName()const
{
return keyPairName_;

View File

@@ -1,30 +1,30 @@
/*
* 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/AttachNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::AttachNetworkInterfaceRequest;
AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachNetworkInterface")
{}
AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest()
{}
/*
* 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/AttachNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::AttachNetworkInterfaceRequest;
AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachNetworkInterface")
{}
AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest()
{}
long AttachNetworkInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -300,6 +300,17 @@ void AttachNetworkInterfaceRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string AttachNetworkInterfaceRequest::getAkProxy()const
{
return akProxy_;
}
void AttachNetworkInterfaceRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string AttachNetworkInterfaceRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AttachNetworkInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachNetworkInterfaceResult::AttachNetworkInterfaceResult() :
ServiceResult()
{}
AttachNetworkInterfaceResult::AttachNetworkInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachNetworkInterfaceResult::~AttachNetworkInterfaceResult()
{}
void AttachNetworkInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AttachNetworkInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AttachNetworkInterfaceResult::AttachNetworkInterfaceResult() :
ServiceResult()
{}
AttachNetworkInterfaceResult::AttachNetworkInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachNetworkInterfaceResult::~AttachNetworkInterfaceResult()
{}
void AttachNetworkInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AuthorizeSecurityGroupEgressRequest.h>
using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupEgressRequest;
AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroupEgress")
{}
AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest()
{}
/*
* 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/AuthorizeSecurityGroupEgressRequest.h>
using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupEgressRequest;
AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroupEgress")
{}
AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest()
{}
std::string AuthorizeSecurityGroupEgressRequest::getNicType()const
{
return nicType_;
@@ -465,3 +465,14 @@ void AuthorizeSecurityGroupEgressRequest::setRequestId(const std::string& reques
setCoreParameter("RequestId", requestId);
}
std::string AuthorizeSecurityGroupEgressRequest::getAkProxy()const
{
return akProxy_;
}
void AuthorizeSecurityGroupEgressRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}

View File

@@ -1,45 +1,45 @@
/*
* 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/AuthorizeSecurityGroupEgressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult() :
ServiceResult()
{}
AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AuthorizeSecurityGroupEgressResult::~AuthorizeSecurityGroupEgressResult()
{}
void AuthorizeSecurityGroupEgressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AuthorizeSecurityGroupEgressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult() :
ServiceResult()
{}
AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AuthorizeSecurityGroupEgressResult::~AuthorizeSecurityGroupEgressResult()
{}
void AuthorizeSecurityGroupEgressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/AuthorizeSecurityGroupRequest.h>
using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupRequest;
AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroup")
{}
AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest()
{}
/*
* 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/AuthorizeSecurityGroupRequest.h>
using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupRequest;
AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroup")
{}
AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest()
{}
std::string AuthorizeSecurityGroupRequest::getNicType()const
{
return nicType_;
@@ -454,6 +454,17 @@ void AuthorizeSecurityGroupRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string AuthorizeSecurityGroupRequest::getAkProxy()const
{
return akProxy_;
}
void AuthorizeSecurityGroupRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string AuthorizeSecurityGroupRequest::getSourceGroupId()const
{
return sourceGroupId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/AuthorizeSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult() :
ServiceResult()
{}
AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AuthorizeSecurityGroupResult::~AuthorizeSecurityGroupResult()
{}
void AuthorizeSecurityGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/AuthorizeSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult() :
ServiceResult()
{}
AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AuthorizeSecurityGroupResult::~AuthorizeSecurityGroupResult()
{}
void AuthorizeSecurityGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/CancelAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::CancelAutoSnapshotPolicyRequest;
CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelAutoSnapshotPolicy")
{}
CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest()
{}
/*
* 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/CancelAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::CancelAutoSnapshotPolicyRequest;
CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelAutoSnapshotPolicy")
{}
CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest()
{}
std::string CancelAutoSnapshotPolicyRequest::getSourceRegionId()const
{
return sourceRegionId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/CancelAutoSnapshotPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult() :
ServiceResult()
{}
CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelAutoSnapshotPolicyResult::~CancelAutoSnapshotPolicyResult()
{}
void CancelAutoSnapshotPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/CancelAutoSnapshotPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult() :
ServiceResult()
{}
CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelAutoSnapshotPolicyResult::~CancelAutoSnapshotPolicyResult()
{}
void CancelAutoSnapshotPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/CancelCopyImageRequest.h>
using AlibabaCloud::Ecs::Model::CancelCopyImageRequest;
CancelCopyImageRequest::CancelCopyImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelCopyImage")
{}
CancelCopyImageRequest::~CancelCopyImageRequest()
{}
/*
* 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/CancelCopyImageRequest.h>
using AlibabaCloud::Ecs::Model::CancelCopyImageRequest;
CancelCopyImageRequest::CancelCopyImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelCopyImage")
{}
CancelCopyImageRequest::~CancelCopyImageRequest()
{}
std::string CancelCopyImageRequest::getSourceRegionId()const
{
return sourceRegionId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/CancelCopyImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelCopyImageResult::CancelCopyImageResult() :
ServiceResult()
{}
CancelCopyImageResult::CancelCopyImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelCopyImageResult::~CancelCopyImageResult()
{}
void CancelCopyImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/CancelCopyImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelCopyImageResult::CancelCopyImageResult() :
ServiceResult()
{}
CancelCopyImageResult::CancelCopyImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelCopyImageResult::~CancelCopyImageResult()
{}
void CancelCopyImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/CancelPhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::CancelPhysicalConnectionRequest;
CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelPhysicalConnection")
{}
CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest()
{}
/*
* 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/CancelPhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::CancelPhysicalConnectionRequest;
CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelPhysicalConnection")
{}
CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest()
{}
long CancelPhysicalConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/CancelPhysicalConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelPhysicalConnectionResult::CancelPhysicalConnectionResult() :
ServiceResult()
{}
CancelPhysicalConnectionResult::CancelPhysicalConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelPhysicalConnectionResult::~CancelPhysicalConnectionResult()
{}
void CancelPhysicalConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/CancelPhysicalConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelPhysicalConnectionResult::CancelPhysicalConnectionResult() :
ServiceResult()
{}
CancelPhysicalConnectionResult::CancelPhysicalConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelPhysicalConnectionResult::~CancelPhysicalConnectionResult()
{}
void CancelPhysicalConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/CancelSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CancelSimulatedSystemEventsRequest;
CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents")
{}
CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest()
{}
/*
* 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/CancelSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CancelSimulatedSystemEventsRequest;
CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents")
{}
CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest()
{}
std::vector<std::string> CancelSimulatedSystemEventsRequest::getEventId()const
{
return eventId_;
@@ -114,6 +114,17 @@ void CancelSimulatedSystemEventsRequest::setAccessKeyId(const std::string& acces
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CancelSimulatedSystemEventsRequest::getSourceRegionId()const
{
return sourceRegionId_;
}
void CancelSimulatedSystemEventsRequest::setSourceRegionId(const std::string& sourceRegionId)
{
sourceRegionId_ = sourceRegionId;
setCoreParameter("SourceRegionId", sourceRegionId);
}
std::string CancelSimulatedSystemEventsRequest::getResourceGroupId()const
{
return resourceGroupId_;
@@ -301,3 +312,14 @@ void CancelSimulatedSystemEventsRequest::setRequestId(const std::string& request
setCoreParameter("RequestId", requestId);
}
std::string CancelSimulatedSystemEventsRequest::getAkProxy()const
{
return akProxy_;
}
void CancelSimulatedSystemEventsRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}

View File

@@ -1,45 +1,45 @@
/*
* 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/CancelSimulatedSystemEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelSimulatedSystemEventsResult::CancelSimulatedSystemEventsResult() :
ServiceResult()
{}
CancelSimulatedSystemEventsResult::CancelSimulatedSystemEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelSimulatedSystemEventsResult::~CancelSimulatedSystemEventsResult()
{}
void CancelSimulatedSystemEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/CancelSimulatedSystemEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelSimulatedSystemEventsResult::CancelSimulatedSystemEventsResult() :
ServiceResult()
{}
CancelSimulatedSystemEventsResult::CancelSimulatedSystemEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelSimulatedSystemEventsResult::~CancelSimulatedSystemEventsResult()
{}
void CancelSimulatedSystemEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/CancelTaskRequest.h>
using AlibabaCloud::Ecs::Model::CancelTaskRequest;
CancelTaskRequest::CancelTaskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelTask")
{}
CancelTaskRequest::~CancelTaskRequest()
{}
/*
* 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/CancelTaskRequest.h>
using AlibabaCloud::Ecs::Model::CancelTaskRequest;
CancelTaskRequest::CancelTaskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelTask")
{}
CancelTaskRequest::~CancelTaskRequest()
{}
std::string CancelTaskRequest::getSourceRegionId()const
{
return sourceRegionId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/CancelTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelTaskResult::CancelTaskResult() :
ServiceResult()
{}
CancelTaskResult::CancelTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelTaskResult::~CancelTaskResult()
{}
void CancelTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/CancelTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CancelTaskResult::CancelTaskResult() :
ServiceResult()
{}
CancelTaskResult::CancelTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelTaskResult::~CancelTaskResult()
{}
void CancelTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/ConnectRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::ConnectRouterInterfaceRequest;
ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ConnectRouterInterface")
{}
ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest()
{}
/*
* 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/ConnectRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::ConnectRouterInterfaceRequest;
ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ConnectRouterInterface")
{}
ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest()
{}
long ConnectRouterInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/ConnectRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ConnectRouterInterfaceResult::ConnectRouterInterfaceResult() :
ServiceResult()
{}
ConnectRouterInterfaceResult::ConnectRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConnectRouterInterfaceResult::~ConnectRouterInterfaceResult()
{}
void ConnectRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/ConnectRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ConnectRouterInterfaceResult::ConnectRouterInterfaceResult() :
ServiceResult()
{}
ConnectRouterInterfaceResult::ConnectRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConnectRouterInterfaceResult::~ConnectRouterInterfaceResult()
{}
void ConnectRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/ConvertNatPublicIpToEipRequest.h>
using AlibabaCloud::Ecs::Model::ConvertNatPublicIpToEipRequest;
ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ConvertNatPublicIpToEip")
{}
ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest()
{}
/*
* 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/ConvertNatPublicIpToEipRequest.h>
using AlibabaCloud::Ecs::Model::ConvertNatPublicIpToEipRequest;
ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ConvertNatPublicIpToEip")
{}
ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest()
{}
long ConvertNatPublicIpToEipRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -289,3 +289,14 @@ void ConvertNatPublicIpToEipRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string ConvertNatPublicIpToEipRequest::getAkProxy()const
{
return akProxy_;
}
void ConvertNatPublicIpToEipRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}

View File

@@ -1,45 +1,45 @@
/*
* 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/ConvertNatPublicIpToEipResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult() :
ServiceResult()
{}
ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConvertNatPublicIpToEipResult::~ConvertNatPublicIpToEipResult()
{}
void ConvertNatPublicIpToEipResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/ConvertNatPublicIpToEipResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult() :
ServiceResult()
{}
ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConvertNatPublicIpToEipResult::~ConvertNatPublicIpToEipResult()
{}
void ConvertNatPublicIpToEipResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/CopyImageRequest.h>
using AlibabaCloud::Ecs::Model::CopyImageRequest;
CopyImageRequest::CopyImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CopyImage")
{}
CopyImageRequest::~CopyImageRequest()
{}
/*
* 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/CopyImageRequest.h>
using AlibabaCloud::Ecs::Model::CopyImageRequest;
CopyImageRequest::CopyImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CopyImage")
{}
CopyImageRequest::~CopyImageRequest()
{}
long CopyImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CopyImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CopyImageResult::CopyImageResult() :
ServiceResult()
{}
CopyImageResult::CopyImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CopyImageResult::~CopyImageResult()
{}
void CopyImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CopyImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CopyImageResult::CopyImageResult() :
ServiceResult()
{}
CopyImageResult::CopyImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CopyImageResult::~CopyImageResult()
{}
void CopyImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ImageId"].isNull())
imageId_ = value["ImageId"].asString();
}
}
std::string CopyImageResult::getImageId()const
{
return imageId_;

View File

@@ -0,0 +1,531 @@
/*
* 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/CreateAutoProvisioningGroupRequest.h>
using AlibabaCloud::Ecs::Model::CreateAutoProvisioningGroupRequest;
CreateAutoProvisioningGroupRequest::CreateAutoProvisioningGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateAutoProvisioningGroup")
{}
CreateAutoProvisioningGroupRequest::~CreateAutoProvisioningGroupRequest()
{}
long CreateAutoProvisioningGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long CreateAutoProvisioningGroupRequest::getCallerParentId()const
{
return callerParentId_;
}
void CreateAutoProvisioningGroupRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setCoreParameter("CallerParentId", std::to_string(callerParentId));
}
std::string CreateAutoProvisioningGroupRequest::getAutoProvisioningGroupType()const
{
return autoProvisioningGroupType_;
}
void CreateAutoProvisioningGroupRequest::setAutoProvisioningGroupType(const std::string& autoProvisioningGroupType)
{
autoProvisioningGroupType_ = autoProvisioningGroupType;
setCoreParameter("AutoProvisioningGroupType", autoProvisioningGroupType);
}
bool CreateAutoProvisioningGroupRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void CreateAutoProvisioningGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
}
std::string CreateAutoProvisioningGroupRequest::getDescription()const
{
return description_;
}
void CreateAutoProvisioningGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateAutoProvisioningGroupRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void CreateAutoProvisioningGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
bool CreateAutoProvisioningGroupRequest::getTerminateInstancesWithExpiration()const
{
return terminateInstancesWithExpiration_;
}
void CreateAutoProvisioningGroupRequest::setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration)
{
terminateInstancesWithExpiration_ = terminateInstancesWithExpiration;
setCoreParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration ? "true" : "false");
}
std::string CreateAutoProvisioningGroupRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void CreateAutoProvisioningGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string CreateAutoProvisioningGroupRequest::getCallerType()const
{
return callerType_;
}
void CreateAutoProvisioningGroupRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setCoreParameter("CallerType", callerType);
}
std::string CreateAutoProvisioningGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateAutoProvisioningGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateAutoProvisioningGroupRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateAutoProvisioningGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setCoreParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateAutoProvisioningGroupRequest::getSpotAllocationStrategy()const
{
return spotAllocationStrategy_;
}
void CreateAutoProvisioningGroupRequest::setSpotAllocationStrategy(const std::string& spotAllocationStrategy)
{
spotAllocationStrategy_ = spotAllocationStrategy;
setCoreParameter("SpotAllocationStrategy", spotAllocationStrategy);
}
std::string CreateAutoProvisioningGroupRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateAutoProvisioningGroupRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string CreateAutoProvisioningGroupRequest::getRegionId()const
{
return regionId_;
}
void CreateAutoProvisioningGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
bool CreateAutoProvisioningGroupRequest::getEnable()const
{
return enable_;
}
void CreateAutoProvisioningGroupRequest::setEnable(bool enable)
{
enable_ = enable;
setCoreParameter("Enable", enable ? "true" : "false");
}
std::string CreateAutoProvisioningGroupRequest::getRequestContent()const
{
return requestContent_;
}
void CreateAutoProvisioningGroupRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setCoreParameter("RequestContent", requestContent);
}
bool CreateAutoProvisioningGroupRequest::getTerminateInstances()const
{
return terminateInstances_;
}
void CreateAutoProvisioningGroupRequest::setTerminateInstances(bool terminateInstances)
{
terminateInstances_ = terminateInstances;
setCoreParameter("TerminateInstances", terminateInstances ? "true" : "false");
}
std::string CreateAutoProvisioningGroupRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void CreateAutoProvisioningGroupRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setCoreParameter("CallerBidEmail", callerBidEmail);
}
std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoAllocationStrategy()const
{
return payAsYouGoAllocationStrategy_;
}
void CreateAutoProvisioningGroupRequest::setPayAsYouGoAllocationStrategy(const std::string& payAsYouGoAllocationStrategy)
{
payAsYouGoAllocationStrategy_ = payAsYouGoAllocationStrategy;
setCoreParameter("PayAsYouGoAllocationStrategy", payAsYouGoAllocationStrategy);
}
std::string CreateAutoProvisioningGroupRequest::getDefaultTargetCapacityType()const
{
return defaultTargetCapacityType_;
}
void CreateAutoProvisioningGroupRequest::setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType)
{
defaultTargetCapacityType_ = defaultTargetCapacityType;
setCoreParameter("DefaultTargetCapacityType", defaultTargetCapacityType);
}
std::string CreateAutoProvisioningGroupRequest::getExcessCapacityTerminationPolicy()const
{
return excessCapacityTerminationPolicy_;
}
void CreateAutoProvisioningGroupRequest::setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy)
{
excessCapacityTerminationPolicy_ = excessCapacityTerminationPolicy;
setCoreParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy);
}
std::vector<CreateAutoProvisioningGroupRequest::LaunchTemplateConfig> CreateAutoProvisioningGroupRequest::getLaunchTemplateConfig()const
{
return launchTemplateConfig_;
}
void CreateAutoProvisioningGroupRequest::setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig)
{
launchTemplateConfig_ = launchTemplateConfig;
int i = 0;
for(int i = 0; i!= launchTemplateConfig.size(); i++) {
auto obj = launchTemplateConfig.at(i);
std::string str ="LaunchTemplateConfig."+ std::to_string(i);
setCoreParameter(str + ".InstanceType", obj.instanceType);
setCoreParameter(str + ".MaxPrice", std::to_string(obj.maxPrice));
setCoreParameter(str + ".VSwitchId", obj.vSwitchId);
setCoreParameter(str + ".WeightedCapacity", std::to_string(obj.weightedCapacity));
setCoreParameter(str + ".Priority", std::to_string(obj.priority));
}
}
std::string CreateAutoProvisioningGroupRequest::getValidUntil()const
{
return validUntil_;
}
void CreateAutoProvisioningGroupRequest::setValidUntil(const std::string& validUntil)
{
validUntil_ = validUntil;
setCoreParameter("ValidUntil", validUntil);
}
std::string CreateAutoProvisioningGroupRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void CreateAutoProvisioningGroupRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setCoreParameter("CallerUidEmail", callerUidEmail);
}
long CreateAutoProvisioningGroupRequest::getCallerUid()const
{
return callerUid_;
}
void CreateAutoProvisioningGroupRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}
std::string CreateAutoProvisioningGroupRequest::getApp_ip()const
{
return app_ip_;
}
void CreateAutoProvisioningGroupRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setCoreParameter("App_ip", app_ip);
}
std::string CreateAutoProvisioningGroupRequest::getSpotInstanceInterruptionBehavior()const
{
return spotInstanceInterruptionBehavior_;
}
void CreateAutoProvisioningGroupRequest::setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior)
{
spotInstanceInterruptionBehavior_ = spotInstanceInterruptionBehavior;
setCoreParameter("SpotInstanceInterruptionBehavior", spotInstanceInterruptionBehavior);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchTemplateId()const
{
return launchTemplateId_;
}
void CreateAutoProvisioningGroupRequest::setLaunchTemplateId(const std::string& launchTemplateId)
{
launchTemplateId_ = launchTemplateId;
setCoreParameter("LaunchTemplateId", launchTemplateId);
}
std::string CreateAutoProvisioningGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateAutoProvisioningGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateAutoProvisioningGroupRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateAutoProvisioningGroupRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
int CreateAutoProvisioningGroupRequest::getSpotInstancePoolsToUseCount()const
{
return spotInstancePoolsToUseCount_;
}
void CreateAutoProvisioningGroupRequest::setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount)
{
spotInstancePoolsToUseCount_ = spotInstancePoolsToUseCount;
setCoreParameter("SpotInstancePoolsToUseCount", std::to_string(spotInstancePoolsToUseCount));
}
std::string CreateAutoProvisioningGroupRequest::getCallerBid()const
{
return callerBid_;
}
void CreateAutoProvisioningGroupRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", callerBid);
}
long CreateAutoProvisioningGroupRequest::getOwnerId()const
{
return ownerId_;
}
void CreateAutoProvisioningGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateAutoProvisioningGroupRequest::getLaunchTemplateVersion()const
{
return launchTemplateVersion_;
}
void CreateAutoProvisioningGroupRequest::setLaunchTemplateVersion(const std::string& launchTemplateVersion)
{
launchTemplateVersion_ = launchTemplateVersion;
setCoreParameter("LaunchTemplateVersion", launchTemplateVersion);
}
bool CreateAutoProvisioningGroupRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void CreateAutoProvisioningGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
}
bool CreateAutoProvisioningGroupRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void CreateAutoProvisioningGroupRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
}
bool CreateAutoProvisioningGroupRequest::getSecurity_transport()const
{
return security_transport_;
}
void CreateAutoProvisioningGroupRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setCoreParameter("Security_transport", security_transport ? "true" : "false");
}
std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoTargetCapacity()const
{
return payAsYouGoTargetCapacity_;
}
void CreateAutoProvisioningGroupRequest::setPayAsYouGoTargetCapacity(const std::string& payAsYouGoTargetCapacity)
{
payAsYouGoTargetCapacity_ = payAsYouGoTargetCapacity;
setCoreParameter("PayAsYouGoTargetCapacity", payAsYouGoTargetCapacity);
}
std::string CreateAutoProvisioningGroupRequest::getRequestId()const
{
return requestId_;
}
void CreateAutoProvisioningGroupRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string CreateAutoProvisioningGroupRequest::getAkProxy()const
{
return akProxy_;
}
void CreateAutoProvisioningGroupRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string CreateAutoProvisioningGroupRequest::getTotalTargetCapacity()const
{
return totalTargetCapacity_;
}
void CreateAutoProvisioningGroupRequest::setTotalTargetCapacity(const std::string& totalTargetCapacity)
{
totalTargetCapacity_ = totalTargetCapacity;
setCoreParameter("TotalTargetCapacity", totalTargetCapacity);
}
std::string CreateAutoProvisioningGroupRequest::getSpotTargetCapacity()const
{
return spotTargetCapacity_;
}
void CreateAutoProvisioningGroupRequest::setSpotTargetCapacity(const std::string& spotTargetCapacity)
{
spotTargetCapacity_ = spotTargetCapacity;
setCoreParameter("SpotTargetCapacity", spotTargetCapacity);
}
std::string CreateAutoProvisioningGroupRequest::getValidFrom()const
{
return validFrom_;
}
void CreateAutoProvisioningGroupRequest::setValidFrom(const std::string& validFrom)
{
validFrom_ = validFrom;
setCoreParameter("ValidFrom", validFrom);
}
std::string CreateAutoProvisioningGroupRequest::getAutoProvisioningGroupName()const
{
return autoProvisioningGroupName_;
}
void CreateAutoProvisioningGroupRequest::setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName)
{
autoProvisioningGroupName_ = autoProvisioningGroupName;
setCoreParameter("AutoProvisioningGroupName", autoProvisioningGroupName);
}
float CreateAutoProvisioningGroupRequest::getMaxSpotPrice()const
{
return maxSpotPrice_;
}
void CreateAutoProvisioningGroupRequest::setMaxSpotPrice(float maxSpotPrice)
{
maxSpotPrice_ = maxSpotPrice;
setCoreParameter("MaxSpotPrice", std::to_string(maxSpotPrice));
}

View File

@@ -0,0 +1,52 @@
/*
* 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/CreateAutoProvisioningGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateAutoProvisioningGroupResult::CreateAutoProvisioningGroupResult() :
ServiceResult()
{}
CreateAutoProvisioningGroupResult::CreateAutoProvisioningGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAutoProvisioningGroupResult::~CreateAutoProvisioningGroupResult()
{}
void CreateAutoProvisioningGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AutoProvisioningGroupId"].isNull())
autoProvisioningGroupId_ = value["AutoProvisioningGroupId"].asString();
}
std::string CreateAutoProvisioningGroupResult::getAutoProvisioningGroupId()const
{
return autoProvisioningGroupId_;
}

View File

@@ -1,30 +1,41 @@
/*
* 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/CreateAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::CreateAutoSnapshotPolicyRequest;
CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateAutoSnapshotPolicy")
{}
CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest()
{}
/*
* 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/CreateAutoSnapshotPolicyRequest.h>
using AlibabaCloud::Ecs::Model::CreateAutoSnapshotPolicyRequest;
CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateAutoSnapshotPolicy")
{}
CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest()
{}
std::string CreateAutoSnapshotPolicyRequest::getSourceRegionId()const
{
return sourceRegionId_;
}
void CreateAutoSnapshotPolicyRequest::setSourceRegionId(const std::string& sourceRegionId)
{
sourceRegionId_ = sourceRegionId;
setCoreParameter("SourceRegionId", sourceRegionId);
}
long CreateAutoSnapshotPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateAutoSnapshotPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult() :
ServiceResult()
{}
CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAutoSnapshotPolicyResult::~CreateAutoSnapshotPolicyResult()
{}
void CreateAutoSnapshotPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateAutoSnapshotPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult() :
ServiceResult()
{}
CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAutoSnapshotPolicyResult::~CreateAutoSnapshotPolicyResult()
{}
void CreateAutoSnapshotPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AutoSnapshotPolicyId"].isNull())
autoSnapshotPolicyId_ = value["AutoSnapshotPolicyId"].asString();
}
}
std::string CreateAutoSnapshotPolicyResult::getAutoSnapshotPolicyId()const
{
return autoSnapshotPolicyId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateCommandRequest.h>
using AlibabaCloud::Ecs::Model::CreateCommandRequest;
CreateCommandRequest::CreateCommandRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateCommand")
{}
CreateCommandRequest::~CreateCommandRequest()
{}
/*
* 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/CreateCommandRequest.h>
using AlibabaCloud::Ecs::Model::CreateCommandRequest;
CreateCommandRequest::CreateCommandRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateCommand")
{}
CreateCommandRequest::~CreateCommandRequest()
{}
long CreateCommandRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -344,6 +344,17 @@ void CreateCommandRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string CreateCommandRequest::getAkProxy()const
{
return akProxy_;
}
void CreateCommandRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string CreateCommandRequest::getName()const
{
return name_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateCommandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateCommandResult::CreateCommandResult() :
ServiceResult()
{}
CreateCommandResult::CreateCommandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCommandResult::~CreateCommandResult()
{}
void CreateCommandResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateCommandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateCommandResult::CreateCommandResult() :
ServiceResult()
{}
CreateCommandResult::CreateCommandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCommandResult::~CreateCommandResult()
{}
void CreateCommandResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CommandId"].isNull())
commandId_ = value["CommandId"].asString();
}
}
std::string CreateCommandResult::getCommandId()const
{
return commandId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateDeploymentSetRequest.h>
using AlibabaCloud::Ecs::Model::CreateDeploymentSetRequest;
CreateDeploymentSetRequest::CreateDeploymentSetRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDeploymentSet")
{}
CreateDeploymentSetRequest::~CreateDeploymentSetRequest()
{}
/*
* 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/CreateDeploymentSetRequest.h>
using AlibabaCloud::Ecs::Model::CreateDeploymentSetRequest;
CreateDeploymentSetRequest::CreateDeploymentSetRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDeploymentSet")
{}
CreateDeploymentSetRequest::~CreateDeploymentSetRequest()
{}
long CreateDeploymentSetRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateDeploymentSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateDeploymentSetResult::CreateDeploymentSetResult() :
ServiceResult()
{}
CreateDeploymentSetResult::CreateDeploymentSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDeploymentSetResult::~CreateDeploymentSetResult()
{}
void CreateDeploymentSetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateDeploymentSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateDeploymentSetResult::CreateDeploymentSetResult() :
ServiceResult()
{}
CreateDeploymentSetResult::CreateDeploymentSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDeploymentSetResult::~CreateDeploymentSetResult()
{}
void CreateDeploymentSetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DeploymentSetId"].isNull())
deploymentSetId_ = value["DeploymentSetId"].asString();
}
}
std::string CreateDeploymentSetResult::getDeploymentSetId()const
{
return deploymentSetId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateDiskRequest.h>
using AlibabaCloud::Ecs::Model::CreateDiskRequest;
CreateDiskRequest::CreateDiskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDisk")
{}
CreateDiskRequest::~CreateDiskRequest()
{}
/*
* 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/CreateDiskRequest.h>
using AlibabaCloud::Ecs::Model::CreateDiskRequest;
CreateDiskRequest::CreateDiskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDisk")
{}
CreateDiskRequest::~CreateDiskRequest()
{}
long CreateDiskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -69,6 +69,17 @@ void CreateDiskRequest::setClientToken(const std::string& clientToken)
setCoreParameter("ClientToken", clientToken);
}
std::string CreateDiskRequest::getPerformanceLevel()const
{
return performanceLevel_;
}
void CreateDiskRequest::setPerformanceLevel(const std::string& performanceLevel)
{
performanceLevel_ = performanceLevel;
setCoreParameter("PerformanceLevel", performanceLevel);
}
std::string CreateDiskRequest::getOwnerAccount()const
{
return ownerAccount_;
@@ -146,6 +157,17 @@ void CreateDiskRequest::setInstanceId(const std::string& instanceId)
setCoreParameter("InstanceId", instanceId);
}
std::string CreateDiskRequest::getStorageSetId()const
{
return storageSetId_;
}
void CreateDiskRequest::setStorageSetId(const std::string& storageSetId)
{
storageSetId_ = storageSetId;
setCoreParameter("StorageSetId", storageSetId);
}
int CreateDiskRequest::getSize()const
{
return size_;
@@ -201,6 +223,17 @@ void CreateDiskRequest::setZoneId(const std::string& zoneId)
setCoreParameter("ZoneId", zoneId);
}
int CreateDiskRequest::getStorageSetPartitionNumber()const
{
return storageSetPartitionNumber_;
}
void CreateDiskRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber)
{
storageSetPartitionNumber_ = storageSetPartitionNumber;
setCoreParameter("StorageSetPartitionNumber", std::to_string(storageSetPartitionNumber));
}
std::vector<CreateDiskRequest::Tag> CreateDiskRequest::getTag()const
{
return tag_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateDiskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateDiskResult::CreateDiskResult() :
ServiceResult()
{}
CreateDiskResult::CreateDiskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDiskResult::~CreateDiskResult()
{}
void CreateDiskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateDiskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateDiskResult::CreateDiskResult() :
ServiceResult()
{}
CreateDiskResult::CreateDiskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDiskResult::~CreateDiskResult()
{}
void CreateDiskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DiskId"].isNull())
diskId_ = value["DiskId"].asString();
}
}
std::string CreateDiskResult::getDiskId()const
{
return diskId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateFleetRequest.h>
using AlibabaCloud::Ecs::Model::CreateFleetRequest;
CreateFleetRequest::CreateFleetRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateFleet")
{}
CreateFleetRequest::~CreateFleetRequest()
{}
/*
* 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/CreateFleetRequest.h>
using AlibabaCloud::Ecs::Model::CreateFleetRequest;
CreateFleetRequest::CreateFleetRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateFleet")
{}
CreateFleetRequest::~CreateFleetRequest()
{}
long CreateFleetRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -463,6 +463,17 @@ void CreateFleetRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string CreateFleetRequest::getAkProxy()const
{
return akProxy_;
}
void CreateFleetRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string CreateFleetRequest::getTotalTargetCapacity()const
{
return totalTargetCapacity_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateFleetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateFleetResult::CreateFleetResult() :
ServiceResult()
{}
CreateFleetResult::CreateFleetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFleetResult::~CreateFleetResult()
{}
void CreateFleetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateFleetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateFleetResult::CreateFleetResult() :
ServiceResult()
{}
CreateFleetResult::CreateFleetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFleetResult::~CreateFleetResult()
{}
void CreateFleetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["FleetId"].isNull())
fleetId_ = value["FleetId"].asString();
}
}
std::string CreateFleetResult::getFleetId()const
{
return fleetId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateForwardEntryRequest.h>
using AlibabaCloud::Ecs::Model::CreateForwardEntryRequest;
CreateForwardEntryRequest::CreateForwardEntryRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateForwardEntry")
{}
CreateForwardEntryRequest::~CreateForwardEntryRequest()
{}
/*
* 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/CreateForwardEntryRequest.h>
using AlibabaCloud::Ecs::Model::CreateForwardEntryRequest;
CreateForwardEntryRequest::CreateForwardEntryRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateForwardEntry")
{}
CreateForwardEntryRequest::~CreateForwardEntryRequest()
{}
long CreateForwardEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateForwardEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateForwardEntryResult::CreateForwardEntryResult() :
ServiceResult()
{}
CreateForwardEntryResult::CreateForwardEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateForwardEntryResult::~CreateForwardEntryResult()
{}
void CreateForwardEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateForwardEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateForwardEntryResult::CreateForwardEntryResult() :
ServiceResult()
{}
CreateForwardEntryResult::CreateForwardEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateForwardEntryResult::~CreateForwardEntryResult()
{}
void CreateForwardEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ForwardEntryId"].isNull())
forwardEntryId_ = value["ForwardEntryId"].asString();
}
}
std::string CreateForwardEntryResult::getForwardEntryId()const
{
return forwardEntryId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateHaVipRequest.h>
using AlibabaCloud::Ecs::Model::CreateHaVipRequest;
CreateHaVipRequest::CreateHaVipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateHaVip")
{}
CreateHaVipRequest::~CreateHaVipRequest()
{}
/*
* 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/CreateHaVipRequest.h>
using AlibabaCloud::Ecs::Model::CreateHaVipRequest;
CreateHaVipRequest::CreateHaVipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateHaVip")
{}
CreateHaVipRequest::~CreateHaVipRequest()
{}
std::string CreateHaVipRequest::getVSwitchId()const
{
return vSwitchId_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateHaVipResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateHaVipResult::CreateHaVipResult() :
ServiceResult()
{}
CreateHaVipResult::CreateHaVipResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateHaVipResult::~CreateHaVipResult()
{}
void CreateHaVipResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateHaVipResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateHaVipResult::CreateHaVipResult() :
ServiceResult()
{}
CreateHaVipResult::CreateHaVipResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateHaVipResult::~CreateHaVipResult()
{}
void CreateHaVipResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["HaVipId"].isNull())
haVipId_ = value["HaVipId"].asString();
}
}
std::string CreateHaVipResult::getHaVipId()const
{
return haVipId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateHpcClusterRequest.h>
using AlibabaCloud::Ecs::Model::CreateHpcClusterRequest;
CreateHpcClusterRequest::CreateHpcClusterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateHpcCluster")
{}
CreateHpcClusterRequest::~CreateHpcClusterRequest()
{}
/*
* 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/CreateHpcClusterRequest.h>
using AlibabaCloud::Ecs::Model::CreateHpcClusterRequest;
CreateHpcClusterRequest::CreateHpcClusterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateHpcCluster")
{}
CreateHpcClusterRequest::~CreateHpcClusterRequest()
{}
long CreateHpcClusterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -311,6 +311,17 @@ void CreateHpcClusterRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string CreateHpcClusterRequest::getAkProxy()const
{
return akProxy_;
}
void CreateHpcClusterRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string CreateHpcClusterRequest::getName()const
{
return name_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateHpcClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateHpcClusterResult::CreateHpcClusterResult() :
ServiceResult()
{}
CreateHpcClusterResult::CreateHpcClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateHpcClusterResult::~CreateHpcClusterResult()
{}
void CreateHpcClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateHpcClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateHpcClusterResult::CreateHpcClusterResult() :
ServiceResult()
{}
CreateHpcClusterResult::CreateHpcClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateHpcClusterResult::~CreateHpcClusterResult()
{}
void CreateHpcClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["HpcClusterId"].isNull())
hpcClusterId_ = value["HpcClusterId"].asString();
}
}
std::string CreateHpcClusterResult::getHpcClusterId()const
{
return hpcClusterId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateImageRequest.h>
using AlibabaCloud::Ecs::Model::CreateImageRequest;
CreateImageRequest::CreateImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateImage")
{}
CreateImageRequest::~CreateImageRequest()
{}
/*
* 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/CreateImageRequest.h>
using AlibabaCloud::Ecs::Model::CreateImageRequest;
CreateImageRequest::CreateImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateImage")
{}
CreateImageRequest::~CreateImageRequest()
{}
std::vector<CreateImageRequest::DiskDeviceMapping> CreateImageRequest::getDiskDeviceMapping()const
{
return diskDeviceMapping_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateImageResult::CreateImageResult() :
ServiceResult()
{}
CreateImageResult::CreateImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateImageResult::~CreateImageResult()
{}
void CreateImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateImageResult::CreateImageResult() :
ServiceResult()
{}
CreateImageResult::CreateImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateImageResult::~CreateImageResult()
{}
void CreateImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ImageId"].isNull())
imageId_ = value["ImageId"].asString();
}
}
std::string CreateImageResult::getImageId()const
{
return imageId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateInstanceRequest.h>
using AlibabaCloud::Ecs::Model::CreateInstanceRequest;
CreateInstanceRequest::CreateInstanceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateInstance")
{}
CreateInstanceRequest::~CreateInstanceRequest()
{}
/*
* 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/CreateInstanceRequest.h>
using AlibabaCloud::Ecs::Model::CreateInstanceRequest;
CreateInstanceRequest::CreateInstanceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateInstance")
{}
CreateInstanceRequest::~CreateInstanceRequest()
{}
long CreateInstanceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -135,6 +135,17 @@ void CreateInstanceRequest::setPassword(const std::string& password)
setCoreParameter("Password", password);
}
int CreateInstanceRequest::getStorageSetPartitionNumber()const
{
return storageSetPartitionNumber_;
}
void CreateInstanceRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber)
{
storageSetPartitionNumber_ = storageSetPartitionNumber;
setCoreParameter("StorageSetPartitionNumber", std::to_string(storageSetPartitionNumber));
}
std::vector<CreateInstanceRequest::Tag> CreateInstanceRequest::getTag()const
{
return tag_;
@@ -449,6 +460,17 @@ void CreateInstanceRequest::setCapacityReservationId(const std::string& capacity
setCoreParameter("CapacityReservationId", capacityReservationId);
}
std::string CreateInstanceRequest::getSystemDiskPerformanceLevel()const
{
return systemDiskPerformanceLevel_;
}
void CreateInstanceRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel)
{
systemDiskPerformanceLevel_ = systemDiskPerformanceLevel;
setCoreParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel);
}
std::string CreateInstanceRequest::getUserData()const
{
return userData_;
@@ -648,6 +670,7 @@ void CreateInstanceRequest::setDataDisk(const std::vector<DataDisk>& dataDisk)
setCoreParameter(str + ".SnapshotId", obj.snapshotId);
setCoreParameter(str + ".Size", std::to_string(obj.size));
setCoreParameter(str + ".Encrypted", obj.encrypted ? "true" : "false");
setCoreParameter(str + ".PerformanceLevel", obj.performanceLevel);
setCoreParameter(str + ".Description", obj.description);
setCoreParameter(str + ".Category", obj.category);
setCoreParameter(str + ".KMSKeyId", obj.kMSKeyId);
@@ -656,6 +679,17 @@ void CreateInstanceRequest::setDataDisk(const std::vector<DataDisk>& dataDisk)
}
}
std::string CreateInstanceRequest::getStorageSetId()const
{
return storageSetId_;
}
void CreateInstanceRequest::setStorageSetId(const std::string& storageSetId)
{
storageSetId_ = storageSetId;
setCoreParameter("StorageSetId", storageSetId);
}
int CreateInstanceRequest::getSystemDiskSize()const
{
return systemDiskSize_;

View File

@@ -1,52 +1,52 @@
/*
* 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/CreateInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateInstanceResult::CreateInstanceResult() :
ServiceResult()
{}
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInstanceResult::~CreateInstanceResult()
{}
void CreateInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateInstanceResult::CreateInstanceResult() :
ServiceResult()
{}
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInstanceResult::~CreateInstanceResult()
{}
void CreateInstanceResult::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["TradePrice"].isNull())
tradePrice_ = std::stof(value["TradePrice"].asString());
}
}
std::string CreateInstanceResult::getInstanceId()const
{
return instanceId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateKeyPairRequest.h>
using AlibabaCloud::Ecs::Model::CreateKeyPairRequest;
CreateKeyPairRequest::CreateKeyPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair")
{}
CreateKeyPairRequest::~CreateKeyPairRequest()
{}
/*
* 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/CreateKeyPairRequest.h>
using AlibabaCloud::Ecs::Model::CreateKeyPairRequest;
CreateKeyPairRequest::CreateKeyPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair")
{}
CreateKeyPairRequest::~CreateKeyPairRequest()
{}
std::string CreateKeyPairRequest::getSourceRegionId()const
{
return sourceRegionId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/CreateKeyPairResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateKeyPairResult::CreateKeyPairResult() :
ServiceResult()
{}
CreateKeyPairResult::CreateKeyPairResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateKeyPairResult::~CreateKeyPairResult()
{}
void CreateKeyPairResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateKeyPairResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateKeyPairResult::CreateKeyPairResult() :
ServiceResult()
{}
CreateKeyPairResult::CreateKeyPairResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateKeyPairResult::~CreateKeyPairResult()
{}
void CreateKeyPairResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["KeyPairId"].isNull())
keyPairId_ = value["KeyPairId"].asString();
if(!value["KeyPairName"].isNull())
@@ -48,9 +48,9 @@ void CreateKeyPairResult::parse(const std::string &payload)
keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString();
if(!value["PrivateKeyBody"].isNull())
privateKeyBody_ = value["PrivateKeyBody"].asString();
}
}
std::string CreateKeyPairResult::getKeyPairFingerPrint()const
{
return keyPairFingerPrint_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateLaunchTemplateRequest.h>
using AlibabaCloud::Ecs::Model::CreateLaunchTemplateRequest;
CreateLaunchTemplateRequest::CreateLaunchTemplateRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplate")
{}
CreateLaunchTemplateRequest::~CreateLaunchTemplateRequest()
{}
/*
* 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/CreateLaunchTemplateRequest.h>
using AlibabaCloud::Ecs::Model::CreateLaunchTemplateRequest;
CreateLaunchTemplateRequest::CreateLaunchTemplateRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplate")
{}
CreateLaunchTemplateRequest::~CreateLaunchTemplateRequest()
{}
std::string CreateLaunchTemplateRequest::getLaunchTemplateName()const
{
return launchTemplateName_;
@@ -367,6 +367,17 @@ void CreateLaunchTemplateRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string CreateLaunchTemplateRequest::getAkProxy()const
{
return akProxy_;
}
void CreateLaunchTemplateRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string CreateLaunchTemplateRequest::getInternetChargeType()const
{
return internetChargeType_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateLaunchTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateLaunchTemplateResult::CreateLaunchTemplateResult() :
ServiceResult()
{}
CreateLaunchTemplateResult::CreateLaunchTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLaunchTemplateResult::~CreateLaunchTemplateResult()
{}
void CreateLaunchTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateLaunchTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateLaunchTemplateResult::CreateLaunchTemplateResult() :
ServiceResult()
{}
CreateLaunchTemplateResult::CreateLaunchTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLaunchTemplateResult::~CreateLaunchTemplateResult()
{}
void CreateLaunchTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["LaunchTemplateId"].isNull())
launchTemplateId_ = value["LaunchTemplateId"].asString();
}
}
std::string CreateLaunchTemplateResult::getLaunchTemplateId()const
{
return launchTemplateId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateLaunchTemplateVersionRequest.h>
using AlibabaCloud::Ecs::Model::CreateLaunchTemplateVersionRequest;
CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplateVersion")
{}
CreateLaunchTemplateVersionRequest::~CreateLaunchTemplateVersionRequest()
{}
/*
* 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/CreateLaunchTemplateVersionRequest.h>
using AlibabaCloud::Ecs::Model::CreateLaunchTemplateVersionRequest;
CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplateVersion")
{}
CreateLaunchTemplateVersionRequest::~CreateLaunchTemplateVersionRequest()
{}
std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateName()const
{
return launchTemplateName_;
@@ -350,6 +350,17 @@ void CreateLaunchTemplateVersionRequest::setRequestId(const std::string& request
setCoreParameter("RequestId", requestId);
}
std::string CreateLaunchTemplateVersionRequest::getAkProxy()const
{
return akProxy_;
}
void CreateLaunchTemplateVersionRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string CreateLaunchTemplateVersionRequest::getInternetChargeType()const
{
return internetChargeType_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateLaunchTemplateVersionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateLaunchTemplateVersionResult::CreateLaunchTemplateVersionResult() :
ServiceResult()
{}
CreateLaunchTemplateVersionResult::CreateLaunchTemplateVersionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLaunchTemplateVersionResult::~CreateLaunchTemplateVersionResult()
{}
void CreateLaunchTemplateVersionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateLaunchTemplateVersionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateLaunchTemplateVersionResult::CreateLaunchTemplateVersionResult() :
ServiceResult()
{}
CreateLaunchTemplateVersionResult::CreateLaunchTemplateVersionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLaunchTemplateVersionResult::~CreateLaunchTemplateVersionResult()
{}
void CreateLaunchTemplateVersionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["LaunchTemplateVersionNumber"].isNull())
launchTemplateVersionNumber_ = std::stol(value["LaunchTemplateVersionNumber"].asString());
}
}
long CreateLaunchTemplateVersionResult::getLaunchTemplateVersionNumber()const
{
return launchTemplateVersionNumber_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateNatGatewayRequest.h>
using AlibabaCloud::Ecs::Model::CreateNatGatewayRequest;
CreateNatGatewayRequest::CreateNatGatewayRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNatGateway")
{}
CreateNatGatewayRequest::~CreateNatGatewayRequest()
{}
/*
* 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/CreateNatGatewayRequest.h>
using AlibabaCloud::Ecs::Model::CreateNatGatewayRequest;
CreateNatGatewayRequest::CreateNatGatewayRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNatGateway")
{}
CreateNatGatewayRequest::~CreateNatGatewayRequest()
{}
long CreateNatGatewayRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/CreateNatGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateNatGatewayResult::CreateNatGatewayResult() :
ServiceResult()
{}
CreateNatGatewayResult::CreateNatGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNatGatewayResult::~CreateNatGatewayResult()
{}
void CreateNatGatewayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateNatGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateNatGatewayResult::CreateNatGatewayResult() :
ServiceResult()
{}
CreateNatGatewayResult::CreateNatGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNatGatewayResult::~CreateNatGatewayResult()
{}
void CreateNatGatewayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"];
for (const auto &item : allForwardTableIds)
forwardTableIds_.push_back(item.asString());
@@ -48,9 +48,9 @@ void CreateNatGatewayResult::parse(const std::string &payload)
bandwidthPackageIds_.push_back(item.asString());
if(!value["NatGatewayId"].isNull())
natGatewayId_ = value["NatGatewayId"].asString();
}
}
std::vector<std::string> CreateNatGatewayResult::getForwardTableIds()const
{
return forwardTableIds_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateNetworkInterfacePermissionRequest.h>
using AlibabaCloud::Ecs::Model::CreateNetworkInterfacePermissionRequest;
CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterfacePermission")
{}
CreateNetworkInterfacePermissionRequest::~CreateNetworkInterfacePermissionRequest()
{}
/*
* 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/CreateNetworkInterfacePermissionRequest.h>
using AlibabaCloud::Ecs::Model::CreateNetworkInterfacePermissionRequest;
CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterfacePermission")
{}
CreateNetworkInterfacePermissionRequest::~CreateNetworkInterfacePermissionRequest()
{}
long CreateNetworkInterfacePermissionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -311,6 +311,17 @@ void CreateNetworkInterfacePermissionRequest::setRequestId(const std::string& re
setCoreParameter("RequestId", requestId);
}
std::string CreateNetworkInterfacePermissionRequest::getAkProxy()const
{
return akProxy_;
}
void CreateNetworkInterfacePermissionRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string CreateNetworkInterfacePermissionRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/CreateNetworkInterfacePermissionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateNetworkInterfacePermissionResult::CreateNetworkInterfacePermissionResult() :
ServiceResult()
{}
CreateNetworkInterfacePermissionResult::CreateNetworkInterfacePermissionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNetworkInterfacePermissionResult::~CreateNetworkInterfacePermissionResult()
{}
void CreateNetworkInterfacePermissionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateNetworkInterfacePermissionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateNetworkInterfacePermissionResult::CreateNetworkInterfacePermissionResult() :
ServiceResult()
{}
CreateNetworkInterfacePermissionResult::CreateNetworkInterfacePermissionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNetworkInterfacePermissionResult::~CreateNetworkInterfacePermissionResult()
{}
void CreateNetworkInterfacePermissionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto networkInterfacePermissionNode = value["NetworkInterfacePermission"];
if(!networkInterfacePermissionNode["AccountId"].isNull())
networkInterfacePermission_.accountId = std::stol(networkInterfacePermissionNode["AccountId"].asString());
@@ -53,9 +53,9 @@ void CreateNetworkInterfacePermissionResult::parse(const std::string &payload)
networkInterfacePermission_.permission = networkInterfacePermissionNode["Permission"].asString();
if(!networkInterfacePermissionNode["PermissionState"].isNull())
networkInterfacePermission_.permissionState = networkInterfacePermissionNode["PermissionState"].asString();
}
}
CreateNetworkInterfacePermissionResult::NetworkInterfacePermission CreateNetworkInterfacePermissionResult::getNetworkInterfacePermission()const
{
return networkInterfacePermission_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::CreateNetworkInterfaceRequest;
CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterface")
{}
CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest()
{}
/*
* 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/CreateNetworkInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::CreateNetworkInterfaceRequest;
CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterface")
{}
CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest()
{}
long CreateNetworkInterfaceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -394,6 +394,17 @@ void CreateNetworkInterfaceRequest::setRequestId(const std::string& requestId)
setCoreParameter("RequestId", requestId);
}
std::string CreateNetworkInterfaceRequest::getAkProxy()const
{
return akProxy_;
}
void CreateNetworkInterfaceRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string CreateNetworkInterfaceRequest::getPrimaryIpAddress()const
{
return primaryIpAddress_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateNetworkInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateNetworkInterfaceResult::CreateNetworkInterfaceResult() :
ServiceResult()
{}
CreateNetworkInterfaceResult::CreateNetworkInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNetworkInterfaceResult::~CreateNetworkInterfaceResult()
{}
void CreateNetworkInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateNetworkInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateNetworkInterfaceResult::CreateNetworkInterfaceResult() :
ServiceResult()
{}
CreateNetworkInterfaceResult::CreateNetworkInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNetworkInterfaceResult::~CreateNetworkInterfaceResult()
{}
void CreateNetworkInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["NetworkInterfaceId"].isNull())
networkInterfaceId_ = value["NetworkInterfaceId"].asString();
}
}
std::string CreateNetworkInterfaceResult::getNetworkInterfaceId()const
{
return networkInterfaceId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreatePhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::CreatePhysicalConnectionRequest;
CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreatePhysicalConnection")
{}
CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest()
{}
/*
* 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/CreatePhysicalConnectionRequest.h>
using AlibabaCloud::Ecs::Model::CreatePhysicalConnectionRequest;
CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreatePhysicalConnection")
{}
CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest()
{}
std::string CreatePhysicalConnectionRequest::getAccessPointId()const
{
return accessPointId_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreatePhysicalConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreatePhysicalConnectionResult::CreatePhysicalConnectionResult() :
ServiceResult()
{}
CreatePhysicalConnectionResult::CreatePhysicalConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePhysicalConnectionResult::~CreatePhysicalConnectionResult()
{}
void CreatePhysicalConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreatePhysicalConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreatePhysicalConnectionResult::CreatePhysicalConnectionResult() :
ServiceResult()
{}
CreatePhysicalConnectionResult::CreatePhysicalConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePhysicalConnectionResult::~CreatePhysicalConnectionResult()
{}
void CreatePhysicalConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["PhysicalConnectionId"].isNull())
physicalConnectionId_ = value["PhysicalConnectionId"].asString();
}
}
std::string CreatePhysicalConnectionResult::getPhysicalConnectionId()const
{
return physicalConnectionId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateRouteEntryRequest.h>
using AlibabaCloud::Ecs::Model::CreateRouteEntryRequest;
CreateRouteEntryRequest::CreateRouteEntryRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateRouteEntry")
{}
CreateRouteEntryRequest::~CreateRouteEntryRequest()
{}
/*
* 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/CreateRouteEntryRequest.h>
using AlibabaCloud::Ecs::Model::CreateRouteEntryRequest;
CreateRouteEntryRequest::CreateRouteEntryRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateRouteEntry")
{}
CreateRouteEntryRequest::~CreateRouteEntryRequest()
{}
long CreateRouteEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,45 +1,45 @@
/*
* 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/CreateRouteEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateRouteEntryResult::CreateRouteEntryResult() :
ServiceResult()
{}
CreateRouteEntryResult::CreateRouteEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRouteEntryResult::~CreateRouteEntryResult()
{}
void CreateRouteEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}
/*
* 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/CreateRouteEntryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateRouteEntryResult::CreateRouteEntryResult() :
ServiceResult()
{}
CreateRouteEntryResult::CreateRouteEntryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRouteEntryResult::~CreateRouteEntryResult()
{}
void CreateRouteEntryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::CreateRouterInterfaceRequest;
CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface")
{}
CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest()
{}
/*
* 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/CreateRouterInterfaceRequest.h>
using AlibabaCloud::Ecs::Model::CreateRouterInterfaceRequest;
CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface")
{}
CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest()
{}
std::string CreateRouterInterfaceRequest::getAccessPointId()const
{
return accessPointId_;

View File

@@ -1,52 +1,52 @@
/*
* 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/CreateRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateRouterInterfaceResult::CreateRouterInterfaceResult() :
ServiceResult()
{}
CreateRouterInterfaceResult::CreateRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRouterInterfaceResult::~CreateRouterInterfaceResult()
{}
void CreateRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateRouterInterfaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateRouterInterfaceResult::CreateRouterInterfaceResult() :
ServiceResult()
{}
CreateRouterInterfaceResult::CreateRouterInterfaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRouterInterfaceResult::~CreateRouterInterfaceResult()
{}
void CreateRouterInterfaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RouterInterfaceId"].isNull())
routerInterfaceId_ = value["RouterInterfaceId"].asString();
if(!value["OrderId"].isNull())
orderId_ = std::stol(value["OrderId"].asString());
}
}
long CreateRouterInterfaceResult::getOrderId()const
{
return orderId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateSecurityGroupRequest.h>
using AlibabaCloud::Ecs::Model::CreateSecurityGroupRequest;
CreateSecurityGroupRequest::CreateSecurityGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSecurityGroup")
{}
CreateSecurityGroupRequest::~CreateSecurityGroupRequest()
{}
/*
* 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/CreateSecurityGroupRequest.h>
using AlibabaCloud::Ecs::Model::CreateSecurityGroupRequest;
CreateSecurityGroupRequest::CreateSecurityGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSecurityGroup")
{}
CreateSecurityGroupRequest::~CreateSecurityGroupRequest()
{}
long CreateSecurityGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateSecurityGroupResult::CreateSecurityGroupResult() :
ServiceResult()
{}
CreateSecurityGroupResult::CreateSecurityGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSecurityGroupResult::~CreateSecurityGroupResult()
{}
void CreateSecurityGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateSecurityGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateSecurityGroupResult::CreateSecurityGroupResult() :
ServiceResult()
{}
CreateSecurityGroupResult::CreateSecurityGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSecurityGroupResult::~CreateSecurityGroupResult()
{}
void CreateSecurityGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SecurityGroupId"].isNull())
securityGroupId_ = value["SecurityGroupId"].asString();
}
}
std::string CreateSecurityGroupResult::getSecurityGroupId()const
{
return securityGroupId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/CreateSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CreateSimulatedSystemEventsRequest;
CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents")
{}
CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest()
{}
/*
* 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/CreateSimulatedSystemEventsRequest.h>
using AlibabaCloud::Ecs::Model::CreateSimulatedSystemEventsRequest;
CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents")
{}
CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest()
{}
long CreateSimulatedSystemEventsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -113,6 +113,17 @@ void CreateSimulatedSystemEventsRequest::setAccessKeyId(const std::string& acces
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateSimulatedSystemEventsRequest::getSourceRegionId()const
{
return sourceRegionId_;
}
void CreateSimulatedSystemEventsRequest::setSourceRegionId(const std::string& sourceRegionId)
{
sourceRegionId_ = sourceRegionId;
setCoreParameter("SourceRegionId", sourceRegionId);
}
std::string CreateSimulatedSystemEventsRequest::getResourceGroupId()const
{
return resourceGroupId_;
@@ -312,6 +323,17 @@ void CreateSimulatedSystemEventsRequest::setRequestId(const std::string& request
setCoreParameter("RequestId", requestId);
}
std::string CreateSimulatedSystemEventsRequest::getAkProxy()const
{
return akProxy_;
}
void CreateSimulatedSystemEventsRequest::setAkProxy(const std::string& akProxy)
{
akProxy_ = akProxy;
setCoreParameter("AkProxy", akProxy);
}
std::string CreateSimulatedSystemEventsRequest::getEventType()const
{
return eventType_;

View File

@@ -1,51 +1,51 @@
/*
* 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/CreateSimulatedSystemEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateSimulatedSystemEventsResult::CreateSimulatedSystemEventsResult() :
ServiceResult()
{}
CreateSimulatedSystemEventsResult::CreateSimulatedSystemEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSimulatedSystemEventsResult::~CreateSimulatedSystemEventsResult()
{}
void CreateSimulatedSystemEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateSimulatedSystemEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateSimulatedSystemEventsResult::CreateSimulatedSystemEventsResult() :
ServiceResult()
{}
CreateSimulatedSystemEventsResult::CreateSimulatedSystemEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSimulatedSystemEventsResult::~CreateSimulatedSystemEventsResult()
{}
void CreateSimulatedSystemEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEventIdSet = value["EventIdSet"]["EventId"];
for (const auto &item : allEventIdSet)
eventIdSet_.push_back(item.asString());
}
}
std::vector<std::string> CreateSimulatedSystemEventsResult::getEventIdSet()const
{
return eventIdSet_;

View File

@@ -1,40 +1,29 @@
/*
* 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/CreateSnapshotRequest.h>
using AlibabaCloud::Ecs::Model::CreateSnapshotRequest;
CreateSnapshotRequest::CreateSnapshotRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshot")
{}
CreateSnapshotRequest::~CreateSnapshotRequest()
{}
std::string CreateSnapshotRequest::getSourceRegionId()const
{
return sourceRegionId_;
}
/*
* 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.
*/
void CreateSnapshotRequest::setSourceRegionId(const std::string& sourceRegionId)
{
sourceRegionId_ = sourceRegionId;
setCoreParameter("SourceRegionId", sourceRegionId);
}
#include <alibabacloud/ecs/model/CreateSnapshotRequest.h>
using AlibabaCloud::Ecs::Model::CreateSnapshotRequest;
CreateSnapshotRequest::CreateSnapshotRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshot")
{}
CreateSnapshotRequest::~CreateSnapshotRequest()
{}
long CreateSnapshotRequest::getResourceOwnerId()const
{
@@ -91,6 +80,61 @@ void CreateSnapshotRequest::setDescription(const std::string& description)
setCoreParameter("Description", description);
}
std::string CreateSnapshotRequest::getSnapshotName()const
{
return snapshotName_;
}
void CreateSnapshotRequest::setSnapshotName(const std::string& snapshotName)
{
snapshotName_ = snapshotName;
setCoreParameter("SnapshotName", snapshotName);
}
long CreateSnapshotRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSnapshotRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateSnapshotRequest::getSourceRegionId()const
{
return sourceRegionId_;
}
void CreateSnapshotRequest::setSourceRegionId(const std::string& sourceRegionId)
{
sourceRegionId_ = sourceRegionId;
setCoreParameter("SourceRegionId", sourceRegionId);
}
std::string CreateSnapshotRequest::getSourceSnapshotId()const
{
return sourceSnapshotId_;
}
void CreateSnapshotRequest::setSourceSnapshotId(const std::string& sourceSnapshotId)
{
sourceSnapshotId_ = sourceSnapshotId;
setCoreParameter("SourceSnapshotId", sourceSnapshotId);
}
bool CreateSnapshotRequest::getRemoveSourceSnapshot()const
{
return removeSourceSnapshot_;
}
void CreateSnapshotRequest::setRemoveSourceSnapshot(bool removeSourceSnapshot)
{
removeSourceSnapshot_ = removeSourceSnapshot;
setCoreParameter("RemoveSourceSnapshot", removeSourceSnapshot ? "true" : "false");
}
std::string CreateSnapshotRequest::getDiskId()const
{
return diskId_;
@@ -102,15 +146,15 @@ void CreateSnapshotRequest::setDiskId(const std::string& diskId)
setCoreParameter("DiskId", diskId);
}
std::string CreateSnapshotRequest::getSnapshotName()const
int CreateSnapshotRequest::getRetentionDays()const
{
return snapshotName_;
return retentionDays_;
}
void CreateSnapshotRequest::setSnapshotName(const std::string& snapshotName)
void CreateSnapshotRequest::setRetentionDays(int retentionDays)
{
snapshotName_ = snapshotName;
setCoreParameter("SnapshotName", snapshotName);
retentionDays_ = retentionDays;
setCoreParameter("RetentionDays", std::to_string(retentionDays));
}
std::vector<CreateSnapshotRequest::Tag> CreateSnapshotRequest::getTag()const
@@ -130,14 +174,14 @@ void CreateSnapshotRequest::setTag(const std::vector<Tag>& tag)
}
}
long CreateSnapshotRequest::getOwnerId()const
std::string CreateSnapshotRequest::getCategory()const
{
return ownerId_;
return category_;
}
void CreateSnapshotRequest::setOwnerId(long ownerId)
void CreateSnapshotRequest::setCategory(const std::string& category)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
category_ = category;
setCoreParameter("Category", category);
}

View File

@@ -1,50 +1,50 @@
/*
* 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/CreateSnapshotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateSnapshotResult::CreateSnapshotResult() :
ServiceResult()
{}
CreateSnapshotResult::CreateSnapshotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSnapshotResult::~CreateSnapshotResult()
{}
void CreateSnapshotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/CreateSnapshotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateSnapshotResult::CreateSnapshotResult() :
ServiceResult()
{}
CreateSnapshotResult::CreateSnapshotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSnapshotResult::~CreateSnapshotResult()
{}
void CreateSnapshotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SnapshotId"].isNull())
snapshotId_ = value["SnapshotId"].asString();
}
}
std::string CreateSnapshotResult::getSnapshotId()const
{
return snapshotId_;

Some files were not shown because too many files have changed in this diff Show More