Generated 2019-11-20 for Ga.

This commit is contained in:
sdk-team
2021-06-17 02:41:03 +00:00
parent 698f5e96da
commit cab6049e8f
226 changed files with 18257 additions and 1 deletions

2033
ga/src/GaClient.cc Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/AddEntriesToAclRequest.h>
using AlibabaCloud::Ga::Model::AddEntriesToAclRequest;
AddEntriesToAclRequest::AddEntriesToAclRequest() :
RpcServiceRequest("ga", "2019-11-20", "AddEntriesToAcl")
{
setMethod(HttpRequest::Method::Post);
}
AddEntriesToAclRequest::~AddEntriesToAclRequest()
{}
std::string AddEntriesToAclRequest::getAclId()const
{
return aclId_;
}
void AddEntriesToAclRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setParameter("AclId", aclId);
}
bool AddEntriesToAclRequest::getDryRun()const
{
return dryRun_;
}
void AddEntriesToAclRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string AddEntriesToAclRequest::getClientToken()const
{
return clientToken_;
}
void AddEntriesToAclRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::vector<AddEntriesToAclRequest::AclEntries> AddEntriesToAclRequest::getAclEntries()const
{
return aclEntries_;
}
void AddEntriesToAclRequest::setAclEntries(const std::vector<AclEntries>& aclEntries)
{
aclEntries_ = aclEntries;
for(int dep1 = 0; dep1!= aclEntries.size(); dep1++) {
auto aclEntriesObj = aclEntries.at(dep1);
std::string aclEntriesObjStr = "AclEntries." + std::to_string(dep1 + 1);
setParameter(aclEntriesObjStr + ".Entry", aclEntriesObj.entry);
setParameter(aclEntriesObjStr + ".EntryDescription", aclEntriesObj.entryDescription);
}
}
std::string AddEntriesToAclRequest::getRegionId()const
{
return regionId_;
}
void AddEntriesToAclRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +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/ga/model/AddEntriesToAclResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
AddEntriesToAclResult::AddEntriesToAclResult() :
ServiceResult()
{}
AddEntriesToAclResult::AddEntriesToAclResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddEntriesToAclResult::~AddEntriesToAclResult()
{}
void AddEntriesToAclResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AclId"].isNull())
aclId_ = value["AclId"].asString();
}
std::string AddEntriesToAclResult::getAclId()const
{
return aclId_;
}

View File

@@ -0,0 +1,97 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/AssociateAclsWithListenerRequest.h>
using AlibabaCloud::Ga::Model::AssociateAclsWithListenerRequest;
AssociateAclsWithListenerRequest::AssociateAclsWithListenerRequest() :
RpcServiceRequest("ga", "2019-11-20", "AssociateAclsWithListener")
{
setMethod(HttpRequest::Method::Post);
}
AssociateAclsWithListenerRequest::~AssociateAclsWithListenerRequest()
{}
bool AssociateAclsWithListenerRequest::getDryRun()const
{
return dryRun_;
}
void AssociateAclsWithListenerRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string AssociateAclsWithListenerRequest::getClientToken()const
{
return clientToken_;
}
void AssociateAclsWithListenerRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::vector<std::string> AssociateAclsWithListenerRequest::getAclIds()const
{
return aclIds_;
}
void AssociateAclsWithListenerRequest::setAclIds(const std::vector<std::string>& aclIds)
{
aclIds_ = aclIds;
for(int dep1 = 0; dep1!= aclIds.size(); dep1++) {
setParameter("AclIds."+ std::to_string(dep1), aclIds.at(dep1));
}
}
std::string AssociateAclsWithListenerRequest::getAclType()const
{
return aclType_;
}
void AssociateAclsWithListenerRequest::setAclType(const std::string& aclType)
{
aclType_ = aclType;
setParameter("AclType", aclType);
}
std::string AssociateAclsWithListenerRequest::getListenerId()const
{
return listenerId_;
}
void AssociateAclsWithListenerRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::string AssociateAclsWithListenerRequest::getRegionId()const
{
return regionId_;
}
void AssociateAclsWithListenerRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/AssociateAclsWithListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
AssociateAclsWithListenerResult::AssociateAclsWithListenerResult() :
ServiceResult()
{}
AssociateAclsWithListenerResult::AssociateAclsWithListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateAclsWithListenerResult::~AssociateAclsWithListenerResult()
{}
void AssociateAclsWithListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAclIds = value["AclIds"]["aclIds"];
for (const auto &item : allAclIds)
aclIds_.push_back(item.asString());
if(!value["ListenerId"].isNull())
listenerId_ = value["ListenerId"].asString();
}
std::vector<std::string> AssociateAclsWithListenerResult::getAclIds()const
{
return aclIds_;
}
std::string AssociateAclsWithListenerResult::getListenerId()const
{
return listenerId_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/AttachDdosToAcceleratorRequest.h>
using AlibabaCloud::Ga::Model::AttachDdosToAcceleratorRequest;
AttachDdosToAcceleratorRequest::AttachDdosToAcceleratorRequest() :
RpcServiceRequest("ga", "2019-11-20", "AttachDdosToAccelerator")
{
setMethod(HttpRequest::Method::Post);
}
AttachDdosToAcceleratorRequest::~AttachDdosToAcceleratorRequest()
{}
std::string AttachDdosToAcceleratorRequest::getDdosId()const
{
return ddosId_;
}
void AttachDdosToAcceleratorRequest::setDdosId(const std::string& ddosId)
{
ddosId_ = ddosId;
setParameter("DdosId", ddosId);
}
std::string AttachDdosToAcceleratorRequest::getRegionId()const
{
return regionId_;
}
void AttachDdosToAcceleratorRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AttachDdosToAcceleratorRequest::getDdosRegionId()const
{
return ddosRegionId_;
}
void AttachDdosToAcceleratorRequest::setDdosRegionId(const std::string& ddosRegionId)
{
ddosRegionId_ = ddosRegionId;
setParameter("DdosRegionId", ddosRegionId);
}
std::string AttachDdosToAcceleratorRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void AttachDdosToAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/AttachDdosToAcceleratorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
AttachDdosToAcceleratorResult::AttachDdosToAcceleratorResult() :
ServiceResult()
{}
AttachDdosToAcceleratorResult::AttachDdosToAcceleratorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachDdosToAcceleratorResult::~AttachDdosToAcceleratorResult()
{}
void AttachDdosToAcceleratorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DdosId"].isNull())
ddosId_ = value["DdosId"].asString();
if(!value["GaId"].isNull())
gaId_ = value["GaId"].asString();
}
std::string AttachDdosToAcceleratorResult::getDdosId()const
{
return ddosId_;
}
std::string AttachDdosToAcceleratorResult::getGaId()const
{
return gaId_;
}

View File

@@ -0,0 +1,119 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h>
using AlibabaCloud::Ga::Model::AttachLogStoreToEndpointGroupRequest;
AttachLogStoreToEndpointGroupRequest::AttachLogStoreToEndpointGroupRequest() :
RpcServiceRequest("ga", "2019-11-20", "AttachLogStoreToEndpointGroup")
{
setMethod(HttpRequest::Method::Post);
}
AttachLogStoreToEndpointGroupRequest::~AttachLogStoreToEndpointGroupRequest()
{}
std::string AttachLogStoreToEndpointGroupRequest::getClientToken()const
{
return clientToken_;
}
void AttachLogStoreToEndpointGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AttachLogStoreToEndpointGroupRequest::getSlsLogStoreName()const
{
return slsLogStoreName_;
}
void AttachLogStoreToEndpointGroupRequest::setSlsLogStoreName(const std::string& slsLogStoreName)
{
slsLogStoreName_ = slsLogStoreName;
setParameter("SlsLogStoreName", slsLogStoreName);
}
std::string AttachLogStoreToEndpointGroupRequest::getListenerId()const
{
return listenerId_;
}
void AttachLogStoreToEndpointGroupRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::vector<std::string> AttachLogStoreToEndpointGroupRequest::getEndpointGroupIds()const
{
return endpointGroupIds_;
}
void AttachLogStoreToEndpointGroupRequest::setEndpointGroupIds(const std::vector<std::string>& endpointGroupIds)
{
endpointGroupIds_ = endpointGroupIds;
for(int dep1 = 0; dep1!= endpointGroupIds.size(); dep1++) {
setParameter("EndpointGroupIds."+ std::to_string(dep1), endpointGroupIds.at(dep1));
}
}
std::string AttachLogStoreToEndpointGroupRequest::getRegionId()const
{
return regionId_;
}
void AttachLogStoreToEndpointGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AttachLogStoreToEndpointGroupRequest::getSlsProjectName()const
{
return slsProjectName_;
}
void AttachLogStoreToEndpointGroupRequest::setSlsProjectName(const std::string& slsProjectName)
{
slsProjectName_ = slsProjectName;
setParameter("SlsProjectName", slsProjectName);
}
std::string AttachLogStoreToEndpointGroupRequest::getSlsRegionId()const
{
return slsRegionId_;
}
void AttachLogStoreToEndpointGroupRequest::setSlsRegionId(const std::string& slsRegionId)
{
slsRegionId_ = slsRegionId;
setParameter("SlsRegionId", slsRegionId);
}
std::string AttachLogStoreToEndpointGroupRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void AttachLogStoreToEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/AttachLogStoreToEndpointGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
AttachLogStoreToEndpointGroupResult::AttachLogStoreToEndpointGroupResult() :
ServiceResult()
{}
AttachLogStoreToEndpointGroupResult::AttachLogStoreToEndpointGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachLogStoreToEndpointGroupResult::~AttachLogStoreToEndpointGroupResult()
{}
void AttachLogStoreToEndpointGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.h>
using AlibabaCloud::Ga::Model::BandwidthPackageAddAcceleratorRequest;
BandwidthPackageAddAcceleratorRequest::BandwidthPackageAddAcceleratorRequest() :
RpcServiceRequest("ga", "2019-11-20", "BandwidthPackageAddAccelerator")
{
setMethod(HttpRequest::Method::Post);
}
BandwidthPackageAddAcceleratorRequest::~BandwidthPackageAddAcceleratorRequest()
{}
std::string BandwidthPackageAddAcceleratorRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void BandwidthPackageAddAcceleratorRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string BandwidthPackageAddAcceleratorRequest::getRegionId()const
{
return regionId_;
}
void BandwidthPackageAddAcceleratorRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string BandwidthPackageAddAcceleratorRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void BandwidthPackageAddAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/BandwidthPackageAddAcceleratorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
BandwidthPackageAddAcceleratorResult::BandwidthPackageAddAcceleratorResult() :
ServiceResult()
{}
BandwidthPackageAddAcceleratorResult::BandwidthPackageAddAcceleratorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BandwidthPackageAddAcceleratorResult::~BandwidthPackageAddAcceleratorResult()
{}
void BandwidthPackageAddAcceleratorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAccelerators = value["Accelerators"]["Accelerator"];
for (const auto &item : allAccelerators)
accelerators_.push_back(item.asString());
if(!value["BandwidthPackageId"].isNull())
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
}
std::vector<std::string> BandwidthPackageAddAcceleratorResult::getAccelerators()const
{
return accelerators_;
}
std::string BandwidthPackageAddAcceleratorResult::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h>
using AlibabaCloud::Ga::Model::BandwidthPackageRemoveAcceleratorRequest;
BandwidthPackageRemoveAcceleratorRequest::BandwidthPackageRemoveAcceleratorRequest() :
RpcServiceRequest("ga", "2019-11-20", "BandwidthPackageRemoveAccelerator")
{
setMethod(HttpRequest::Method::Post);
}
BandwidthPackageRemoveAcceleratorRequest::~BandwidthPackageRemoveAcceleratorRequest()
{}
std::string BandwidthPackageRemoveAcceleratorRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void BandwidthPackageRemoveAcceleratorRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string BandwidthPackageRemoveAcceleratorRequest::getRegionId()const
{
return regionId_;
}
void BandwidthPackageRemoveAcceleratorRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string BandwidthPackageRemoveAcceleratorRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void BandwidthPackageRemoveAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
BandwidthPackageRemoveAcceleratorResult::BandwidthPackageRemoveAcceleratorResult() :
ServiceResult()
{}
BandwidthPackageRemoveAcceleratorResult::BandwidthPackageRemoveAcceleratorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BandwidthPackageRemoveAcceleratorResult::~BandwidthPackageRemoveAcceleratorResult()
{}
void BandwidthPackageRemoveAcceleratorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAccelerators = value["Accelerators"]["Accelerator"];
for (const auto &item : allAccelerators)
accelerators_.push_back(item.asString());
if(!value["BandwidthPackageId"].isNull())
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
}
std::vector<std::string> BandwidthPackageRemoveAcceleratorResult::getAccelerators()const
{
return accelerators_;
}
std::string BandwidthPackageRemoveAcceleratorResult::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ConfigEndpointProbeRequest.h>
using AlibabaCloud::Ga::Model::ConfigEndpointProbeRequest;
ConfigEndpointProbeRequest::ConfigEndpointProbeRequest() :
RpcServiceRequest("ga", "2019-11-20", "ConfigEndpointProbe")
{
setMethod(HttpRequest::Method::Post);
}
ConfigEndpointProbeRequest::~ConfigEndpointProbeRequest()
{}
std::string ConfigEndpointProbeRequest::getClientToken()const
{
return clientToken_;
}
void ConfigEndpointProbeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string ConfigEndpointProbeRequest::getEndpoint()const
{
return endpoint_;
}
void ConfigEndpointProbeRequest::setEndpoint(const std::string& endpoint)
{
endpoint_ = endpoint;
setParameter("Endpoint", endpoint);
}
std::string ConfigEndpointProbeRequest::getRegionId()const
{
return regionId_;
}
void ConfigEndpointProbeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ConfigEndpointProbeRequest::getEndpointType()const
{
return endpointType_;
}
void ConfigEndpointProbeRequest::setEndpointType(const std::string& endpointType)
{
endpointType_ = endpointType;
setParameter("EndpointType", endpointType);
}
std::string ConfigEndpointProbeRequest::getEnable()const
{
return enable_;
}
void ConfigEndpointProbeRequest::setEnable(const std::string& enable)
{
enable_ = enable;
setParameter("Enable", enable);
}
std::string ConfigEndpointProbeRequest::getProbeProtocol()const
{
return probeProtocol_;
}
void ConfigEndpointProbeRequest::setProbeProtocol(const std::string& probeProtocol)
{
probeProtocol_ = probeProtocol;
setParameter("ProbeProtocol", probeProtocol);
}
std::string ConfigEndpointProbeRequest::getProbePort()const
{
return probePort_;
}
void ConfigEndpointProbeRequest::setProbePort(const std::string& probePort)
{
probePort_ = probePort;
setParameter("ProbePort", probePort);
}
std::string ConfigEndpointProbeRequest::getEndpointGroupId()const
{
return endpointGroupId_;
}
void ConfigEndpointProbeRequest::setEndpointGroupId(const std::string& endpointGroupId)
{
endpointGroupId_ = endpointGroupId;
setParameter("EndpointGroupId", endpointGroupId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ConfigEndpointProbeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ConfigEndpointProbeResult::ConfigEndpointProbeResult() :
ServiceResult()
{}
ConfigEndpointProbeResult::ConfigEndpointProbeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigEndpointProbeResult::~ConfigEndpointProbeResult()
{}
void ConfigEndpointProbeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateAcceleratorRequest.h>
using AlibabaCloud::Ga::Model::CreateAcceleratorRequest;
CreateAcceleratorRequest::CreateAcceleratorRequest() :
RpcServiceRequest("ga", "2019-11-20", "CreateAccelerator")
{
setMethod(HttpRequest::Method::Post);
}
CreateAcceleratorRequest::~CreateAcceleratorRequest()
{}
bool CreateAcceleratorRequest::getAutoPay()const
{
return autoPay_;
}
void CreateAcceleratorRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", autoPay ? "true" : "false");
}
std::string CreateAcceleratorRequest::getPromotionOptionNo()const
{
return promotionOptionNo_;
}
void CreateAcceleratorRequest::setPromotionOptionNo(const std::string& promotionOptionNo)
{
promotionOptionNo_ = promotionOptionNo;
setParameter("PromotionOptionNo", promotionOptionNo);
}
std::string CreateAcceleratorRequest::getClientToken()const
{
return clientToken_;
}
void CreateAcceleratorRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateAcceleratorRequest::getAutoUseCoupon()const
{
return autoUseCoupon_;
}
void CreateAcceleratorRequest::setAutoUseCoupon(const std::string& autoUseCoupon)
{
autoUseCoupon_ = autoUseCoupon;
setParameter("AutoUseCoupon", autoUseCoupon);
}
std::string CreateAcceleratorRequest::getSpec()const
{
return spec_;
}
void CreateAcceleratorRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
}
int CreateAcceleratorRequest::getDuration()const
{
return duration_;
}
void CreateAcceleratorRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
std::string CreateAcceleratorRequest::getRegionId()const
{
return regionId_;
}
void CreateAcceleratorRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateAcceleratorRequest::getName()const
{
return name_;
}
void CreateAcceleratorRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateAcceleratorRequest::getPricingCycle()const
{
return pricingCycle_;
}
void CreateAcceleratorRequest::setPricingCycle(const std::string& pricingCycle)
{
pricingCycle_ = pricingCycle;
setParameter("PricingCycle", pricingCycle);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateAcceleratorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
CreateAcceleratorResult::CreateAcceleratorResult() :
ServiceResult()
{}
CreateAcceleratorResult::CreateAcceleratorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAcceleratorResult::~CreateAcceleratorResult()
{}
void CreateAcceleratorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
if(!value["AcceleratorId"].isNull())
acceleratorId_ = value["AcceleratorId"].asString();
}
std::string CreateAcceleratorResult::getOrderId()const
{
return orderId_;
}
std::string CreateAcceleratorResult::getAcceleratorId()const
{
return acceleratorId_;
}

View File

@@ -0,0 +1,100 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateAclRequest.h>
using AlibabaCloud::Ga::Model::CreateAclRequest;
CreateAclRequest::CreateAclRequest() :
RpcServiceRequest("ga", "2019-11-20", "CreateAcl")
{
setMethod(HttpRequest::Method::Post);
}
CreateAclRequest::~CreateAclRequest()
{}
bool CreateAclRequest::getDryRun()const
{
return dryRun_;
}
void CreateAclRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string CreateAclRequest::getAclName()const
{
return aclName_;
}
void CreateAclRequest::setAclName(const std::string& aclName)
{
aclName_ = aclName;
setParameter("AclName", aclName);
}
std::string CreateAclRequest::getClientToken()const
{
return clientToken_;
}
void CreateAclRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::vector<CreateAclRequest::AclEntries> CreateAclRequest::getAclEntries()const
{
return aclEntries_;
}
void CreateAclRequest::setAclEntries(const std::vector<AclEntries>& aclEntries)
{
aclEntries_ = aclEntries;
for(int dep1 = 0; dep1!= aclEntries.size(); dep1++) {
auto aclEntriesObj = aclEntries.at(dep1);
std::string aclEntriesObjStr = "AclEntries." + std::to_string(dep1 + 1);
setParameter(aclEntriesObjStr + ".Entry", aclEntriesObj.entry);
setParameter(aclEntriesObjStr + ".EntryDescription", aclEntriesObj.entryDescription);
}
}
std::string CreateAclRequest::getAddressIPVersion()const
{
return addressIPVersion_;
}
void CreateAclRequest::setAddressIPVersion(const std::string& addressIPVersion)
{
addressIPVersion_ = addressIPVersion;
setParameter("AddressIPVersion", addressIPVersion);
}
std::string CreateAclRequest::getRegionId()const
{
return regionId_;
}
void CreateAclRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +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/ga/model/CreateAclResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
CreateAclResult::CreateAclResult() :
ServiceResult()
{}
CreateAclResult::CreateAclResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAclResult::~CreateAclResult()
{}
void CreateAclResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AclId"].isNull())
aclId_ = value["AclId"].asString();
}
std::string CreateAclResult::getAclId()const
{
return aclId_;
}

View File

@@ -0,0 +1,194 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateBandwidthPackageRequest.h>
using AlibabaCloud::Ga::Model::CreateBandwidthPackageRequest;
CreateBandwidthPackageRequest::CreateBandwidthPackageRequest() :
RpcServiceRequest("ga", "2019-11-20", "CreateBandwidthPackage")
{
setMethod(HttpRequest::Method::Post);
}
CreateBandwidthPackageRequest::~CreateBandwidthPackageRequest()
{}
std::string CreateBandwidthPackageRequest::getBandwidthType()const
{
return bandwidthType_;
}
void CreateBandwidthPackageRequest::setBandwidthType(const std::string& bandwidthType)
{
bandwidthType_ = bandwidthType;
setParameter("BandwidthType", bandwidthType);
}
std::string CreateBandwidthPackageRequest::getClientToken()const
{
return clientToken_;
}
void CreateBandwidthPackageRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateBandwidthPackageRequest::getAutoUseCoupon()const
{
return autoUseCoupon_;
}
void CreateBandwidthPackageRequest::setAutoUseCoupon(const std::string& autoUseCoupon)
{
autoUseCoupon_ = autoUseCoupon;
setParameter("AutoUseCoupon", autoUseCoupon);
}
std::string CreateBandwidthPackageRequest::getType()const
{
return type_;
}
void CreateBandwidthPackageRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string CreateBandwidthPackageRequest::getDuration()const
{
return duration_;
}
void CreateBandwidthPackageRequest::setDuration(const std::string& duration)
{
duration_ = duration;
setParameter("Duration", duration);
}
std::string CreateBandwidthPackageRequest::getRegionId()const
{
return regionId_;
}
void CreateBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool CreateBandwidthPackageRequest::getAutoPay()const
{
return autoPay_;
}
void CreateBandwidthPackageRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", autoPay ? "true" : "false");
}
std::string CreateBandwidthPackageRequest::getPromotionOptionNo()const
{
return promotionOptionNo_;
}
void CreateBandwidthPackageRequest::setPromotionOptionNo(const std::string& promotionOptionNo)
{
promotionOptionNo_ = promotionOptionNo;
setParameter("PromotionOptionNo", promotionOptionNo);
}
int CreateBandwidthPackageRequest::getBandwidth()const
{
return bandwidth_;
}
void CreateBandwidthPackageRequest::setBandwidth(int bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", std::to_string(bandwidth));
}
std::string CreateBandwidthPackageRequest::getCbnGeographicRegionIdB()const
{
return cbnGeographicRegionIdB_;
}
void CreateBandwidthPackageRequest::setCbnGeographicRegionIdB(const std::string& cbnGeographicRegionIdB)
{
cbnGeographicRegionIdB_ = cbnGeographicRegionIdB;
setParameter("CbnGeographicRegionIdB", cbnGeographicRegionIdB);
}
std::string CreateBandwidthPackageRequest::getCbnGeographicRegionIdA()const
{
return cbnGeographicRegionIdA_;
}
void CreateBandwidthPackageRequest::setCbnGeographicRegionIdA(const std::string& cbnGeographicRegionIdA)
{
cbnGeographicRegionIdA_ = cbnGeographicRegionIdA;
setParameter("CbnGeographicRegionIdA", cbnGeographicRegionIdA);
}
std::string CreateBandwidthPackageRequest::getBillingType()const
{
return billingType_;
}
void CreateBandwidthPackageRequest::setBillingType(const std::string& billingType)
{
billingType_ = billingType;
setParameter("BillingType", billingType);
}
std::string CreateBandwidthPackageRequest::getChargeType()const
{
return chargeType_;
}
void CreateBandwidthPackageRequest::setChargeType(const std::string& chargeType)
{
chargeType_ = chargeType;
setParameter("ChargeType", chargeType);
}
std::string CreateBandwidthPackageRequest::getPricingCycle()const
{
return pricingCycle_;
}
void CreateBandwidthPackageRequest::setPricingCycle(const std::string& pricingCycle)
{
pricingCycle_ = pricingCycle;
setParameter("PricingCycle", pricingCycle);
}
int CreateBandwidthPackageRequest::getRatio()const
{
return ratio_;
}
void CreateBandwidthPackageRequest::setRatio(int ratio)
{
ratio_ = ratio;
setParameter("Ratio", std::to_string(ratio));
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateBandwidthPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
CreateBandwidthPackageResult::CreateBandwidthPackageResult() :
ServiceResult()
{}
CreateBandwidthPackageResult::CreateBandwidthPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBandwidthPackageResult::~CreateBandwidthPackageResult()
{}
void CreateBandwidthPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["BandwidthPackageId"].isNull())
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
std::string CreateBandwidthPackageResult::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
std::string CreateBandwidthPackageResult::getOrderId()const
{
return orderId_;
}

View File

@@ -0,0 +1,229 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateEndpointGroupRequest.h>
using AlibabaCloud::Ga::Model::CreateEndpointGroupRequest;
CreateEndpointGroupRequest::CreateEndpointGroupRequest() :
RpcServiceRequest("ga", "2019-11-20", "CreateEndpointGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateEndpointGroupRequest::~CreateEndpointGroupRequest()
{}
std::vector<CreateEndpointGroupRequest::PortOverrides> CreateEndpointGroupRequest::getPortOverrides()const
{
return portOverrides_;
}
void CreateEndpointGroupRequest::setPortOverrides(const std::vector<PortOverrides>& portOverrides)
{
portOverrides_ = portOverrides;
for(int dep1 = 0; dep1!= portOverrides.size(); dep1++) {
auto portOverridesObj = portOverrides.at(dep1);
std::string portOverridesObjStr = "PortOverrides." + std::to_string(dep1 + 1);
setParameter(portOverridesObjStr + ".ListenerPort", std::to_string(portOverridesObj.listenerPort));
setParameter(portOverridesObjStr + ".EndpointPort", std::to_string(portOverridesObj.endpointPort));
}
}
std::string CreateEndpointGroupRequest::getClientToken()const
{
return clientToken_;
}
void CreateEndpointGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
int CreateEndpointGroupRequest::getHealthCheckIntervalSeconds()const
{
return healthCheckIntervalSeconds_;
}
void CreateEndpointGroupRequest::setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds)
{
healthCheckIntervalSeconds_ = healthCheckIntervalSeconds;
setParameter("HealthCheckIntervalSeconds", std::to_string(healthCheckIntervalSeconds));
}
std::string CreateEndpointGroupRequest::getDescription()const
{
return description_;
}
void CreateEndpointGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateEndpointGroupRequest::getHealthCheckProtocol()const
{
return healthCheckProtocol_;
}
void CreateEndpointGroupRequest::setHealthCheckProtocol(const std::string& healthCheckProtocol)
{
healthCheckProtocol_ = healthCheckProtocol;
setParameter("HealthCheckProtocol", healthCheckProtocol);
}
std::string CreateEndpointGroupRequest::getEndpointRequestProtocol()const
{
return endpointRequestProtocol_;
}
void CreateEndpointGroupRequest::setEndpointRequestProtocol(const std::string& endpointRequestProtocol)
{
endpointRequestProtocol_ = endpointRequestProtocol;
setParameter("EndpointRequestProtocol", endpointRequestProtocol);
}
std::string CreateEndpointGroupRequest::getListenerId()const
{
return listenerId_;
}
void CreateEndpointGroupRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::string CreateEndpointGroupRequest::getHealthCheckPath()const
{
return healthCheckPath_;
}
void CreateEndpointGroupRequest::setHealthCheckPath(const std::string& healthCheckPath)
{
healthCheckPath_ = healthCheckPath;
setParameter("HealthCheckPath", healthCheckPath);
}
std::vector<CreateEndpointGroupRequest::EndpointConfigurations> CreateEndpointGroupRequest::getEndpointConfigurations()const
{
return endpointConfigurations_;
}
void CreateEndpointGroupRequest::setEndpointConfigurations(const std::vector<EndpointConfigurations>& endpointConfigurations)
{
endpointConfigurations_ = endpointConfigurations;
for(int dep1 = 0; dep1!= endpointConfigurations.size(); dep1++) {
auto endpointConfigurationsObj = endpointConfigurations.at(dep1);
std::string endpointConfigurationsObjStr = "EndpointConfigurations." + std::to_string(dep1 + 1);
setParameter(endpointConfigurationsObjStr + ".Type", endpointConfigurationsObj.type);
setParameter(endpointConfigurationsObjStr + ".EnableClientIPPreservation", endpointConfigurationsObj.enableClientIPPreservation ? "true" : "false");
setParameter(endpointConfigurationsObjStr + ".Weight", std::to_string(endpointConfigurationsObj.weight));
setParameter(endpointConfigurationsObjStr + ".EnableProxyProtocol", endpointConfigurationsObj.enableProxyProtocol ? "true" : "false");
setParameter(endpointConfigurationsObjStr + ".Endpoint", endpointConfigurationsObj.endpoint);
}
}
std::string CreateEndpointGroupRequest::getRegionId()const
{
return regionId_;
}
void CreateEndpointGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateEndpointGroupRequest::getEndpointGroupType()const
{
return endpointGroupType_;
}
void CreateEndpointGroupRequest::setEndpointGroupType(const std::string& endpointGroupType)
{
endpointGroupType_ = endpointGroupType;
setParameter("EndpointGroupType", endpointGroupType);
}
std::string CreateEndpointGroupRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void CreateEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}
int CreateEndpointGroupRequest::getTrafficPercentage()const
{
return trafficPercentage_;
}
void CreateEndpointGroupRequest::setTrafficPercentage(int trafficPercentage)
{
trafficPercentage_ = trafficPercentage;
setParameter("TrafficPercentage", std::to_string(trafficPercentage));
}
int CreateEndpointGroupRequest::getHealthCheckPort()const
{
return healthCheckPort_;
}
void CreateEndpointGroupRequest::setHealthCheckPort(int healthCheckPort)
{
healthCheckPort_ = healthCheckPort;
setParameter("HealthCheckPort", std::to_string(healthCheckPort));
}
int CreateEndpointGroupRequest::getThresholdCount()const
{
return thresholdCount_;
}
void CreateEndpointGroupRequest::setThresholdCount(int thresholdCount)
{
thresholdCount_ = thresholdCount;
setParameter("ThresholdCount", std::to_string(thresholdCount));
}
std::string CreateEndpointGroupRequest::getEndpointGroupRegion()const
{
return endpointGroupRegion_;
}
void CreateEndpointGroupRequest::setEndpointGroupRegion(const std::string& endpointGroupRegion)
{
endpointGroupRegion_ = endpointGroupRegion;
setParameter("EndpointGroupRegion", endpointGroupRegion);
}
std::string CreateEndpointGroupRequest::getName()const
{
return name_;
}
void CreateEndpointGroupRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +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/ga/model/CreateEndpointGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
CreateEndpointGroupResult::CreateEndpointGroupResult() :
ServiceResult()
{}
CreateEndpointGroupResult::CreateEndpointGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEndpointGroupResult::~CreateEndpointGroupResult()
{}
void CreateEndpointGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["EndpointGroupId"].isNull())
endpointGroupId_ = value["EndpointGroupId"].asString();
}
std::string CreateEndpointGroupResult::getEndpointGroupId()const
{
return endpointGroupId_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateForwardingRulesRequest.h>
using AlibabaCloud::Ga::Model::CreateForwardingRulesRequest;
CreateForwardingRulesRequest::CreateForwardingRulesRequest() :
RpcServiceRequest("ga", "2019-11-20", "CreateForwardingRules")
{
setMethod(HttpRequest::Method::Post);
}
CreateForwardingRulesRequest::~CreateForwardingRulesRequest()
{}
std::string CreateForwardingRulesRequest::getClientToken()const
{
return clientToken_;
}
void CreateForwardingRulesRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateForwardingRulesRequest::getListenerId()const
{
return listenerId_;
}
void CreateForwardingRulesRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::string CreateForwardingRulesRequest::getRegionId()const
{
return regionId_;
}
void CreateForwardingRulesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateForwardingRulesRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void CreateForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}
Array CreateForwardingRulesRequest::getForwardingRules()const
{
return forwardingRules_;
}
void CreateForwardingRulesRequest::setForwardingRules(const Array& forwardingRules)
{
forwardingRules_ = forwardingRules;
setParameter("ForwardingRules", std::to_string(forwardingRules));
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateForwardingRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
CreateForwardingRulesResult::CreateForwardingRulesResult() :
ServiceResult()
{}
CreateForwardingRulesResult::CreateForwardingRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateForwardingRulesResult::~CreateForwardingRulesResult()
{}
void CreateForwardingRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allForwardingRulesNode = value["ForwardingRules"]["ForwardingRulesItem"];
for (auto valueForwardingRulesForwardingRulesItem : allForwardingRulesNode)
{
ForwardingRulesItem forwardingRulesObject;
if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].isNull())
forwardingRulesObject.forwardingRuleId = valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].asString();
forwardingRules_.push_back(forwardingRulesObject);
}
}
std::vector<CreateForwardingRulesResult::ForwardingRulesItem> CreateForwardingRulesResult::getForwardingRules()const
{
return forwardingRules_;
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateIpSetsRequest.h>
using AlibabaCloud::Ga::Model::CreateIpSetsRequest;
CreateIpSetsRequest::CreateIpSetsRequest() :
RpcServiceRequest("ga", "2019-11-20", "CreateIpSets")
{
setMethod(HttpRequest::Method::Post);
}
CreateIpSetsRequest::~CreateIpSetsRequest()
{}
std::string CreateIpSetsRequest::getClientToken()const
{
return clientToken_;
}
void CreateIpSetsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateIpSetsRequest::getRegionId()const
{
return regionId_;
}
void CreateIpSetsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateIpSetsRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void CreateIpSetsRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}
std::vector<CreateIpSetsRequest::AccelerateRegion> CreateIpSetsRequest::getAccelerateRegion()const
{
return accelerateRegion_;
}
void CreateIpSetsRequest::setAccelerateRegion(const std::vector<AccelerateRegion>& accelerateRegion)
{
accelerateRegion_ = accelerateRegion;
for(int dep1 = 0; dep1!= accelerateRegion.size(); dep1++) {
auto accelerateRegionObj = accelerateRegion.at(dep1);
std::string accelerateRegionObjStr = "AccelerateRegion." + std::to_string(dep1 + 1);
setParameter(accelerateRegionObjStr + ".AccelerateRegionId", accelerateRegionObj.accelerateRegionId);
setParameter(accelerateRegionObjStr + ".IpVersion", accelerateRegionObj.ipVersion);
setParameter(accelerateRegionObjStr + ".Bandwidth", std::to_string(accelerateRegionObj.bandwidth));
}
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateIpSetsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
CreateIpSetsResult::CreateIpSetsResult() :
ServiceResult()
{}
CreateIpSetsResult::CreateIpSetsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateIpSetsResult::~CreateIpSetsResult()
{}
void CreateIpSetsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpSetsNode = value["IpSets"]["GaIpSet"];
for (auto valueIpSetsGaIpSet : allIpSetsNode)
{
GaIpSet ipSetsObject;
if(!valueIpSetsGaIpSet["IpSetId"].isNull())
ipSetsObject.ipSetId = valueIpSetsGaIpSet["IpSetId"].asString();
if(!valueIpSetsGaIpSet["Bandwidth"].isNull())
ipSetsObject.bandwidth = std::stoi(valueIpSetsGaIpSet["Bandwidth"].asString());
if(!valueIpSetsGaIpSet["AccelerateRegionId"].isNull())
ipSetsObject.accelerateRegionId = valueIpSetsGaIpSet["AccelerateRegionId"].asString();
auto allIpList = value["IpList"]["IpList"];
for (auto value : allIpList)
ipSetsObject.ipList.push_back(value.asString());
ipSets_.push_back(ipSetsObject);
}
if(!value["AcceleratorId"].isNull())
acceleratorId_ = value["AcceleratorId"].asString();
}
std::vector<CreateIpSetsResult::GaIpSet> CreateIpSetsResult::getIpSets()const
{
return ipSets_;
}
std::string CreateIpSetsResult::getAcceleratorId()const
{
return acceleratorId_;
}

View File

@@ -0,0 +1,164 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/CreateListenerRequest.h>
using AlibabaCloud::Ga::Model::CreateListenerRequest;
CreateListenerRequest::CreateListenerRequest() :
RpcServiceRequest("ga", "2019-11-20", "CreateListener")
{
setMethod(HttpRequest::Method::Post);
}
CreateListenerRequest::~CreateListenerRequest()
{}
std::string CreateListenerRequest::getClientToken()const
{
return clientToken_;
}
void CreateListenerRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateListenerRequest::getDescription()const
{
return description_;
}
void CreateListenerRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::vector<CreateListenerRequest::BackendPorts> CreateListenerRequest::getBackendPorts()const
{
return backendPorts_;
}
void CreateListenerRequest::setBackendPorts(const std::vector<BackendPorts>& backendPorts)
{
backendPorts_ = backendPorts;
for(int dep1 = 0; dep1!= backendPorts.size(); dep1++) {
auto backendPortsObj = backendPorts.at(dep1);
std::string backendPortsObjStr = "BackendPorts." + std::to_string(dep1 + 1);
setParameter(backendPortsObjStr + ".FromPort", std::to_string(backendPortsObj.fromPort));
setParameter(backendPortsObjStr + ".ToPort", std::to_string(backendPortsObj.toPort));
}
}
std::string CreateListenerRequest::getProtocol()const
{
return protocol_;
}
void CreateListenerRequest::setProtocol(const std::string& protocol)
{
protocol_ = protocol;
setParameter("Protocol", protocol);
}
std::string CreateListenerRequest::getRegionId()const
{
return regionId_;
}
void CreateListenerRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateListenerRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void CreateListenerRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}
bool CreateListenerRequest::getProxyProtocol()const
{
return proxyProtocol_;
}
void CreateListenerRequest::setProxyProtocol(bool proxyProtocol)
{
proxyProtocol_ = proxyProtocol;
setParameter("ProxyProtocol", proxyProtocol ? "true" : "false");
}
std::vector<CreateListenerRequest::PortRanges> CreateListenerRequest::getPortRanges()const
{
return portRanges_;
}
void CreateListenerRequest::setPortRanges(const std::vector<PortRanges>& portRanges)
{
portRanges_ = portRanges;
for(int dep1 = 0; dep1!= portRanges.size(); dep1++) {
auto portRangesObj = portRanges.at(dep1);
std::string portRangesObjStr = "PortRanges." + std::to_string(dep1 + 1);
setParameter(portRangesObjStr + ".FromPort", std::to_string(portRangesObj.fromPort));
setParameter(portRangesObjStr + ".ToPort", std::to_string(portRangesObj.toPort));
}
}
std::vector<CreateListenerRequest::Certificates> CreateListenerRequest::getCertificates()const
{
return certificates_;
}
void CreateListenerRequest::setCertificates(const std::vector<Certificates>& certificates)
{
certificates_ = certificates;
for(int dep1 = 0; dep1!= certificates.size(); dep1++) {
auto certificatesObj = certificates.at(dep1);
std::string certificatesObjStr = "Certificates." + std::to_string(dep1 + 1);
setParameter(certificatesObjStr + ".Id", certificatesObj.id);
}
}
std::string CreateListenerRequest::getName()const
{
return name_;
}
void CreateListenerRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateListenerRequest::getClientAffinity()const
{
return clientAffinity_;
}
void CreateListenerRequest::setClientAffinity(const std::string& clientAffinity)
{
clientAffinity_ = clientAffinity;
setParameter("ClientAffinity", clientAffinity);
}

View File

@@ -0,0 +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/ga/model/CreateListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
CreateListenerResult::CreateListenerResult() :
ServiceResult()
{}
CreateListenerResult::CreateListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateListenerResult::~CreateListenerResult()
{}
void CreateListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ListenerId"].isNull())
listenerId_ = value["ListenerId"].asString();
}
std::string CreateListenerResult::getListenerId()const
{
return listenerId_;
}

View File

@@ -0,0 +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/ga/model/DeleteAcceleratorRequest.h>
using AlibabaCloud::Ga::Model::DeleteAcceleratorRequest;
DeleteAcceleratorRequest::DeleteAcceleratorRequest() :
RpcServiceRequest("ga", "2019-11-20", "DeleteAccelerator")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAcceleratorRequest::~DeleteAcceleratorRequest()
{}
std::string DeleteAcceleratorRequest::getRegionId()const
{
return regionId_;
}
void DeleteAcceleratorRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteAcceleratorRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void DeleteAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +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/ga/model/DeleteAcceleratorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DeleteAcceleratorResult::DeleteAcceleratorResult() :
ServiceResult()
{}
DeleteAcceleratorResult::DeleteAcceleratorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAcceleratorResult::~DeleteAcceleratorResult()
{}
void DeleteAcceleratorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AcceleratorId"].isNull())
acceleratorId_ = value["AcceleratorId"].asString();
}
std::string DeleteAcceleratorResult::getAcceleratorId()const
{
return acceleratorId_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteAclRequest.h>
using AlibabaCloud::Ga::Model::DeleteAclRequest;
DeleteAclRequest::DeleteAclRequest() :
RpcServiceRequest("ga", "2019-11-20", "DeleteAcl")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAclRequest::~DeleteAclRequest()
{}
std::string DeleteAclRequest::getAclId()const
{
return aclId_;
}
void DeleteAclRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setParameter("AclId", aclId);
}
bool DeleteAclRequest::getDryRun()const
{
return dryRun_;
}
void DeleteAclRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string DeleteAclRequest::getClientToken()const
{
return clientToken_;
}
void DeleteAclRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteAclRequest::getRegionId()const
{
return regionId_;
}
void DeleteAclRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +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/ga/model/DeleteAclResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DeleteAclResult::DeleteAclResult() :
ServiceResult()
{}
DeleteAclResult::DeleteAclResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAclResult::~DeleteAclResult()
{}
void DeleteAclResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AclId"].isNull())
aclId_ = value["AclId"].asString();
}
std::string DeleteAclResult::getAclId()const
{
return aclId_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteBandwidthPackageRequest.h>
using AlibabaCloud::Ga::Model::DeleteBandwidthPackageRequest;
DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() :
RpcServiceRequest("ga", "2019-11-20", "DeleteBandwidthPackage")
{
setMethod(HttpRequest::Method::Post);
}
DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest()
{}
std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string DeleteBandwidthPackageRequest::getClientToken()const
{
return clientToken_;
}
void DeleteBandwidthPackageRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteBandwidthPackageRequest::getRegionId()const
{
return regionId_;
}
void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +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/ga/model/DeleteBandwidthPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DeleteBandwidthPackageResult::DeleteBandwidthPackageResult() :
ServiceResult()
{}
DeleteBandwidthPackageResult::DeleteBandwidthPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBandwidthPackageResult::~DeleteBandwidthPackageResult()
{}
void DeleteBandwidthPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["BandwidthPackageId"].isNull())
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
}
std::string DeleteBandwidthPackageResult::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteEndpointGroupRequest.h>
using AlibabaCloud::Ga::Model::DeleteEndpointGroupRequest;
DeleteEndpointGroupRequest::DeleteEndpointGroupRequest() :
RpcServiceRequest("ga", "2019-11-20", "DeleteEndpointGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteEndpointGroupRequest::~DeleteEndpointGroupRequest()
{}
std::string DeleteEndpointGroupRequest::getClientToken()const
{
return clientToken_;
}
void DeleteEndpointGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteEndpointGroupRequest::getRegionId()const
{
return regionId_;
}
void DeleteEndpointGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteEndpointGroupRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void DeleteEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}
std::string DeleteEndpointGroupRequest::getEndpointGroupId()const
{
return endpointGroupId_;
}
void DeleteEndpointGroupRequest::setEndpointGroupId(const std::string& endpointGroupId)
{
endpointGroupId_ = endpointGroupId;
setParameter("EndpointGroupId", endpointGroupId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteEndpointGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DeleteEndpointGroupResult::DeleteEndpointGroupResult() :
ServiceResult()
{}
DeleteEndpointGroupResult::DeleteEndpointGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteEndpointGroupResult::~DeleteEndpointGroupResult()
{}
void DeleteEndpointGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteForwardingRulesRequest.h>
using AlibabaCloud::Ga::Model::DeleteForwardingRulesRequest;
DeleteForwardingRulesRequest::DeleteForwardingRulesRequest() :
RpcServiceRequest("ga", "2019-11-20", "DeleteForwardingRules")
{
setMethod(HttpRequest::Method::Post);
}
DeleteForwardingRulesRequest::~DeleteForwardingRulesRequest()
{}
std::string DeleteForwardingRulesRequest::getClientToken()const
{
return clientToken_;
}
void DeleteForwardingRulesRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteForwardingRulesRequest::getListenerId()const
{
return listenerId_;
}
void DeleteForwardingRulesRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::string DeleteForwardingRulesRequest::getRegionId()const
{
return regionId_;
}
void DeleteForwardingRulesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteForwardingRulesRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void DeleteForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}
Array DeleteForwardingRulesRequest::getForwardingRuleIds()const
{
return forwardingRuleIds_;
}
void DeleteForwardingRulesRequest::setForwardingRuleIds(const Array& forwardingRuleIds)
{
forwardingRuleIds_ = forwardingRuleIds;
setParameter("ForwardingRuleIds", std::to_string(forwardingRuleIds));
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteForwardingRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DeleteForwardingRulesResult::DeleteForwardingRulesResult() :
ServiceResult()
{}
DeleteForwardingRulesResult::DeleteForwardingRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteForwardingRulesResult::~DeleteForwardingRulesResult()
{}
void DeleteForwardingRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allForwardingRulesNode = value["ForwardingRules"]["ForwardingRulesItem"];
for (auto valueForwardingRulesForwardingRulesItem : allForwardingRulesNode)
{
ForwardingRulesItem forwardingRulesObject;
if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].isNull())
forwardingRulesObject.forwardingRuleId = valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].asString();
forwardingRules_.push_back(forwardingRulesObject);
}
}
std::vector<DeleteForwardingRulesResult::ForwardingRulesItem> DeleteForwardingRulesResult::getForwardingRules()const
{
return forwardingRules_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteIpSetRequest.h>
using AlibabaCloud::Ga::Model::DeleteIpSetRequest;
DeleteIpSetRequest::DeleteIpSetRequest() :
RpcServiceRequest("ga", "2019-11-20", "DeleteIpSet")
{
setMethod(HttpRequest::Method::Post);
}
DeleteIpSetRequest::~DeleteIpSetRequest()
{}
std::string DeleteIpSetRequest::getClientToken()const
{
return clientToken_;
}
void DeleteIpSetRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteIpSetRequest::getIpSetId()const
{
return ipSetId_;
}
void DeleteIpSetRequest::setIpSetId(const std::string& ipSetId)
{
ipSetId_ = ipSetId;
setParameter("IpSetId", ipSetId);
}
std::string DeleteIpSetRequest::getRegionId()const
{
return regionId_;
}
void DeleteIpSetRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteIpSetRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void DeleteIpSetRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteIpSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DeleteIpSetResult::DeleteIpSetResult() :
ServiceResult()
{}
DeleteIpSetResult::DeleteIpSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteIpSetResult::~DeleteIpSetResult()
{}
void DeleteIpSetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteIpSetsRequest.h>
using AlibabaCloud::Ga::Model::DeleteIpSetsRequest;
DeleteIpSetsRequest::DeleteIpSetsRequest() :
RpcServiceRequest("ga", "2019-11-20", "DeleteIpSets")
{
setMethod(HttpRequest::Method::Post);
}
DeleteIpSetsRequest::~DeleteIpSetsRequest()
{}
std::vector<std::string> DeleteIpSetsRequest::getIpSetIds()const
{
return ipSetIds_;
}
void DeleteIpSetsRequest::setIpSetIds(const std::vector<std::string>& ipSetIds)
{
ipSetIds_ = ipSetIds;
for(int dep1 = 0; dep1!= ipSetIds.size(); dep1++) {
setParameter("IpSetIds."+ std::to_string(dep1), ipSetIds.at(dep1));
}
}
std::string DeleteIpSetsRequest::getRegionId()const
{
return regionId_;
}
void DeleteIpSetsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteIpSetsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DeleteIpSetsResult::DeleteIpSetsResult() :
ServiceResult()
{}
DeleteIpSetsResult::DeleteIpSetsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteIpSetsResult::~DeleteIpSetsResult()
{}
void DeleteIpSetsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteListenerRequest.h>
using AlibabaCloud::Ga::Model::DeleteListenerRequest;
DeleteListenerRequest::DeleteListenerRequest() :
RpcServiceRequest("ga", "2019-11-20", "DeleteListener")
{
setMethod(HttpRequest::Method::Post);
}
DeleteListenerRequest::~DeleteListenerRequest()
{}
std::string DeleteListenerRequest::getClientToken()const
{
return clientToken_;
}
void DeleteListenerRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteListenerRequest::getListenerId()const
{
return listenerId_;
}
void DeleteListenerRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::string DeleteListenerRequest::getRegionId()const
{
return regionId_;
}
void DeleteListenerRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteListenerRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void DeleteListenerRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DeleteListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DeleteListenerResult::DeleteListenerResult() :
ServiceResult()
{}
DeleteListenerResult::DeleteListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteListenerResult::~DeleteListenerResult()
{}
void DeleteListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +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/ga/model/DescribeAcceleratorRequest.h>
using AlibabaCloud::Ga::Model::DescribeAcceleratorRequest;
DescribeAcceleratorRequest::DescribeAcceleratorRequest() :
RpcServiceRequest("ga", "2019-11-20", "DescribeAccelerator")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAcceleratorRequest::~DescribeAcceleratorRequest()
{}
std::string DescribeAcceleratorRequest::getRegionId()const
{
return regionId_;
}
void DescribeAcceleratorRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeAcceleratorRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void DescribeAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,157 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DescribeAcceleratorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DescribeAcceleratorResult::DescribeAcceleratorResult() :
ServiceResult()
{}
DescribeAcceleratorResult::DescribeAcceleratorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAcceleratorResult::~DescribeAcceleratorResult()
{}
void DescribeAcceleratorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto basicBandwidthPackageNode = value["BasicBandwidthPackage"];
if(!basicBandwidthPackageNode["BandwidthType"].isNull())
basicBandwidthPackage_.bandwidthType = basicBandwidthPackageNode["BandwidthType"].asString();
if(!basicBandwidthPackageNode["InstanceId"].isNull())
basicBandwidthPackage_.instanceId = basicBandwidthPackageNode["InstanceId"].asString();
if(!basicBandwidthPackageNode["Bandwidth"].isNull())
basicBandwidthPackage_.bandwidth = std::stoi(basicBandwidthPackageNode["Bandwidth"].asString());
auto crossDomainBandwidthPackageNode = value["CrossDomainBandwidthPackage"];
if(!crossDomainBandwidthPackageNode["InstanceId"].isNull())
crossDomainBandwidthPackage_.instanceId = crossDomainBandwidthPackageNode["InstanceId"].asString();
if(!crossDomainBandwidthPackageNode["Bandwidth"].isNull())
crossDomainBandwidthPackage_.bandwidth = std::stoi(crossDomainBandwidthPackageNode["Bandwidth"].asString());
if(!value["DdosId"].isNull())
ddosId_ = value["DdosId"].asString();
if(!value["DnsName"].isNull())
dnsName_ = value["DnsName"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["InstanceChargeType"].isNull())
instanceChargeType_ = value["InstanceChargeType"].asString();
if(!value["CreateTime"].isNull())
createTime_ = std::stol(value["CreateTime"].asString());
if(!value["SecondDnsName"].isNull())
secondDnsName_ = value["SecondDnsName"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["State"].isNull())
state_ = value["State"].asString();
if(!value["ExpiredTime"].isNull())
expiredTime_ = std::stol(value["ExpiredTime"].asString());
if(!value["CenId"].isNull())
cenId_ = value["CenId"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["Spec"].isNull())
spec_ = value["Spec"].asString();
if(!value["AcceleratorId"].isNull())
acceleratorId_ = value["AcceleratorId"].asString();
}
std::string DescribeAcceleratorResult::getDdosId()const
{
return ddosId_;
}
std::string DescribeAcceleratorResult::getDnsName()const
{
return dnsName_;
}
std::string DescribeAcceleratorResult::getDescription()const
{
return description_;
}
std::string DescribeAcceleratorResult::getInstanceChargeType()const
{
return instanceChargeType_;
}
long DescribeAcceleratorResult::getCreateTime()const
{
return createTime_;
}
DescribeAcceleratorResult::CrossDomainBandwidthPackage DescribeAcceleratorResult::getCrossDomainBandwidthPackage()const
{
return crossDomainBandwidthPackage_;
}
std::string DescribeAcceleratorResult::getSecondDnsName()const
{
return secondDnsName_;
}
std::string DescribeAcceleratorResult::getName()const
{
return name_;
}
DescribeAcceleratorResult::BasicBandwidthPackage DescribeAcceleratorResult::getBasicBandwidthPackage()const
{
return basicBandwidthPackage_;
}
std::string DescribeAcceleratorResult::getState()const
{
return state_;
}
long DescribeAcceleratorResult::getExpiredTime()const
{
return expiredTime_;
}
std::string DescribeAcceleratorResult::getCenId()const
{
return cenId_;
}
std::string DescribeAcceleratorResult::getRegionId()const
{
return regionId_;
}
std::string DescribeAcceleratorResult::getSpec()const
{
return spec_;
}
std::string DescribeAcceleratorResult::getAcceleratorId()const
{
return acceleratorId_;
}

View File

@@ -0,0 +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/ga/model/DescribeBandwidthPackageRequest.h>
using AlibabaCloud::Ga::Model::DescribeBandwidthPackageRequest;
DescribeBandwidthPackageRequest::DescribeBandwidthPackageRequest() :
RpcServiceRequest("ga", "2019-11-20", "DescribeBandwidthPackage")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBandwidthPackageRequest::~DescribeBandwidthPackageRequest()
{}
std::string DescribeBandwidthPackageRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void DescribeBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string DescribeBandwidthPackageRequest::getRegionId()const
{
return regionId_;
}
void DescribeBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,157 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DescribeBandwidthPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DescribeBandwidthPackageResult::DescribeBandwidthPackageResult() :
ServiceResult()
{}
DescribeBandwidthPackageResult::DescribeBandwidthPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBandwidthPackageResult::~DescribeBandwidthPackageResult()
{}
void DescribeBandwidthPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAccelerators = value["Accelerators"]["Accelerator"];
for (const auto &item : allAccelerators)
accelerators_.push_back(item.asString());
if(!value["CbnGeographicRegionIdB"].isNull())
cbnGeographicRegionIdB_ = value["CbnGeographicRegionIdB"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["CbnGeographicRegionIdA"].isNull())
cbnGeographicRegionIdA_ = value["CbnGeographicRegionIdA"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["BandwidthType"].isNull())
bandwidthType_ = value["BandwidthType"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["ChargeType"].isNull())
chargeType_ = value["ChargeType"].asString();
if(!value["State"].isNull())
state_ = value["State"].asString();
if(!value["ExpiredTime"].isNull())
expiredTime_ = value["ExpiredTime"].asString();
if(!value["Bandwidth"].isNull())
bandwidth_ = std::stoi(value["Bandwidth"].asString());
if(!value["BandwidthPackageId"].isNull())
bandwidthPackageId_ = value["BandwidthPackageId"].asString();
if(!value["Ratio"].isNull())
ratio_ = std::stoi(value["Ratio"].asString());
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["BillingType"].isNull())
billingType_ = value["BillingType"].asString();
}
std::string DescribeBandwidthPackageResult::getCbnGeographicRegionIdB()const
{
return cbnGeographicRegionIdB_;
}
std::string DescribeBandwidthPackageResult::getDescription()const
{
return description_;
}
std::string DescribeBandwidthPackageResult::getCbnGeographicRegionIdA()const
{
return cbnGeographicRegionIdA_;
}
std::string DescribeBandwidthPackageResult::getCreateTime()const
{
return createTime_;
}
std::string DescribeBandwidthPackageResult::getName()const
{
return name_;
}
std::string DescribeBandwidthPackageResult::getBandwidthType()const
{
return bandwidthType_;
}
std::string DescribeBandwidthPackageResult::getType()const
{
return type_;
}
std::vector<std::string> DescribeBandwidthPackageResult::getAccelerators()const
{
return accelerators_;
}
std::string DescribeBandwidthPackageResult::getChargeType()const
{
return chargeType_;
}
std::string DescribeBandwidthPackageResult::getState()const
{
return state_;
}
std::string DescribeBandwidthPackageResult::getExpiredTime()const
{
return expiredTime_;
}
int DescribeBandwidthPackageResult::getBandwidth()const
{
return bandwidth_;
}
std::string DescribeBandwidthPackageResult::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
int DescribeBandwidthPackageResult::getRatio()const
{
return ratio_;
}
std::string DescribeBandwidthPackageResult::getRegionId()const
{
return regionId_;
}
std::string DescribeBandwidthPackageResult::getBillingType()const
{
return billingType_;
}

View File

@@ -0,0 +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/ga/model/DescribeEndpointGroupRequest.h>
using AlibabaCloud::Ga::Model::DescribeEndpointGroupRequest;
DescribeEndpointGroupRequest::DescribeEndpointGroupRequest() :
RpcServiceRequest("ga", "2019-11-20", "DescribeEndpointGroup")
{
setMethod(HttpRequest::Method::Post);
}
DescribeEndpointGroupRequest::~DescribeEndpointGroupRequest()
{}
std::string DescribeEndpointGroupRequest::getRegionId()const
{
return regionId_;
}
void DescribeEndpointGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeEndpointGroupRequest::getEndpointGroupId()const
{
return endpointGroupId_;
}
void DescribeEndpointGroupRequest::setEndpointGroupId(const std::string& endpointGroupId)
{
endpointGroupId_ = endpointGroupId;
setParameter("EndpointGroupId", endpointGroupId);
}

View File

@@ -0,0 +1,239 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DescribeEndpointGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DescribeEndpointGroupResult::DescribeEndpointGroupResult() :
ServiceResult()
{}
DescribeEndpointGroupResult::DescribeEndpointGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEndpointGroupResult::~DescribeEndpointGroupResult()
{}
void DescribeEndpointGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPortOverridesNode = value["PortOverrides"]["PortOverridesItem"];
for (auto valuePortOverridesPortOverridesItem : allPortOverridesNode)
{
PortOverridesItem portOverridesObject;
if(!valuePortOverridesPortOverridesItem["ListenerPort"].isNull())
portOverridesObject.listenerPort = std::stoi(valuePortOverridesPortOverridesItem["ListenerPort"].asString());
if(!valuePortOverridesPortOverridesItem["EndpointPort"].isNull())
portOverridesObject.endpointPort = std::stoi(valuePortOverridesPortOverridesItem["EndpointPort"].asString());
portOverrides_.push_back(portOverridesObject);
}
auto allEndpointConfigurationsNode = value["EndpointConfigurations"]["EndpointConfigurationsItem"];
for (auto valueEndpointConfigurationsEndpointConfigurationsItem : allEndpointConfigurationsNode)
{
EndpointConfigurationsItem endpointConfigurationsObject;
if(!valueEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].isNull())
endpointConfigurationsObject.enableProxyProtocol = valueEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].asString() == "true";
if(!valueEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].isNull())
endpointConfigurationsObject.probeProtocol = valueEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].asString();
if(!valueEndpointConfigurationsEndpointConfigurationsItem["Type"].isNull())
endpointConfigurationsObject.type = valueEndpointConfigurationsEndpointConfigurationsItem["Type"].asString();
if(!valueEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].isNull())
endpointConfigurationsObject.endpoint = valueEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].asString();
if(!valueEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].isNull())
endpointConfigurationsObject.enableClientIPPreservation = valueEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].asString() == "true";
if(!valueEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].isNull())
endpointConfigurationsObject.probePort = std::stoi(valueEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].asString());
if(!valueEndpointConfigurationsEndpointConfigurationsItem["Weight"].isNull())
endpointConfigurationsObject.weight = std::stoi(valueEndpointConfigurationsEndpointConfigurationsItem["Weight"].asString());
endpointConfigurations_.push_back(endpointConfigurationsObject);
}
auto allForwardingRuleIds = value["ForwardingRuleIds"]["ForwardingRuleIds"];
for (const auto &item : allForwardingRuleIds)
forwardingRuleIds_.push_back(item.asString());
if(!value["HealthCheckIntervalSeconds"].isNull())
healthCheckIntervalSeconds_ = std::stoi(value["HealthCheckIntervalSeconds"].asString());
if(!value["TrafficPercentage"].isNull())
trafficPercentage_ = std::stoi(value["TrafficPercentage"].asString());
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["EndpointGroupId"].isNull())
endpointGroupId_ = value["EndpointGroupId"].asString();
if(!value["SlsRegion"].isNull())
slsRegion_ = value["SlsRegion"].asString();
if(!value["HealthCheckPath"].isNull())
healthCheckPath_ = value["HealthCheckPath"].asString();
if(!value["ThresholdCount"].isNull())
thresholdCount_ = std::stoi(value["ThresholdCount"].asString());
if(!value["SlsLogStoreName"].isNull())
slsLogStoreName_ = value["SlsLogStoreName"].asString();
if(!value["EndpointRequestProtocol"].isNull())
endpointRequestProtocol_ = value["EndpointRequestProtocol"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["EnableAccessLog"].isNull())
enableAccessLog_ = value["EnableAccessLog"].asString() == "true";
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["EndpointGroupRegion"].isNull())
endpointGroupRegion_ = value["EndpointGroupRegion"].asString();
if(!value["SlsProjectName"].isNull())
slsProjectName_ = value["SlsProjectName"].asString();
if(!value["State"].isNull())
state_ = value["State"].asString();
if(!value["AccessLogSwitch"].isNull())
accessLogSwitch_ = value["AccessLogSwitch"].asString();
if(!value["HealthCheckProtocol"].isNull())
healthCheckProtocol_ = value["HealthCheckProtocol"].asString();
if(!value["HealthCheckPort"].isNull())
healthCheckPort_ = std::stoi(value["HealthCheckPort"].asString());
if(!value["AcceleratorId"].isNull())
acceleratorId_ = value["AcceleratorId"].asString();
if(!value["EndpointGroupType"].isNull())
endpointGroupType_ = value["EndpointGroupType"].asString();
if(!value["ListenerId"].isNull())
listenerId_ = value["ListenerId"].asString();
}
int DescribeEndpointGroupResult::getHealthCheckIntervalSeconds()const
{
return healthCheckIntervalSeconds_;
}
std::vector<std::string> DescribeEndpointGroupResult::getForwardingRuleIds()const
{
return forwardingRuleIds_;
}
int DescribeEndpointGroupResult::getTrafficPercentage()const
{
return trafficPercentage_;
}
std::string DescribeEndpointGroupResult::getDescription()const
{
return description_;
}
std::string DescribeEndpointGroupResult::getEndpointGroupId()const
{
return endpointGroupId_;
}
std::string DescribeEndpointGroupResult::getSlsRegion()const
{
return slsRegion_;
}
std::string DescribeEndpointGroupResult::getHealthCheckPath()const
{
return healthCheckPath_;
}
int DescribeEndpointGroupResult::getThresholdCount()const
{
return thresholdCount_;
}
std::string DescribeEndpointGroupResult::getSlsLogStoreName()const
{
return slsLogStoreName_;
}
std::string DescribeEndpointGroupResult::getEndpointRequestProtocol()const
{
return endpointRequestProtocol_;
}
std::string DescribeEndpointGroupResult::getName()const
{
return name_;
}
std::vector<DescribeEndpointGroupResult::PortOverridesItem> DescribeEndpointGroupResult::getPortOverrides()const
{
return portOverrides_;
}
bool DescribeEndpointGroupResult::getEnableAccessLog()const
{
return enableAccessLog_;
}
int DescribeEndpointGroupResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribeEndpointGroupResult::getEndpointGroupRegion()const
{
return endpointGroupRegion_;
}
std::string DescribeEndpointGroupResult::getSlsProjectName()const
{
return slsProjectName_;
}
std::string DescribeEndpointGroupResult::getState()const
{
return state_;
}
std::string DescribeEndpointGroupResult::getAccessLogSwitch()const
{
return accessLogSwitch_;
}
std::string DescribeEndpointGroupResult::getHealthCheckProtocol()const
{
return healthCheckProtocol_;
}
int DescribeEndpointGroupResult::getHealthCheckPort()const
{
return healthCheckPort_;
}
std::vector<DescribeEndpointGroupResult::EndpointConfigurationsItem> DescribeEndpointGroupResult::getEndpointConfigurations()const
{
return endpointConfigurations_;
}
std::string DescribeEndpointGroupResult::getAcceleratorId()const
{
return acceleratorId_;
}
std::string DescribeEndpointGroupResult::getEndpointGroupType()const
{
return endpointGroupType_;
}
std::string DescribeEndpointGroupResult::getListenerId()const
{
return listenerId_;
}

View File

@@ -0,0 +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/ga/model/DescribeIpSetRequest.h>
using AlibabaCloud::Ga::Model::DescribeIpSetRequest;
DescribeIpSetRequest::DescribeIpSetRequest() :
RpcServiceRequest("ga", "2019-11-20", "DescribeIpSet")
{
setMethod(HttpRequest::Method::Post);
}
DescribeIpSetRequest::~DescribeIpSetRequest()
{}
std::string DescribeIpSetRequest::getIpSetId()const
{
return ipSetId_;
}
void DescribeIpSetRequest::setIpSetId(const std::string& ipSetId)
{
ipSetId_ = ipSetId;
setParameter("IpSetId", ipSetId);
}
std::string DescribeIpSetRequest::getRegionId()const
{
return regionId_;
}
void DescribeIpSetRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DescribeIpSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DescribeIpSetResult::DescribeIpSetResult() :
ServiceResult()
{}
DescribeIpSetResult::DescribeIpSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeIpSetResult::~DescribeIpSetResult()
{}
void DescribeIpSetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpAddressList = value["IpAddressList"]["IpAddressList"];
for (const auto &item : allIpAddressList)
ipAddressList_.push_back(item.asString());
if(!value["IpSetId"].isNull())
ipSetId_ = value["IpSetId"].asString();
if(!value["IpVersion"].isNull())
ipVersion_ = value["IpVersion"].asString();
if(!value["State"].isNull())
state_ = value["State"].asString();
if(!value["Bandwidth"].isNull())
bandwidth_ = std::stoi(value["Bandwidth"].asString());
if(!value["AccelerateRegionId"].isNull())
accelerateRegionId_ = value["AccelerateRegionId"].asString();
if(!value["AcceleratorId"].isNull())
acceleratorId_ = value["AcceleratorId"].asString();
}
std::string DescribeIpSetResult::getIpSetId()const
{
return ipSetId_;
}
std::string DescribeIpSetResult::getIpVersion()const
{
return ipVersion_;
}
std::string DescribeIpSetResult::getState()const
{
return state_;
}
int DescribeIpSetResult::getBandwidth()const
{
return bandwidth_;
}
std::vector<std::string> DescribeIpSetResult::getIpAddressList()const
{
return ipAddressList_;
}
std::string DescribeIpSetResult::getAccelerateRegionId()const
{
return accelerateRegionId_;
}
std::string DescribeIpSetResult::getAcceleratorId()const
{
return acceleratorId_;
}

View File

@@ -0,0 +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/ga/model/DescribeListenerRequest.h>
using AlibabaCloud::Ga::Model::DescribeListenerRequest;
DescribeListenerRequest::DescribeListenerRequest() :
RpcServiceRequest("ga", "2019-11-20", "DescribeListener")
{
setMethod(HttpRequest::Method::Post);
}
DescribeListenerRequest::~DescribeListenerRequest()
{}
std::string DescribeListenerRequest::getListenerId()const
{
return listenerId_;
}
void DescribeListenerRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::string DescribeListenerRequest::getRegionId()const
{
return regionId_;
}
void DescribeListenerRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,174 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DescribeListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DescribeListenerResult::DescribeListenerResult() :
ServiceResult()
{}
DescribeListenerResult::DescribeListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeListenerResult::~DescribeListenerResult()
{}
void DescribeListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBackendPortsNode = value["BackendPorts"]["BackendPort"];
for (auto valueBackendPortsBackendPort : allBackendPortsNode)
{
BackendPort backendPortsObject;
if(!valueBackendPortsBackendPort["FromPort"].isNull())
backendPortsObject.fromPort = valueBackendPortsBackendPort["FromPort"].asString();
if(!valueBackendPortsBackendPort["ToPort"].isNull())
backendPortsObject.toPort = valueBackendPortsBackendPort["ToPort"].asString();
backendPorts_.push_back(backendPortsObject);
}
auto allPortRangesNode = value["PortRanges"]["PortRangesItem"];
for (auto valuePortRangesPortRangesItem : allPortRangesNode)
{
PortRangesItem portRangesObject;
if(!valuePortRangesPortRangesItem["FromPort"].isNull())
portRangesObject.fromPort = std::stoi(valuePortRangesPortRangesItem["FromPort"].asString());
if(!valuePortRangesPortRangesItem["ToPort"].isNull())
portRangesObject.toPort = std::stoi(valuePortRangesPortRangesItem["ToPort"].asString());
portRanges_.push_back(portRangesObject);
}
auto allCertificatesNode = value["Certificates"]["Certificate"];
for (auto valueCertificatesCertificate : allCertificatesNode)
{
Certificate certificatesObject;
if(!valueCertificatesCertificate["Type"].isNull())
certificatesObject.type = valueCertificatesCertificate["Type"].asString();
if(!valueCertificatesCertificate["Id"].isNull())
certificatesObject.id = valueCertificatesCertificate["Id"].asString();
certificates_.push_back(certificatesObject);
}
auto allRelatedAclsNode = value["RelatedAcls"]["relatedAclsItem"];
for (auto valueRelatedAclsrelatedAclsItem : allRelatedAclsNode)
{
RelatedAclsItem relatedAclsObject;
if(!valueRelatedAclsrelatedAclsItem["Status"].isNull())
relatedAclsObject.status = valueRelatedAclsrelatedAclsItem["Status"].asString();
if(!valueRelatedAclsrelatedAclsItem["AclId"].isNull())
relatedAclsObject.aclId = valueRelatedAclsrelatedAclsItem["AclId"].asString();
relatedAcls_.push_back(relatedAclsObject);
}
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["State"].isNull())
state_ = value["State"].asString();
if(!value["ProxyProtocol"].isNull())
proxyProtocol_ = value["ProxyProtocol"].asString() == "true";
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["AclType"].isNull())
aclType_ = value["AclType"].asString();
if(!value["Protocol"].isNull())
protocol_ = value["Protocol"].asString();
if(!value["AcceleratorId"].isNull())
acceleratorId_ = value["AcceleratorId"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["ClientAffinity"].isNull())
clientAffinity_ = value["ClientAffinity"].asString();
if(!value["ListenerId"].isNull())
listenerId_ = value["ListenerId"].asString();
}
std::string DescribeListenerResult::getDescription()const
{
return description_;
}
std::vector<DescribeListenerResult::BackendPort> DescribeListenerResult::getBackendPorts()const
{
return backendPorts_;
}
std::vector<DescribeListenerResult::PortRangesItem> DescribeListenerResult::getPortRanges()const
{
return portRanges_;
}
bool DescribeListenerResult::getProxyProtocol()const
{
return proxyProtocol_;
}
std::string DescribeListenerResult::getCreateTime()const
{
return createTime_;
}
std::vector<DescribeListenerResult::Certificate> DescribeListenerResult::getCertificates()const
{
return certificates_;
}
std::vector<DescribeListenerResult::RelatedAclsItem> DescribeListenerResult::getRelatedAcls()const
{
return relatedAcls_;
}
std::string DescribeListenerResult::getName()const
{
return name_;
}
std::string DescribeListenerResult::getState()const
{
return state_;
}
std::string DescribeListenerResult::getAclType()const
{
return aclType_;
}
std::string DescribeListenerResult::getProtocol()const
{
return protocol_;
}
std::string DescribeListenerResult::getAcceleratorId()const
{
return acceleratorId_;
}
std::string DescribeListenerResult::getClientAffinity()const
{
return clientAffinity_;
}
std::string DescribeListenerResult::getListenerId()const
{
return listenerId_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DescribeRegionsRequest.h>
using AlibabaCloud::Ga::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest() :
RpcServiceRequest("ga", "2019-11-20", "DescribeRegions")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRegionsRequest::~DescribeRegionsRequest()
{}
std::string DescribeRegionsRequest::getRegionId()const
{
return regionId_;
}
void DescribeRegionsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DescribeRegionsResult::DescribeRegionsResult() :
ServiceResult()
{}
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionsResult::~DescribeRegionsResult()
{}
void DescribeRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegionsNode = value["Regions"]["RegionsItem"];
for (auto valueRegionsRegionsItem : allRegionsNode)
{
RegionsItem regionsObject;
if(!valueRegionsRegionsItem["RegionId"].isNull())
regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString();
if(!valueRegionsRegionsItem["LocalName"].isNull())
regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString();
regions_.push_back(regionsObject);
}
}
std::vector<DescribeRegionsResult::RegionsItem> DescribeRegionsResult::getRegions()const
{
return regions_;
}

View File

@@ -0,0 +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/ga/model/DetachDdosFromAcceleratorRequest.h>
using AlibabaCloud::Ga::Model::DetachDdosFromAcceleratorRequest;
DetachDdosFromAcceleratorRequest::DetachDdosFromAcceleratorRequest() :
RpcServiceRequest("ga", "2019-11-20", "DetachDdosFromAccelerator")
{
setMethod(HttpRequest::Method::Post);
}
DetachDdosFromAcceleratorRequest::~DetachDdosFromAcceleratorRequest()
{}
std::string DetachDdosFromAcceleratorRequest::getRegionId()const
{
return regionId_;
}
void DetachDdosFromAcceleratorRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DetachDdosFromAcceleratorRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void DetachDdosFromAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +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/ga/model/DetachDdosFromAcceleratorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DetachDdosFromAcceleratorResult::DetachDdosFromAcceleratorResult() :
ServiceResult()
{}
DetachDdosFromAcceleratorResult::DetachDdosFromAcceleratorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetachDdosFromAcceleratorResult::~DetachDdosFromAcceleratorResult()
{}
void DetachDdosFromAcceleratorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DdosId"].isNull())
ddosId_ = value["DdosId"].asString();
}
std::string DetachDdosFromAcceleratorResult::getDdosId()const
{
return ddosId_;
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h>
using AlibabaCloud::Ga::Model::DetachLogStoreFromEndpointGroupRequest;
DetachLogStoreFromEndpointGroupRequest::DetachLogStoreFromEndpointGroupRequest() :
RpcServiceRequest("ga", "2019-11-20", "DetachLogStoreFromEndpointGroup")
{
setMethod(HttpRequest::Method::Post);
}
DetachLogStoreFromEndpointGroupRequest::~DetachLogStoreFromEndpointGroupRequest()
{}
std::string DetachLogStoreFromEndpointGroupRequest::getClientToken()const
{
return clientToken_;
}
void DetachLogStoreFromEndpointGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DetachLogStoreFromEndpointGroupRequest::getListenerId()const
{
return listenerId_;
}
void DetachLogStoreFromEndpointGroupRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::vector<std::string> DetachLogStoreFromEndpointGroupRequest::getEndpointGroupIds()const
{
return endpointGroupIds_;
}
void DetachLogStoreFromEndpointGroupRequest::setEndpointGroupIds(const std::vector<std::string>& endpointGroupIds)
{
endpointGroupIds_ = endpointGroupIds;
for(int dep1 = 0; dep1!= endpointGroupIds.size(); dep1++) {
setParameter("EndpointGroupIds."+ std::to_string(dep1), endpointGroupIds.at(dep1));
}
}
std::string DetachLogStoreFromEndpointGroupRequest::getRegionId()const
{
return regionId_;
}
void DetachLogStoreFromEndpointGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DetachLogStoreFromEndpointGroupRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void DetachLogStoreFromEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DetachLogStoreFromEndpointGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DetachLogStoreFromEndpointGroupResult::DetachLogStoreFromEndpointGroupResult() :
ServiceResult()
{}
DetachLogStoreFromEndpointGroupResult::DetachLogStoreFromEndpointGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetachLogStoreFromEndpointGroupResult::~DetachLogStoreFromEndpointGroupResult()
{}
void DetachLogStoreFromEndpointGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DissociateAclsFromListenerRequest.h>
using AlibabaCloud::Ga::Model::DissociateAclsFromListenerRequest;
DissociateAclsFromListenerRequest::DissociateAclsFromListenerRequest() :
RpcServiceRequest("ga", "2019-11-20", "DissociateAclsFromListener")
{
setMethod(HttpRequest::Method::Post);
}
DissociateAclsFromListenerRequest::~DissociateAclsFromListenerRequest()
{}
bool DissociateAclsFromListenerRequest::getDryRun()const
{
return dryRun_;
}
void DissociateAclsFromListenerRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string DissociateAclsFromListenerRequest::getClientToken()const
{
return clientToken_;
}
void DissociateAclsFromListenerRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::vector<std::string> DissociateAclsFromListenerRequest::getAclIds()const
{
return aclIds_;
}
void DissociateAclsFromListenerRequest::setAclIds(const std::vector<std::string>& aclIds)
{
aclIds_ = aclIds;
for(int dep1 = 0; dep1!= aclIds.size(); dep1++) {
setParameter("AclIds."+ std::to_string(dep1), aclIds.at(dep1));
}
}
std::string DissociateAclsFromListenerRequest::getListenerId()const
{
return listenerId_;
}
void DissociateAclsFromListenerRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::string DissociateAclsFromListenerRequest::getRegionId()const
{
return regionId_;
}
void DissociateAclsFromListenerRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/DissociateAclsFromListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
DissociateAclsFromListenerResult::DissociateAclsFromListenerResult() :
ServiceResult()
{}
DissociateAclsFromListenerResult::DissociateAclsFromListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DissociateAclsFromListenerResult::~DissociateAclsFromListenerResult()
{}
void DissociateAclsFromListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAclIds = value["AclIds"]["aclIds"];
for (const auto &item : allAclIds)
aclIds_.push_back(item.asString());
if(!value["ListenerId"].isNull())
listenerId_ = value["ListenerId"].asString();
}
std::vector<std::string> DissociateAclsFromListenerResult::getAclIds()const
{
return aclIds_;
}
std::string DissociateAclsFromListenerResult::getListenerId()const
{
return listenerId_;
}

View File

@@ -0,0 +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/ga/model/GetAclRequest.h>
using AlibabaCloud::Ga::Model::GetAclRequest;
GetAclRequest::GetAclRequest() :
RpcServiceRequest("ga", "2019-11-20", "GetAcl")
{
setMethod(HttpRequest::Method::Post);
}
GetAclRequest::~GetAclRequest()
{}
std::string GetAclRequest::getAclId()const
{
return aclId_;
}
void GetAclRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setParameter("AclId", aclId);
}
std::string GetAclRequest::getRegionId()const
{
return regionId_;
}
void GetAclRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/GetAclResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
GetAclResult::GetAclResult() :
ServiceResult()
{}
GetAclResult::GetAclResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAclResult::~GetAclResult()
{}
void GetAclResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAclEntriesNode = value["AclEntries"]["AclEntriesItem"];
for (auto valueAclEntriesAclEntriesItem : allAclEntriesNode)
{
AclEntriesItem aclEntriesObject;
if(!valueAclEntriesAclEntriesItem["Entry"].isNull())
aclEntriesObject.entry = valueAclEntriesAclEntriesItem["Entry"].asString();
if(!valueAclEntriesAclEntriesItem["EntryDescription"].isNull())
aclEntriesObject.entryDescription = valueAclEntriesAclEntriesItem["EntryDescription"].asString();
aclEntries_.push_back(aclEntriesObject);
}
auto allRelatedListenersNode = value["RelatedListeners"]["RelatedListenersItem"];
for (auto valueRelatedListenersRelatedListenersItem : allRelatedListenersNode)
{
RelatedListenersItem relatedListenersObject;
if(!valueRelatedListenersRelatedListenersItem["AclType"].isNull())
relatedListenersObject.aclType = valueRelatedListenersRelatedListenersItem["AclType"].asString();
if(!valueRelatedListenersRelatedListenersItem["AcceleratorId"].isNull())
relatedListenersObject.acceleratorId = valueRelatedListenersRelatedListenersItem["AcceleratorId"].asString();
if(!valueRelatedListenersRelatedListenersItem["ListenerId"].isNull())
relatedListenersObject.listenerId = valueRelatedListenersRelatedListenersItem["ListenerId"].asString();
relatedListeners_.push_back(relatedListenersObject);
}
if(!value["AclStatus"].isNull())
aclStatus_ = value["AclStatus"].asString();
if(!value["AddressIPVersion"].isNull())
addressIPVersion_ = value["AddressIPVersion"].asString();
if(!value["AclId"].isNull())
aclId_ = value["AclId"].asString();
if(!value["AclName"].isNull())
aclName_ = value["AclName"].asString();
}
std::vector<GetAclResult::AclEntriesItem> GetAclResult::getAclEntries()const
{
return aclEntries_;
}
std::string GetAclResult::getAclStatus()const
{
return aclStatus_;
}
std::string GetAclResult::getAddressIPVersion()const
{
return addressIPVersion_;
}
std::string GetAclResult::getAclId()const
{
return aclId_;
}
std::vector<GetAclResult::RelatedListenersItem> GetAclResult::getRelatedListeners()const
{
return relatedListeners_;
}
std::string GetAclResult::getAclName()const
{
return aclName_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListAccelerateAreasRequest.h>
using AlibabaCloud::Ga::Model::ListAccelerateAreasRequest;
ListAccelerateAreasRequest::ListAccelerateAreasRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListAccelerateAreas")
{
setMethod(HttpRequest::Method::Post);
}
ListAccelerateAreasRequest::~ListAccelerateAreasRequest()
{}
std::string ListAccelerateAreasRequest::getRegionId()const
{
return regionId_;
}
void ListAccelerateAreasRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListAccelerateAreasResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListAccelerateAreasResult::ListAccelerateAreasResult() :
ServiceResult()
{}
ListAccelerateAreasResult::ListAccelerateAreasResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAccelerateAreasResult::~ListAccelerateAreasResult()
{}
void ListAccelerateAreasResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAreasNode = value["Areas"]["AreasItem"];
for (auto valueAreasAreasItem : allAreasNode)
{
AreasItem areasObject;
if(!valueAreasAreasItem["AreaId"].isNull())
areasObject.areaId = valueAreasAreasItem["AreaId"].asString();
if(!valueAreasAreasItem["LocalName"].isNull())
areasObject.localName = valueAreasAreasItem["LocalName"].asString();
auto allRegionListNode = valueAreasAreasItem["RegionList"]["RegionListItem"];
for (auto valueAreasAreasItemRegionListRegionListItem : allRegionListNode)
{
AreasItem::RegionListItem regionListObject;
if(!valueAreasAreasItemRegionListRegionListItem["RegionId"].isNull())
regionListObject.regionId = valueAreasAreasItemRegionListRegionListItem["RegionId"].asString();
if(!valueAreasAreasItemRegionListRegionListItem["LocalName"].isNull())
regionListObject.localName = valueAreasAreasItemRegionListRegionListItem["LocalName"].asString();
areasObject.regionList.push_back(regionListObject);
}
areas_.push_back(areasObject);
}
}
std::vector<ListAccelerateAreasResult::AreasItem> ListAccelerateAreasResult::getAreas()const
{
return areas_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListAcceleratorsRequest.h>
using AlibabaCloud::Ga::Model::ListAcceleratorsRequest;
ListAcceleratorsRequest::ListAcceleratorsRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListAccelerators")
{
setMethod(HttpRequest::Method::Post);
}
ListAcceleratorsRequest::~ListAcceleratorsRequest()
{}
int ListAcceleratorsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListAcceleratorsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListAcceleratorsRequest::getRegionId()const
{
return regionId_;
}
void ListAcceleratorsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int ListAcceleratorsRequest::getPageSize()const
{
return pageSize_;
}
void ListAcceleratorsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListAcceleratorsRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void ListAcceleratorsRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,118 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListAcceleratorsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListAcceleratorsResult::ListAcceleratorsResult() :
ServiceResult()
{}
ListAcceleratorsResult::ListAcceleratorsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAcceleratorsResult::~ListAcceleratorsResult()
{}
void ListAcceleratorsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAcceleratorsNode = value["Accelerators"]["AcceleratorsItem"];
for (auto valueAcceleratorsAcceleratorsItem : allAcceleratorsNode)
{
AcceleratorsItem acceleratorsObject;
if(!valueAcceleratorsAcceleratorsItem["DdosId"].isNull())
acceleratorsObject.ddosId = valueAcceleratorsAcceleratorsItem["DdosId"].asString();
if(!valueAcceleratorsAcceleratorsItem["DnsName"].isNull())
acceleratorsObject.dnsName = valueAcceleratorsAcceleratorsItem["DnsName"].asString();
if(!valueAcceleratorsAcceleratorsItem["Description"].isNull())
acceleratorsObject.description = valueAcceleratorsAcceleratorsItem["Description"].asString();
if(!valueAcceleratorsAcceleratorsItem["InstanceChargeType"].isNull())
acceleratorsObject.instanceChargeType = valueAcceleratorsAcceleratorsItem["InstanceChargeType"].asString();
if(!valueAcceleratorsAcceleratorsItem["CreateTime"].isNull())
acceleratorsObject.createTime = std::stol(valueAcceleratorsAcceleratorsItem["CreateTime"].asString());
if(!valueAcceleratorsAcceleratorsItem["SecondDnsName"].isNull())
acceleratorsObject.secondDnsName = valueAcceleratorsAcceleratorsItem["SecondDnsName"].asString();
if(!valueAcceleratorsAcceleratorsItem["Name"].isNull())
acceleratorsObject.name = valueAcceleratorsAcceleratorsItem["Name"].asString();
if(!valueAcceleratorsAcceleratorsItem["Type"].isNull())
acceleratorsObject.type = valueAcceleratorsAcceleratorsItem["Type"].asString();
if(!valueAcceleratorsAcceleratorsItem["State"].isNull())
acceleratorsObject.state = valueAcceleratorsAcceleratorsItem["State"].asString();
if(!valueAcceleratorsAcceleratorsItem["ExpiredTime"].isNull())
acceleratorsObject.expiredTime = std::stol(valueAcceleratorsAcceleratorsItem["ExpiredTime"].asString());
if(!valueAcceleratorsAcceleratorsItem["Bandwidth"].isNull())
acceleratorsObject.bandwidth = std::stoi(valueAcceleratorsAcceleratorsItem["Bandwidth"].asString());
if(!valueAcceleratorsAcceleratorsItem["CenId"].isNull())
acceleratorsObject.cenId = valueAcceleratorsAcceleratorsItem["CenId"].asString();
if(!valueAcceleratorsAcceleratorsItem["RegionId"].isNull())
acceleratorsObject.regionId = valueAcceleratorsAcceleratorsItem["RegionId"].asString();
if(!valueAcceleratorsAcceleratorsItem["Spec"].isNull())
acceleratorsObject.spec = valueAcceleratorsAcceleratorsItem["Spec"].asString();
if(!valueAcceleratorsAcceleratorsItem["AcceleratorId"].isNull())
acceleratorsObject.acceleratorId = valueAcceleratorsAcceleratorsItem["AcceleratorId"].asString();
auto basicBandwidthPackageNode = value["BasicBandwidthPackage"];
if(!basicBandwidthPackageNode["BandwidthType"].isNull())
acceleratorsObject.basicBandwidthPackage.bandwidthType = basicBandwidthPackageNode["BandwidthType"].asString();
if(!basicBandwidthPackageNode["InstanceId"].isNull())
acceleratorsObject.basicBandwidthPackage.instanceId = basicBandwidthPackageNode["InstanceId"].asString();
if(!basicBandwidthPackageNode["Bandwidth"].isNull())
acceleratorsObject.basicBandwidthPackage.bandwidth = std::stoi(basicBandwidthPackageNode["Bandwidth"].asString());
auto crossDomainBandwidthPackageNode = value["CrossDomainBandwidthPackage"];
if(!crossDomainBandwidthPackageNode["InstanceId"].isNull())
acceleratorsObject.crossDomainBandwidthPackage.instanceId = crossDomainBandwidthPackageNode["InstanceId"].asString();
if(!crossDomainBandwidthPackageNode["Bandwidth"].isNull())
acceleratorsObject.crossDomainBandwidthPackage.bandwidth = std::stoi(crossDomainBandwidthPackageNode["Bandwidth"].asString());
accelerators_.push_back(acceleratorsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListAcceleratorsResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListAcceleratorsResult::AcceleratorsItem> ListAcceleratorsResult::getAccelerators()const
{
return accelerators_;
}
int ListAcceleratorsResult::getPageSize()const
{
return pageSize_;
}
int ListAcceleratorsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListAclsRequest.h>
using AlibabaCloud::Ga::Model::ListAclsRequest;
ListAclsRequest::ListAclsRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListAcls")
{
setMethod(HttpRequest::Method::Post);
}
ListAclsRequest::~ListAclsRequest()
{}
std::string ListAclsRequest::getAclName()const
{
return aclName_;
}
void ListAclsRequest::setAclName(const std::string& aclName)
{
aclName_ = aclName;
setParameter("AclName", aclName);
}
std::string ListAclsRequest::getClientToken()const
{
return clientToken_;
}
void ListAclsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
Array ListAclsRequest::getAclIds()const
{
return aclIds_;
}
void ListAclsRequest::setAclIds(const Array& aclIds)
{
aclIds_ = aclIds;
setParameter("AclIds", std::to_string(aclIds));
}
std::string ListAclsRequest::getRegionId()const
{
return regionId_;
}
void ListAclsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListAclsRequest::getNextToken()const
{
return nextToken_;
}
void ListAclsRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
int ListAclsRequest::getMaxResults()const
{
return maxResults_;
}
void ListAclsRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListAclsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListAclsResult::ListAclsResult() :
ServiceResult()
{}
ListAclsResult::ListAclsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAclsResult::~ListAclsResult()
{}
void ListAclsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAclsNode = value["Acls"]["GaAcls"];
for (auto valueAclsGaAcls : allAclsNode)
{
GaAcls aclsObject;
if(!valueAclsGaAcls["AclStatus"].isNull())
aclsObject.aclStatus = valueAclsGaAcls["AclStatus"].asString();
if(!valueAclsGaAcls["AddressIPVersion"].isNull())
aclsObject.addressIPVersion = valueAclsGaAcls["AddressIPVersion"].asString();
if(!valueAclsGaAcls["AclId"].isNull())
aclsObject.aclId = valueAclsGaAcls["AclId"].asString();
if(!valueAclsGaAcls["AclName"].isNull())
aclsObject.aclName = valueAclsGaAcls["AclName"].asString();
acls_.push_back(aclsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
}
int ListAclsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListAclsResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListAclsResult::GaAcls> ListAclsResult::getAcls()const
{
return acls_;
}
int ListAclsResult::getMaxResults()const
{
return maxResults_;
}

View File

@@ -0,0 +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/ga/model/ListAvailableAccelerateAreasRequest.h>
using AlibabaCloud::Ga::Model::ListAvailableAccelerateAreasRequest;
ListAvailableAccelerateAreasRequest::ListAvailableAccelerateAreasRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListAvailableAccelerateAreas")
{
setMethod(HttpRequest::Method::Post);
}
ListAvailableAccelerateAreasRequest::~ListAvailableAccelerateAreasRequest()
{}
std::string ListAvailableAccelerateAreasRequest::getRegionId()const
{
return regionId_;
}
void ListAvailableAccelerateAreasRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListAvailableAccelerateAreasRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void ListAvailableAccelerateAreasRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListAvailableAccelerateAreasResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListAvailableAccelerateAreasResult::ListAvailableAccelerateAreasResult() :
ServiceResult()
{}
ListAvailableAccelerateAreasResult::ListAvailableAccelerateAreasResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAvailableAccelerateAreasResult::~ListAvailableAccelerateAreasResult()
{}
void ListAvailableAccelerateAreasResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAreasNode = value["Areas"]["AreasItem"];
for (auto valueAreasAreasItem : allAreasNode)
{
AreasItem areasObject;
if(!valueAreasAreasItem["AreaId"].isNull())
areasObject.areaId = valueAreasAreasItem["AreaId"].asString();
if(!valueAreasAreasItem["LocalName"].isNull())
areasObject.localName = valueAreasAreasItem["LocalName"].asString();
auto allRegionListNode = valueAreasAreasItem["RegionList"]["RegionListItem"];
for (auto valueAreasAreasItemRegionListRegionListItem : allRegionListNode)
{
AreasItem::RegionListItem regionListObject;
if(!valueAreasAreasItemRegionListRegionListItem["RegionId"].isNull())
regionListObject.regionId = valueAreasAreasItemRegionListRegionListItem["RegionId"].asString();
if(!valueAreasAreasItemRegionListRegionListItem["LocalName"].isNull())
regionListObject.localName = valueAreasAreasItemRegionListRegionListItem["LocalName"].asString();
areasObject.regionList.push_back(regionListObject);
}
areas_.push_back(areasObject);
}
}
std::vector<ListAvailableAccelerateAreasResult::AreasItem> ListAvailableAccelerateAreasResult::getAreas()const
{
return areas_;
}

View File

@@ -0,0 +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/ga/model/ListAvailableBusiRegionsRequest.h>
using AlibabaCloud::Ga::Model::ListAvailableBusiRegionsRequest;
ListAvailableBusiRegionsRequest::ListAvailableBusiRegionsRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListAvailableBusiRegions")
{
setMethod(HttpRequest::Method::Post);
}
ListAvailableBusiRegionsRequest::~ListAvailableBusiRegionsRequest()
{}
std::string ListAvailableBusiRegionsRequest::getRegionId()const
{
return regionId_;
}
void ListAvailableBusiRegionsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListAvailableBusiRegionsRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void ListAvailableBusiRegionsRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListAvailableBusiRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListAvailableBusiRegionsResult::ListAvailableBusiRegionsResult() :
ServiceResult()
{}
ListAvailableBusiRegionsResult::ListAvailableBusiRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAvailableBusiRegionsResult::~ListAvailableBusiRegionsResult()
{}
void ListAvailableBusiRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegionsNode = value["Regions"]["RegionsItem"];
for (auto valueRegionsRegionsItem : allRegionsNode)
{
RegionsItem regionsObject;
if(!valueRegionsRegionsItem["RegionId"].isNull())
regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString();
if(!valueRegionsRegionsItem["LocalName"].isNull())
regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString();
regions_.push_back(regionsObject);
}
}
std::vector<ListAvailableBusiRegionsResult::RegionsItem> ListAvailableBusiRegionsResult::getRegions()const
{
return regions_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListBandwidthPackagesRequest.h>
using AlibabaCloud::Ga::Model::ListBandwidthPackagesRequest;
ListBandwidthPackagesRequest::ListBandwidthPackagesRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListBandwidthPackages")
{
setMethod(HttpRequest::Method::Post);
}
ListBandwidthPackagesRequest::~ListBandwidthPackagesRequest()
{}
std::string ListBandwidthPackagesRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void ListBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string ListBandwidthPackagesRequest::getType()const
{
return type_;
}
void ListBandwidthPackagesRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
int ListBandwidthPackagesRequest::getPageNumber()const
{
return pageNumber_;
}
void ListBandwidthPackagesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListBandwidthPackagesRequest::getRegionId()const
{
return regionId_;
}
void ListBandwidthPackagesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int ListBandwidthPackagesRequest::getPageSize()const
{
return pageSize_;
}
void ListBandwidthPackagesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListBandwidthPackagesRequest::getState()const
{
return state_;
}
void ListBandwidthPackagesRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}

View File

@@ -0,0 +1,109 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListBandwidthPackagesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListBandwidthPackagesResult::ListBandwidthPackagesResult() :
ServiceResult()
{}
ListBandwidthPackagesResult::ListBandwidthPackagesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListBandwidthPackagesResult::~ListBandwidthPackagesResult()
{}
void ListBandwidthPackagesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBandwidthPackagesNode = value["BandwidthPackages"]["BandwidthPackage"];
for (auto valueBandwidthPackagesBandwidthPackage : allBandwidthPackagesNode)
{
BandwidthPackage bandwidthPackagesObject;
if(!valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdB"].isNull())
bandwidthPackagesObject.cbnGeographicRegionIdB = valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdB"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull())
bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString();
if(!valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdA"].isNull())
bandwidthPackagesObject.cbnGeographicRegionIdA = valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdA"].asString();
if(!valueBandwidthPackagesBandwidthPackage["CreateTime"].isNull())
bandwidthPackagesObject.createTime = valueBandwidthPackagesBandwidthPackage["CreateTime"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Name"].isNull())
bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString();
if(!valueBandwidthPackagesBandwidthPackage["BandwidthType"].isNull())
bandwidthPackagesObject.bandwidthType = valueBandwidthPackagesBandwidthPackage["BandwidthType"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Type"].isNull())
bandwidthPackagesObject.type = valueBandwidthPackagesBandwidthPackage["Type"].asString();
if(!valueBandwidthPackagesBandwidthPackage["ChargeType"].isNull())
bandwidthPackagesObject.chargeType = valueBandwidthPackagesBandwidthPackage["ChargeType"].asString();
if(!valueBandwidthPackagesBandwidthPackage["State"].isNull())
bandwidthPackagesObject.state = valueBandwidthPackagesBandwidthPackage["State"].asString();
if(!valueBandwidthPackagesBandwidthPackage["ExpiredTime"].isNull())
bandwidthPackagesObject.expiredTime = valueBandwidthPackagesBandwidthPackage["ExpiredTime"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull())
bandwidthPackagesObject.bandwidth = std::stoi(valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString());
if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull())
bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Ratio"].isNull())
bandwidthPackagesObject.ratio = std::stoi(valueBandwidthPackagesBandwidthPackage["Ratio"].asString());
if(!valueBandwidthPackagesBandwidthPackage["RegionId"].isNull())
bandwidthPackagesObject.regionId = valueBandwidthPackagesBandwidthPackage["RegionId"].asString();
if(!valueBandwidthPackagesBandwidthPackage["BillingType"].isNull())
bandwidthPackagesObject.billingType = valueBandwidthPackagesBandwidthPackage["BillingType"].asString();
auto allAccelerators = value["Accelerators"]["Accelerator"];
for (auto value : allAccelerators)
bandwidthPackagesObject.accelerators.push_back(value.asString());
bandwidthPackages_.push_back(bandwidthPackagesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListBandwidthPackagesResult::getTotalCount()const
{
return totalCount_;
}
int ListBandwidthPackagesResult::getPageSize()const
{
return pageSize_;
}
int ListBandwidthPackagesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListBandwidthPackagesResult::BandwidthPackage> ListBandwidthPackagesResult::getBandwidthPackages()const
{
return bandwidthPackages_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListBandwidthackagesRequest.h>
using AlibabaCloud::Ga::Model::ListBandwidthackagesRequest;
ListBandwidthackagesRequest::ListBandwidthackagesRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListBandwidthackages")
{
setMethod(HttpRequest::Method::Post);
}
ListBandwidthackagesRequest::~ListBandwidthackagesRequest()
{}
int ListBandwidthackagesRequest::getPageNumber()const
{
return pageNumber_;
}
void ListBandwidthackagesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListBandwidthackagesRequest::getRegionId()const
{
return regionId_;
}
void ListBandwidthackagesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int ListBandwidthackagesRequest::getPageSize()const
{
return pageSize_;
}
void ListBandwidthackagesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,97 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListBandwidthackagesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListBandwidthackagesResult::ListBandwidthackagesResult() :
ServiceResult()
{}
ListBandwidthackagesResult::ListBandwidthackagesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListBandwidthackagesResult::~ListBandwidthackagesResult()
{}
void ListBandwidthackagesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBandwidthPackagesNode = value["BandwidthPackages"]["BandwidthPackage"];
for (auto valueBandwidthPackagesBandwidthPackage : allBandwidthPackagesNode)
{
BandwidthPackage bandwidthPackagesObject;
if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull())
bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString();
if(!valueBandwidthPackagesBandwidthPackage["ChargeType"].isNull())
bandwidthPackagesObject.chargeType = valueBandwidthPackagesBandwidthPackage["ChargeType"].asString();
if(!valueBandwidthPackagesBandwidthPackage["State"].isNull())
bandwidthPackagesObject.state = valueBandwidthPackagesBandwidthPackage["State"].asString();
if(!valueBandwidthPackagesBandwidthPackage["CreateTime"].isNull())
bandwidthPackagesObject.createTime = valueBandwidthPackagesBandwidthPackage["CreateTime"].asString();
if(!valueBandwidthPackagesBandwidthPackage["ExpiredTime"].isNull())
bandwidthPackagesObject.expiredTime = valueBandwidthPackagesBandwidthPackage["ExpiredTime"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull())
bandwidthPackagesObject.bandwidth = std::stoi(valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString());
if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull())
bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString();
if(!valueBandwidthPackagesBandwidthPackage["RegionId"].isNull())
bandwidthPackagesObject.regionId = valueBandwidthPackagesBandwidthPackage["RegionId"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Name"].isNull())
bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString();
auto allAccelerators = value["Accelerators"]["Accelerator"];
for (auto value : allAccelerators)
bandwidthPackagesObject.accelerators.push_back(value.asString());
bandwidthPackages_.push_back(bandwidthPackagesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListBandwidthackagesResult::getTotalCount()const
{
return totalCount_;
}
int ListBandwidthackagesResult::getPageSize()const
{
return pageSize_;
}
int ListBandwidthackagesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListBandwidthackagesResult::BandwidthPackage> ListBandwidthackagesResult::getBandwidthPackages()const
{
return bandwidthPackages_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListBusiRegionsRequest.h>
using AlibabaCloud::Ga::Model::ListBusiRegionsRequest;
ListBusiRegionsRequest::ListBusiRegionsRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListBusiRegions")
{
setMethod(HttpRequest::Method::Post);
}
ListBusiRegionsRequest::~ListBusiRegionsRequest()
{}
std::string ListBusiRegionsRequest::getRegionId()const
{
return regionId_;
}
void ListBusiRegionsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListBusiRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListBusiRegionsResult::ListBusiRegionsResult() :
ServiceResult()
{}
ListBusiRegionsResult::ListBusiRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListBusiRegionsResult::~ListBusiRegionsResult()
{}
void ListBusiRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegionsNode = value["Regions"]["RegionsItem"];
for (auto valueRegionsRegionsItem : allRegionsNode)
{
RegionsItem regionsObject;
if(!valueRegionsRegionsItem["RegionId"].isNull())
regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString();
if(!valueRegionsRegionsItem["LocalName"].isNull())
regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString();
regions_.push_back(regionsObject);
}
}
std::vector<ListBusiRegionsResult::RegionsItem> ListBusiRegionsResult::getRegions()const
{
return regions_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListEndpointGroupsRequest.h>
using AlibabaCloud::Ga::Model::ListEndpointGroupsRequest;
ListEndpointGroupsRequest::ListEndpointGroupsRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListEndpointGroups")
{
setMethod(HttpRequest::Method::Post);
}
ListEndpointGroupsRequest::~ListEndpointGroupsRequest()
{}
int ListEndpointGroupsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListEndpointGroupsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListEndpointGroupsRequest::getListenerId()const
{
return listenerId_;
}
void ListEndpointGroupsRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::string ListEndpointGroupsRequest::getRegionId()const
{
return regionId_;
}
void ListEndpointGroupsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListEndpointGroupsRequest::getEndpointGroupType()const
{
return endpointGroupType_;
}
void ListEndpointGroupsRequest::setEndpointGroupType(const std::string& endpointGroupType)
{
endpointGroupType_ = endpointGroupType;
setParameter("EndpointGroupType", endpointGroupType);
}
std::string ListEndpointGroupsRequest::getAccessLogSwitch()const
{
return accessLogSwitch_;
}
void ListEndpointGroupsRequest::setAccessLogSwitch(const std::string& accessLogSwitch)
{
accessLogSwitch_ = accessLogSwitch;
setParameter("AccessLogSwitch", accessLogSwitch);
}
int ListEndpointGroupsRequest::getPageSize()const
{
return pageSize_;
}
void ListEndpointGroupsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListEndpointGroupsRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void ListEndpointGroupsRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}
std::string ListEndpointGroupsRequest::getEndpointGroupId()const
{
return endpointGroupId_;
}
void ListEndpointGroupsRequest::setEndpointGroupId(const std::string& endpointGroupId)
{
endpointGroupId_ = endpointGroupId;
setParameter("EndpointGroupId", endpointGroupId);
}

View File

@@ -0,0 +1,142 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListEndpointGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListEndpointGroupsResult::ListEndpointGroupsResult() :
ServiceResult()
{}
ListEndpointGroupsResult::ListEndpointGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListEndpointGroupsResult::~ListEndpointGroupsResult()
{}
void ListEndpointGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEndpointGroupsNode = value["EndpointGroups"]["EndpointGroupsItem"];
for (auto valueEndpointGroupsEndpointGroupsItem : allEndpointGroupsNode)
{
EndpointGroupsItem endpointGroupsObject;
if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckIntervalSeconds"].isNull())
endpointGroupsObject.healthCheckIntervalSeconds = std::stoi(valueEndpointGroupsEndpointGroupsItem["HealthCheckIntervalSeconds"].asString());
if(!valueEndpointGroupsEndpointGroupsItem["TrafficPercentage"].isNull())
endpointGroupsObject.trafficPercentage = std::stoi(valueEndpointGroupsEndpointGroupsItem["TrafficPercentage"].asString());
if(!valueEndpointGroupsEndpointGroupsItem["Description"].isNull())
endpointGroupsObject.description = valueEndpointGroupsEndpointGroupsItem["Description"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["EndpointGroupId"].isNull())
endpointGroupsObject.endpointGroupId = valueEndpointGroupsEndpointGroupsItem["EndpointGroupId"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckPath"].isNull())
endpointGroupsObject.healthCheckPath = valueEndpointGroupsEndpointGroupsItem["HealthCheckPath"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["ThresholdCount"].isNull())
endpointGroupsObject.thresholdCount = std::stoi(valueEndpointGroupsEndpointGroupsItem["ThresholdCount"].asString());
if(!valueEndpointGroupsEndpointGroupsItem["EndpointRequestProtocol"].isNull())
endpointGroupsObject.endpointRequestProtocol = valueEndpointGroupsEndpointGroupsItem["EndpointRequestProtocol"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["Name"].isNull())
endpointGroupsObject.name = valueEndpointGroupsEndpointGroupsItem["Name"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["EndpointGroupRegion"].isNull())
endpointGroupsObject.endpointGroupRegion = valueEndpointGroupsEndpointGroupsItem["EndpointGroupRegion"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["State"].isNull())
endpointGroupsObject.state = valueEndpointGroupsEndpointGroupsItem["State"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckProtocol"].isNull())
endpointGroupsObject.healthCheckProtocol = valueEndpointGroupsEndpointGroupsItem["HealthCheckProtocol"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckPort"].isNull())
endpointGroupsObject.healthCheckPort = std::stoi(valueEndpointGroupsEndpointGroupsItem["HealthCheckPort"].asString());
if(!valueEndpointGroupsEndpointGroupsItem["AcceleratorId"].isNull())
endpointGroupsObject.acceleratorId = valueEndpointGroupsEndpointGroupsItem["AcceleratorId"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["EndpointGroupType"].isNull())
endpointGroupsObject.endpointGroupType = valueEndpointGroupsEndpointGroupsItem["EndpointGroupType"].asString();
if(!valueEndpointGroupsEndpointGroupsItem["ListenerId"].isNull())
endpointGroupsObject.listenerId = valueEndpointGroupsEndpointGroupsItem["ListenerId"].asString();
auto allPortOverridesNode = valueEndpointGroupsEndpointGroupsItem["PortOverrides"]["PortOverridesItem"];
for (auto valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem : allPortOverridesNode)
{
EndpointGroupsItem::PortOverridesItem portOverridesObject;
if(!valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem["ListenerPort"].isNull())
portOverridesObject.listenerPort = std::stoi(valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem["ListenerPort"].asString());
if(!valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem["EndpointPort"].isNull())
portOverridesObject.endpointPort = std::stoi(valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem["EndpointPort"].asString());
endpointGroupsObject.portOverrides.push_back(portOverridesObject);
}
auto allEndpointConfigurationsNode = valueEndpointGroupsEndpointGroupsItem["EndpointConfigurations"]["EndpointConfigurationsItem"];
for (auto valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem : allEndpointConfigurationsNode)
{
EndpointGroupsItem::EndpointConfigurationsItem endpointConfigurationsObject;
if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].isNull())
endpointConfigurationsObject.enableProxyProtocol = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].asString() == "true";
if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].isNull())
endpointConfigurationsObject.probeProtocol = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].asString();
if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Type"].isNull())
endpointConfigurationsObject.type = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Type"].asString();
if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].isNull())
endpointConfigurationsObject.endpoint = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].asString();
if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].isNull())
endpointConfigurationsObject.enableClientIPPreservation = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].asString() == "true";
if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].isNull())
endpointConfigurationsObject.probePort = std::stoi(valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].asString());
if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Weight"].isNull())
endpointConfigurationsObject.weight = std::stoi(valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Weight"].asString());
endpointGroupsObject.endpointConfigurations.push_back(endpointConfigurationsObject);
}
auto allEndpointGroupIpList = value["EndpointGroupIpList"]["EndpointGroupIpList"];
for (auto value : allEndpointGroupIpList)
endpointGroupsObject.endpointGroupIpList.push_back(value.asString());
auto allForwardingRuleIds = value["ForwardingRuleIds"]["ForwardingRuleIds"];
for (auto value : allForwardingRuleIds)
endpointGroupsObject.forwardingRuleIds.push_back(value.asString());
endpointGroups_.push_back(endpointGroupsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListEndpointGroupsResult::getTotalCount()const
{
return totalCount_;
}
int ListEndpointGroupsResult::getPageSize()const
{
return pageSize_;
}
int ListEndpointGroupsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListEndpointGroupsResult::EndpointGroupsItem> ListEndpointGroupsResult::getEndpointGroups()const
{
return endpointGroups_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListForwardingRulesRequest.h>
using AlibabaCloud::Ga::Model::ListForwardingRulesRequest;
ListForwardingRulesRequest::ListForwardingRulesRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListForwardingRules")
{
setMethod(HttpRequest::Method::Post);
}
ListForwardingRulesRequest::~ListForwardingRulesRequest()
{}
std::string ListForwardingRulesRequest::getClientToken()const
{
return clientToken_;
}
void ListForwardingRulesRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string ListForwardingRulesRequest::getListenerId()const
{
return listenerId_;
}
void ListForwardingRulesRequest::setListenerId(const std::string& listenerId)
{
listenerId_ = listenerId;
setParameter("ListenerId", listenerId);
}
std::string ListForwardingRulesRequest::getForwardingRuleId()const
{
return forwardingRuleId_;
}
void ListForwardingRulesRequest::setForwardingRuleId(const std::string& forwardingRuleId)
{
forwardingRuleId_ = forwardingRuleId;
setParameter("ForwardingRuleId", forwardingRuleId);
}
std::string ListForwardingRulesRequest::getRegionId()const
{
return regionId_;
}
void ListForwardingRulesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListForwardingRulesRequest::getNextToken()const
{
return nextToken_;
}
void ListForwardingRulesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
int ListForwardingRulesRequest::getMaxResults()const
{
return maxResults_;
}
void ListForwardingRulesRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}
std::string ListForwardingRulesRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void ListForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,121 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListForwardingRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListForwardingRulesResult::ListForwardingRulesResult() :
ServiceResult()
{}
ListForwardingRulesResult::ListForwardingRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListForwardingRulesResult::~ListForwardingRulesResult()
{}
void ListForwardingRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allForwardingRulesNode = value["ForwardingRules"]["ForwardingRulesItem"];
for (auto valueForwardingRulesForwardingRulesItem : allForwardingRulesNode)
{
ForwardingRulesItem forwardingRulesObject;
if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleName"].isNull())
forwardingRulesObject.forwardingRuleName = valueForwardingRulesForwardingRulesItem["ForwardingRuleName"].asString();
if(!valueForwardingRulesForwardingRulesItem["Priority"].isNull())
forwardingRulesObject.priority = std::stoi(valueForwardingRulesForwardingRulesItem["Priority"].asString());
if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].isNull())
forwardingRulesObject.forwardingRuleId = valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].asString();
if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleStatus"].isNull())
forwardingRulesObject.forwardingRuleStatus = valueForwardingRulesForwardingRulesItem["ForwardingRuleStatus"].asString();
if(!valueForwardingRulesForwardingRulesItem["ListenerId"].isNull())
forwardingRulesObject.listenerId = valueForwardingRulesForwardingRulesItem["ListenerId"].asString();
auto allRuleActionsNode = valueForwardingRulesForwardingRulesItem["RuleActions"]["RuleActionsItem"];
for (auto valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem : allRuleActionsNode)
{
ForwardingRulesItem::RuleActionsItem ruleActionsObject;
if(!valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["RuleActionType"].isNull())
ruleActionsObject.ruleActionType = valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["RuleActionType"].asString();
if(!valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["Order"].isNull())
ruleActionsObject.order = std::stoi(valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["Order"].asString());
auto forwardGroupConfigNode = value["ForwardGroupConfig"];
auto allServerGroupTuplesNode = forwardGroupConfigNode["ServerGroupTuples"]["ServerGroupTuplesItem"];
for (auto forwardGroupConfigNodeServerGroupTuplesServerGroupTuplesItem : allServerGroupTuplesNode)
{
ForwardingRulesItem::RuleActionsItem::ForwardGroupConfig::ServerGroupTuplesItem serverGroupTuplesItemObject;
if(!forwardGroupConfigNodeServerGroupTuplesServerGroupTuplesItem["EndpointGroupId"].isNull())
serverGroupTuplesItemObject.endpointGroupId = forwardGroupConfigNodeServerGroupTuplesServerGroupTuplesItem["EndpointGroupId"].asString();
ruleActionsObject.forwardGroupConfig.serverGroupTuples.push_back(serverGroupTuplesItemObject);
}
forwardingRulesObject.ruleActions.push_back(ruleActionsObject);
}
auto allRuleConditionsNode = valueForwardingRulesForwardingRulesItem["RuleConditions"]["RuleConditionsItem"];
for (auto valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem : allRuleConditionsNode)
{
ForwardingRulesItem::RuleConditionsItem ruleConditionsObject;
if(!valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem["RuleConditionType"].isNull())
ruleConditionsObject.ruleConditionType = valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem["RuleConditionType"].asString();
auto pathConfigNode = value["PathConfig"];
auto allValues = pathConfigNode["Values"]["Values"];
for (auto value : allValues)
ruleConditionsObject.pathConfig.values.push_back(value.asString());
auto hostConfigNode = value["HostConfig"];
auto allValues1 = hostConfigNode["Values"]["Values"];
for (auto value : allValues1)
ruleConditionsObject.hostConfig.values1.push_back(value.asString());
forwardingRulesObject.ruleConditions.push_back(ruleConditionsObject);
}
forwardingRules_.push_back(forwardingRulesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
}
int ListForwardingRulesResult::getTotalCount()const
{
return totalCount_;
}
std::string ListForwardingRulesResult::getNextToken()const
{
return nextToken_;
}
int ListForwardingRulesResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ListForwardingRulesResult::ForwardingRulesItem> ListForwardingRulesResult::getForwardingRules()const
{
return forwardingRules_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListIpSetsRequest.h>
using AlibabaCloud::Ga::Model::ListIpSetsRequest;
ListIpSetsRequest::ListIpSetsRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListIpSets")
{
setMethod(HttpRequest::Method::Post);
}
ListIpSetsRequest::~ListIpSetsRequest()
{}
int ListIpSetsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListIpSetsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListIpSetsRequest::getRegionId()const
{
return regionId_;
}
void ListIpSetsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int ListIpSetsRequest::getPageSize()const
{
return pageSize_;
}
void ListIpSetsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListIpSetsRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void ListIpSetsRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListIpSetsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListIpSetsResult::ListIpSetsResult() :
ServiceResult()
{}
ListIpSetsResult::ListIpSetsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListIpSetsResult::~ListIpSetsResult()
{}
void ListIpSetsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpSetsNode = value["IpSets"]["IpSetsItem"];
for (auto valueIpSetsIpSetsItem : allIpSetsNode)
{
IpSetsItem ipSetsObject;
if(!valueIpSetsIpSetsItem["IpSetId"].isNull())
ipSetsObject.ipSetId = valueIpSetsIpSetsItem["IpSetId"].asString();
if(!valueIpSetsIpSetsItem["IpVersion"].isNull())
ipSetsObject.ipVersion = valueIpSetsIpSetsItem["IpVersion"].asString();
if(!valueIpSetsIpSetsItem["State"].isNull())
ipSetsObject.state = valueIpSetsIpSetsItem["State"].asString();
if(!valueIpSetsIpSetsItem["Bandwidth"].isNull())
ipSetsObject.bandwidth = std::stoi(valueIpSetsIpSetsItem["Bandwidth"].asString());
if(!valueIpSetsIpSetsItem["AccelerateRegionId"].isNull())
ipSetsObject.accelerateRegionId = valueIpSetsIpSetsItem["AccelerateRegionId"].asString();
auto allIpAddressList = value["IpAddressList"]["IpAddressList"];
for (auto value : allIpAddressList)
ipSetsObject.ipAddressList.push_back(value.asString());
ipSets_.push_back(ipSetsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListIpSetsResult::getTotalCount()const
{
return totalCount_;
}
int ListIpSetsResult::getPageSize()const
{
return pageSize_;
}
int ListIpSetsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListIpSetsResult::IpSetsItem> ListIpSetsResult::getIpSets()const
{
return ipSets_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListListenersRequest.h>
using AlibabaCloud::Ga::Model::ListListenersRequest;
ListListenersRequest::ListListenersRequest() :
RpcServiceRequest("ga", "2019-11-20", "ListListeners")
{
setMethod(HttpRequest::Method::Post);
}
ListListenersRequest::~ListListenersRequest()
{}
int ListListenersRequest::getPageNumber()const
{
return pageNumber_;
}
void ListListenersRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListListenersRequest::getRegionId()const
{
return regionId_;
}
void ListListenersRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int ListListenersRequest::getPageSize()const
{
return pageSize_;
}
void ListListenersRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListListenersRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void ListListenersRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,124 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ListListenersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ListListenersResult::ListListenersResult() :
ServiceResult()
{}
ListListenersResult::ListListenersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListListenersResult::~ListListenersResult()
{}
void ListListenersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allListenersNode = value["Listeners"]["ListenersItem"];
for (auto valueListenersListenersItem : allListenersNode)
{
ListenersItem listenersObject;
if(!valueListenersListenersItem["Description"].isNull())
listenersObject.description = valueListenersListenersItem["Description"].asString();
if(!valueListenersListenersItem["State"].isNull())
listenersObject.state = valueListenersListenersItem["State"].asString();
if(!valueListenersListenersItem["ProxyProtocol"].isNull())
listenersObject.proxyProtocol = valueListenersListenersItem["ProxyProtocol"].asString() == "true";
if(!valueListenersListenersItem["CreateTime"].isNull())
listenersObject.createTime = std::stol(valueListenersListenersItem["CreateTime"].asString());
if(!valueListenersListenersItem["Protocol"].isNull())
listenersObject.protocol = valueListenersListenersItem["Protocol"].asString();
if(!valueListenersListenersItem["AcceleratorId"].isNull())
listenersObject.acceleratorId = valueListenersListenersItem["AcceleratorId"].asString();
if(!valueListenersListenersItem["Name"].isNull())
listenersObject.name = valueListenersListenersItem["Name"].asString();
if(!valueListenersListenersItem["ClientAffinity"].isNull())
listenersObject.clientAffinity = valueListenersListenersItem["ClientAffinity"].asString();
if(!valueListenersListenersItem["ListenerId"].isNull())
listenersObject.listenerId = valueListenersListenersItem["ListenerId"].asString();
auto allPortRangesNode = valueListenersListenersItem["PortRanges"]["PortRangesItem"];
for (auto valueListenersListenersItemPortRangesPortRangesItem : allPortRangesNode)
{
ListenersItem::PortRangesItem portRangesObject;
if(!valueListenersListenersItemPortRangesPortRangesItem["FromPort"].isNull())
portRangesObject.fromPort = std::stoi(valueListenersListenersItemPortRangesPortRangesItem["FromPort"].asString());
if(!valueListenersListenersItemPortRangesPortRangesItem["ToPort"].isNull())
portRangesObject.toPort = std::stoi(valueListenersListenersItemPortRangesPortRangesItem["ToPort"].asString());
listenersObject.portRanges.push_back(portRangesObject);
}
auto allBackendPortsNode = valueListenersListenersItem["BackendPorts"]["BackendPort"];
for (auto valueListenersListenersItemBackendPortsBackendPort : allBackendPortsNode)
{
ListenersItem::BackendPort backendPortsObject;
if(!valueListenersListenersItemBackendPortsBackendPort["FromPort"].isNull())
backendPortsObject.fromPort = valueListenersListenersItemBackendPortsBackendPort["FromPort"].asString();
if(!valueListenersListenersItemBackendPortsBackendPort["ToPort"].isNull())
backendPortsObject.toPort = valueListenersListenersItemBackendPortsBackendPort["ToPort"].asString();
listenersObject.backendPorts.push_back(backendPortsObject);
}
auto allCertificatesNode = valueListenersListenersItem["Certificates"]["Certificate"];
for (auto valueListenersListenersItemCertificatesCertificate : allCertificatesNode)
{
ListenersItem::Certificate certificatesObject;
if(!valueListenersListenersItemCertificatesCertificate["Type"].isNull())
certificatesObject.type = valueListenersListenersItemCertificatesCertificate["Type"].asString();
if(!valueListenersListenersItemCertificatesCertificate["Id"].isNull())
certificatesObject.id = valueListenersListenersItemCertificatesCertificate["Id"].asString();
listenersObject.certificates.push_back(certificatesObject);
}
listeners_.push_back(listenersObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
std::vector<ListListenersResult::ListenersItem> ListListenersResult::getListeners()const
{
return listeners_;
}
int ListListenersResult::getTotalCount()const
{
return totalCount_;
}
int ListListenersResult::getPageSize()const
{
return pageSize_;
}
int ListListenersResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/RemoveEntriesFromAclRequest.h>
using AlibabaCloud::Ga::Model::RemoveEntriesFromAclRequest;
RemoveEntriesFromAclRequest::RemoveEntriesFromAclRequest() :
RpcServiceRequest("ga", "2019-11-20", "RemoveEntriesFromAcl")
{
setMethod(HttpRequest::Method::Post);
}
RemoveEntriesFromAclRequest::~RemoveEntriesFromAclRequest()
{}
std::string RemoveEntriesFromAclRequest::getAclId()const
{
return aclId_;
}
void RemoveEntriesFromAclRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setParameter("AclId", aclId);
}
bool RemoveEntriesFromAclRequest::getDryRun()const
{
return dryRun_;
}
void RemoveEntriesFromAclRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string RemoveEntriesFromAclRequest::getClientToken()const
{
return clientToken_;
}
void RemoveEntriesFromAclRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::vector<RemoveEntriesFromAclRequest::AclEntries> RemoveEntriesFromAclRequest::getAclEntries()const
{
return aclEntries_;
}
void RemoveEntriesFromAclRequest::setAclEntries(const std::vector<AclEntries>& aclEntries)
{
aclEntries_ = aclEntries;
for(int dep1 = 0; dep1!= aclEntries.size(); dep1++) {
auto aclEntriesObj = aclEntries.at(dep1);
std::string aclEntriesObjStr = "AclEntries." + std::to_string(dep1 + 1);
setParameter(aclEntriesObjStr + ".Entry", aclEntriesObj.entry);
}
}
std::string RemoveEntriesFromAclRequest::getRegionId()const
{
return regionId_;
}
void RemoveEntriesFromAclRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +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/ga/model/RemoveEntriesFromAclResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
RemoveEntriesFromAclResult::RemoveEntriesFromAclResult() :
ServiceResult()
{}
RemoveEntriesFromAclResult::RemoveEntriesFromAclResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RemoveEntriesFromAclResult::~RemoveEntriesFromAclResult()
{}
void RemoveEntriesFromAclResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AclId"].isNull())
aclId_ = value["AclId"].asString();
}
std::string RemoveEntriesFromAclResult::getAclId()const
{
return aclId_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ReplaceBandwidthPackageRequest.h>
using AlibabaCloud::Ga::Model::ReplaceBandwidthPackageRequest;
ReplaceBandwidthPackageRequest::ReplaceBandwidthPackageRequest() :
RpcServiceRequest("ga", "2019-11-20", "ReplaceBandwidthPackage")
{
setMethod(HttpRequest::Method::Post);
}
ReplaceBandwidthPackageRequest::~ReplaceBandwidthPackageRequest()
{}
std::string ReplaceBandwidthPackageRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void ReplaceBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
std::string ReplaceBandwidthPackageRequest::getRegionId()const
{
return regionId_;
}
void ReplaceBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ReplaceBandwidthPackageRequest::getTargetBandwidthPackageId()const
{
return targetBandwidthPackageId_;
}
void ReplaceBandwidthPackageRequest::setTargetBandwidthPackageId(const std::string& targetBandwidthPackageId)
{
targetBandwidthPackageId_ = targetBandwidthPackageId;
setParameter("TargetBandwidthPackageId", targetBandwidthPackageId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/ReplaceBandwidthPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
ReplaceBandwidthPackageResult::ReplaceBandwidthPackageResult() :
ServiceResult()
{}
ReplaceBandwidthPackageResult::ReplaceBandwidthPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ReplaceBandwidthPackageResult::~ReplaceBandwidthPackageResult()
{}
void ReplaceBandwidthPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/UpdateAcceleratorRequest.h>
using AlibabaCloud::Ga::Model::UpdateAcceleratorRequest;
UpdateAcceleratorRequest::UpdateAcceleratorRequest() :
RpcServiceRequest("ga", "2019-11-20", "UpdateAccelerator")
{
setMethod(HttpRequest::Method::Post);
}
UpdateAcceleratorRequest::~UpdateAcceleratorRequest()
{}
bool UpdateAcceleratorRequest::getAutoPay()const
{
return autoPay_;
}
void UpdateAcceleratorRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", autoPay ? "true" : "false");
}
std::string UpdateAcceleratorRequest::getPromotionOptionNo()const
{
return promotionOptionNo_;
}
void UpdateAcceleratorRequest::setPromotionOptionNo(const std::string& promotionOptionNo)
{
promotionOptionNo_ = promotionOptionNo;
setParameter("PromotionOptionNo", promotionOptionNo);
}
std::string UpdateAcceleratorRequest::getClientToken()const
{
return clientToken_;
}
void UpdateAcceleratorRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string UpdateAcceleratorRequest::getDescription()const
{
return description_;
}
void UpdateAcceleratorRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
bool UpdateAcceleratorRequest::getAutoUseCoupon()const
{
return autoUseCoupon_;
}
void UpdateAcceleratorRequest::setAutoUseCoupon(bool autoUseCoupon)
{
autoUseCoupon_ = autoUseCoupon;
setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false");
}
std::string UpdateAcceleratorRequest::getSpec()const
{
return spec_;
}
void UpdateAcceleratorRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
}
std::string UpdateAcceleratorRequest::getRegionId()const
{
return regionId_;
}
void UpdateAcceleratorRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string UpdateAcceleratorRequest::getName()const
{
return name_;
}
void UpdateAcceleratorRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string UpdateAcceleratorRequest::getAcceleratorId()const
{
return acceleratorId_;
}
void UpdateAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId)
{
acceleratorId_ = acceleratorId;
setParameter("AcceleratorId", acceleratorId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/UpdateAcceleratorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
UpdateAcceleratorResult::UpdateAcceleratorResult() :
ServiceResult()
{}
UpdateAcceleratorResult::UpdateAcceleratorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateAcceleratorResult::~UpdateAcceleratorResult()
{}
void UpdateAcceleratorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/UpdateAclAttributeRequest.h>
using AlibabaCloud::Ga::Model::UpdateAclAttributeRequest;
UpdateAclAttributeRequest::UpdateAclAttributeRequest() :
RpcServiceRequest("ga", "2019-11-20", "UpdateAclAttribute")
{
setMethod(HttpRequest::Method::Post);
}
UpdateAclAttributeRequest::~UpdateAclAttributeRequest()
{}
std::string UpdateAclAttributeRequest::getAclId()const
{
return aclId_;
}
void UpdateAclAttributeRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setParameter("AclId", aclId);
}
bool UpdateAclAttributeRequest::getDryRun()const
{
return dryRun_;
}
void UpdateAclAttributeRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string UpdateAclAttributeRequest::getAclName()const
{
return aclName_;
}
void UpdateAclAttributeRequest::setAclName(const std::string& aclName)
{
aclName_ = aclName;
setParameter("AclName", aclName);
}
std::string UpdateAclAttributeRequest::getClientToken()const
{
return clientToken_;
}
void UpdateAclAttributeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string UpdateAclAttributeRequest::getRegionId()const
{
return regionId_;
}
void UpdateAclAttributeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +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/ga/model/UpdateAclAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
UpdateAclAttributeResult::UpdateAclAttributeResult() :
ServiceResult()
{}
UpdateAclAttributeResult::UpdateAclAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateAclAttributeResult::~UpdateAclAttributeResult()
{}
void UpdateAclAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AclId"].isNull())
aclId_ = value["AclId"].asString();
}
std::string UpdateAclAttributeResult::getAclId()const
{
return aclId_;
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/UpdateBandwidthPackageRequest.h>
using AlibabaCloud::Ga::Model::UpdateBandwidthPackageRequest;
UpdateBandwidthPackageRequest::UpdateBandwidthPackageRequest() :
RpcServiceRequest("ga", "2019-11-20", "UpdateBandwidthPackage")
{
setMethod(HttpRequest::Method::Post);
}
UpdateBandwidthPackageRequest::~UpdateBandwidthPackageRequest()
{}
std::string UpdateBandwidthPackageRequest::getBandwidthType()const
{
return bandwidthType_;
}
void UpdateBandwidthPackageRequest::setBandwidthType(const std::string& bandwidthType)
{
bandwidthType_ = bandwidthType;
setParameter("BandwidthType", bandwidthType);
}
std::string UpdateBandwidthPackageRequest::getBandwidthPackageId()const
{
return bandwidthPackageId_;
}
void UpdateBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId)
{
bandwidthPackageId_ = bandwidthPackageId;
setParameter("BandwidthPackageId", bandwidthPackageId);
}
bool UpdateBandwidthPackageRequest::getAutoPay()const
{
return autoPay_;
}
void UpdateBandwidthPackageRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", autoPay ? "true" : "false");
}
std::string UpdateBandwidthPackageRequest::getPromotionOptionNo()const
{
return promotionOptionNo_;
}
void UpdateBandwidthPackageRequest::setPromotionOptionNo(const std::string& promotionOptionNo)
{
promotionOptionNo_ = promotionOptionNo;
setParameter("PromotionOptionNo", promotionOptionNo);
}
int UpdateBandwidthPackageRequest::getBandwidth()const
{
return bandwidth_;
}
void UpdateBandwidthPackageRequest::setBandwidth(int bandwidth)
{
bandwidth_ = bandwidth;
setParameter("Bandwidth", std::to_string(bandwidth));
}
std::string UpdateBandwidthPackageRequest::getDescription()const
{
return description_;
}
void UpdateBandwidthPackageRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
bool UpdateBandwidthPackageRequest::getAutoUseCoupon()const
{
return autoUseCoupon_;
}
void UpdateBandwidthPackageRequest::setAutoUseCoupon(bool autoUseCoupon)
{
autoUseCoupon_ = autoUseCoupon;
setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false");
}
std::string UpdateBandwidthPackageRequest::getRegionId()const
{
return regionId_;
}
void UpdateBandwidthPackageRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string UpdateBandwidthPackageRequest::getName()const
{
return name_;
}
void UpdateBandwidthPackageRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/UpdateBandwidthPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ga;
using namespace AlibabaCloud::Ga::Model;
UpdateBandwidthPackageResult::UpdateBandwidthPackageResult() :
ServiceResult()
{}
UpdateBandwidthPackageResult::UpdateBandwidthPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateBandwidthPackageResult::~UpdateBandwidthPackageResult()
{}
void UpdateBandwidthPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["BandwidthPackage"].isNull())
bandwidthPackage_ = value["BandwidthPackage"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
}
std::string UpdateBandwidthPackageResult::getBandwidthPackage()const
{
return bandwidthPackage_;
}
std::string UpdateBandwidthPackageResult::getDescription()const
{
return description_;
}
std::string UpdateBandwidthPackageResult::getName()const
{
return name_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ga/model/UpdateEndpointGroupAttributeRequest.h>
using AlibabaCloud::Ga::Model::UpdateEndpointGroupAttributeRequest;
UpdateEndpointGroupAttributeRequest::UpdateEndpointGroupAttributeRequest() :
RpcServiceRequest("ga", "2019-11-20", "UpdateEndpointGroupAttribute")
{
setMethod(HttpRequest::Method::Post);
}
UpdateEndpointGroupAttributeRequest::~UpdateEndpointGroupAttributeRequest()
{}
std::string UpdateEndpointGroupAttributeRequest::getClientToken()const
{
return clientToken_;
}
void UpdateEndpointGroupAttributeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string UpdateEndpointGroupAttributeRequest::getDescription()const
{
return description_;
}
void UpdateEndpointGroupAttributeRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string UpdateEndpointGroupAttributeRequest::getRegionId()const
{
return regionId_;
}
void UpdateEndpointGroupAttributeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string UpdateEndpointGroupAttributeRequest::getName()const
{
return name_;
}
void UpdateEndpointGroupAttributeRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string UpdateEndpointGroupAttributeRequest::getEndpointGroupId()const
{
return endpointGroupId_;
}
void UpdateEndpointGroupAttributeRequest::setEndpointGroupId(const std::string& endpointGroupId)
{
endpointGroupId_ = endpointGroupId;
setParameter("EndpointGroupId", endpointGroupId);
}

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