First commit cdn module

This commit is contained in:
wb-flc318515
2018-01-10 11:09:04 +00:00
parent dfd76923de
commit 9bba7e2582
627 changed files with 55866 additions and 1 deletions

5641
cdn/src/CdnClient.cc Normal file

File diff suppressed because it is too large Load Diff

27
cdn/src/CdnRequest.cc Normal file
View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/CdnRequest.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Cdn;
CdnRequest::CdnRequest(const std::string & action) :
RpcServiceRequest("cdn", "2014-11-11", action)
{ }
CdnRequest::~CdnRequest()
{ }

View File

@@ -0,0 +1,204 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/AddCdnDomainRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
AddCdnDomainRequest::AddCdnDomainRequest() :
CdnRequest("AddCdnDomain")
{}
AddCdnDomainRequest::~AddCdnDomainRequest()
{}
std::string AddCdnDomainRequest::getTopLevelDomain()const
{
return topLevelDomain_;
}
void AddCdnDomainRequest::setTopLevelDomain(const std::string& topLevelDomain)
{
topLevelDomain_ = topLevelDomain;
setParameter("TopLevelDomain", topLevelDomain);
}
std::string AddCdnDomainRequest::getSources()const
{
return sources_;
}
void AddCdnDomainRequest::setSources(const std::string& sources)
{
sources_ = sources;
setParameter("Sources", sources);
}
std::string AddCdnDomainRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddCdnDomainRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddCdnDomainRequest::getDomainName()const
{
return domainName_;
}
void AddCdnDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string AddCdnDomainRequest::getLiveType()const
{
return liveType_;
}
void AddCdnDomainRequest::setLiveType(const std::string& liveType)
{
liveType_ = liveType;
setParameter("LiveType", liveType);
}
long AddCdnDomainRequest::getOwnerId()const
{
return ownerId_;
}
void AddCdnDomainRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddCdnDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddCdnDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddCdnDomainRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void AddCdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
int AddCdnDomainRequest::getSourcePort()const
{
return sourcePort_;
}
void AddCdnDomainRequest::setSourcePort(int sourcePort)
{
sourcePort_ = sourcePort;
setParameter("SourcePort", std::to_string(sourcePort));
}
std::string AddCdnDomainRequest::getPriorities()const
{
return priorities_;
}
void AddCdnDomainRequest::setPriorities(const std::string& priorities)
{
priorities_ = priorities;
setParameter("Priorities", priorities);
}
std::string AddCdnDomainRequest::getSecurityToken()const
{
return securityToken_;
}
void AddCdnDomainRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AddCdnDomainRequest::getCdnType()const
{
return cdnType_;
}
void AddCdnDomainRequest::setCdnType(const std::string& cdnType)
{
cdnType_ = cdnType;
setParameter("CdnType", cdnType);
}
std::string AddCdnDomainRequest::getScope()const
{
return scope_;
}
void AddCdnDomainRequest::setScope(const std::string& scope)
{
scope_ = scope;
setParameter("Scope", scope);
}
std::string AddCdnDomainRequest::getSourceType()const
{
return sourceType_;
}
void AddCdnDomainRequest::setSourceType(const std::string& sourceType)
{
sourceType_ = sourceType;
setParameter("SourceType", sourceType);
}
std::string AddCdnDomainRequest::getCheckUrl()const
{
return checkUrl_;
}
void AddCdnDomainRequest::setCheckUrl(const std::string& checkUrl)
{
checkUrl_ = checkUrl;
setParameter("CheckUrl", checkUrl);
}
std::string AddCdnDomainRequest::getRegion()const
{
return region_;
}
void AddCdnDomainRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}

View File

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

View File

@@ -0,0 +1,116 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/AddLiveAppRecordConfigRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
AddLiveAppRecordConfigRequest::AddLiveAppRecordConfigRequest() :
CdnRequest("AddLiveAppRecordConfig")
{}
AddLiveAppRecordConfigRequest::~AddLiveAppRecordConfigRequest()
{}
std::string AddLiveAppRecordConfigRequest::getOssBucket()const
{
return ossBucket_;
}
void AddLiveAppRecordConfigRequest::setOssBucket(const std::string& ossBucket)
{
ossBucket_ = ossBucket;
setParameter("OssBucket", ossBucket);
}
std::string AddLiveAppRecordConfigRequest::getAppName()const
{
return appName_;
}
void AddLiveAppRecordConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string AddLiveAppRecordConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void AddLiveAppRecordConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AddLiveAppRecordConfigRequest::getDomainName()const
{
return domainName_;
}
void AddLiveAppRecordConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string AddLiveAppRecordConfigRequest::getOssEndpoint()const
{
return ossEndpoint_;
}
void AddLiveAppRecordConfigRequest::setOssEndpoint(const std::string& ossEndpoint)
{
ossEndpoint_ = ossEndpoint;
setParameter("OssEndpoint", ossEndpoint);
}
std::string AddLiveAppRecordConfigRequest::getOssObjectPrefix()const
{
return ossObjectPrefix_;
}
void AddLiveAppRecordConfigRequest::setOssObjectPrefix(const std::string& ossObjectPrefix)
{
ossObjectPrefix_ = ossObjectPrefix;
setParameter("OssObjectPrefix", ossObjectPrefix);
}
long AddLiveAppRecordConfigRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveAppRecordConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveAppRecordConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddLiveAppRecordConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,138 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/AddLiveAppSnapshotConfigRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
AddLiveAppSnapshotConfigRequest::AddLiveAppSnapshotConfigRequest() :
CdnRequest("AddLiveAppSnapshotConfig")
{}
AddLiveAppSnapshotConfigRequest::~AddLiveAppSnapshotConfigRequest()
{}
int AddLiveAppSnapshotConfigRequest::getTimeInterval()const
{
return timeInterval_;
}
void AddLiveAppSnapshotConfigRequest::setTimeInterval(int timeInterval)
{
timeInterval_ = timeInterval;
setParameter("TimeInterval", std::to_string(timeInterval));
}
std::string AddLiveAppSnapshotConfigRequest::getOssBucket()const
{
return ossBucket_;
}
void AddLiveAppSnapshotConfigRequest::setOssBucket(const std::string& ossBucket)
{
ossBucket_ = ossBucket;
setParameter("OssBucket", ossBucket);
}
std::string AddLiveAppSnapshotConfigRequest::getAppName()const
{
return appName_;
}
void AddLiveAppSnapshotConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string AddLiveAppSnapshotConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void AddLiveAppSnapshotConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AddLiveAppSnapshotConfigRequest::getDomainName()const
{
return domainName_;
}
void AddLiveAppSnapshotConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string AddLiveAppSnapshotConfigRequest::getOssEndpoint()const
{
return ossEndpoint_;
}
void AddLiveAppSnapshotConfigRequest::setOssEndpoint(const std::string& ossEndpoint)
{
ossEndpoint_ = ossEndpoint;
setParameter("OssEndpoint", ossEndpoint);
}
std::string AddLiveAppSnapshotConfigRequest::getSequenceOssObject()const
{
return sequenceOssObject_;
}
void AddLiveAppSnapshotConfigRequest::setSequenceOssObject(const std::string& sequenceOssObject)
{
sequenceOssObject_ = sequenceOssObject;
setParameter("SequenceOssObject", sequenceOssObject);
}
std::string AddLiveAppSnapshotConfigRequest::getOverwriteOssObject()const
{
return overwriteOssObject_;
}
void AddLiveAppSnapshotConfigRequest::setOverwriteOssObject(const std::string& overwriteOssObject)
{
overwriteOssObject_ = overwriteOssObject;
setParameter("OverwriteOssObject", overwriteOssObject);
}
long AddLiveAppSnapshotConfigRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveAppSnapshotConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveAppSnapshotConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddLiveAppSnapshotConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/AddLiveDomainMappingRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
AddLiveDomainMappingRequest::AddLiveDomainMappingRequest() :
CdnRequest("AddLiveDomainMapping")
{}
AddLiveDomainMappingRequest::~AddLiveDomainMappingRequest()
{}
std::string AddLiveDomainMappingRequest::getPullDomain()const
{
return pullDomain_;
}
void AddLiveDomainMappingRequest::setPullDomain(const std::string& pullDomain)
{
pullDomain_ = pullDomain;
setParameter("PullDomain", pullDomain);
}
std::string AddLiveDomainMappingRequest::getSecurityToken()const
{
return securityToken_;
}
void AddLiveDomainMappingRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AddLiveDomainMappingRequest::getPushDomain()const
{
return pushDomain_;
}
void AddLiveDomainMappingRequest::setPushDomain(const std::string& pushDomain)
{
pushDomain_ = pushDomain;
setParameter("PushDomain", pushDomain);
}
long AddLiveDomainMappingRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveDomainMappingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveDomainMappingRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddLiveDomainMappingRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,127 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/AddLivePullStreamInfoRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
AddLivePullStreamInfoRequest::AddLivePullStreamInfoRequest() :
CdnRequest("AddLivePullStreamInfo")
{}
AddLivePullStreamInfoRequest::~AddLivePullStreamInfoRequest()
{}
std::string AddLivePullStreamInfoRequest::getSourceUrl()const
{
return sourceUrl_;
}
void AddLivePullStreamInfoRequest::setSourceUrl(const std::string& sourceUrl)
{
sourceUrl_ = sourceUrl;
setParameter("SourceUrl", sourceUrl);
}
std::string AddLivePullStreamInfoRequest::getAppName()const
{
return appName_;
}
void AddLivePullStreamInfoRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string AddLivePullStreamInfoRequest::getSecurityToken()const
{
return securityToken_;
}
void AddLivePullStreamInfoRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AddLivePullStreamInfoRequest::getDomainName()const
{
return domainName_;
}
void AddLivePullStreamInfoRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string AddLivePullStreamInfoRequest::getEndTime()const
{
return endTime_;
}
void AddLivePullStreamInfoRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string AddLivePullStreamInfoRequest::getStartTime()const
{
return startTime_;
}
void AddLivePullStreamInfoRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long AddLivePullStreamInfoRequest::getOwnerId()const
{
return ownerId_;
}
void AddLivePullStreamInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLivePullStreamInfoRequest::getStreamName()const
{
return streamName_;
}
void AddLivePullStreamInfoRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string AddLivePullStreamInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddLivePullStreamInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,127 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/AddLiveStreamTranscodeRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
AddLiveStreamTranscodeRequest::AddLiveStreamTranscodeRequest() :
CdnRequest("AddLiveStreamTranscode")
{}
AddLiveStreamTranscodeRequest::~AddLiveStreamTranscodeRequest()
{}
std::string AddLiveStreamTranscodeRequest::get_Template()const
{
return _template_;
}
void AddLiveStreamTranscodeRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
std::string AddLiveStreamTranscodeRequest::getApp()const
{
return app_;
}
void AddLiveStreamTranscodeRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string AddLiveStreamTranscodeRequest::getSecurityToken()const
{
return securityToken_;
}
void AddLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AddLiveStreamTranscodeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddLiveStreamTranscodeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddLiveStreamTranscodeRequest::getDomain()const
{
return domain_;
}
void AddLiveStreamTranscodeRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string AddLiveStreamTranscodeRequest::getRecord()const
{
return record_;
}
void AddLiveStreamTranscodeRequest::setRecord(const std::string& record)
{
record_ = record;
setParameter("Record", record);
}
long AddLiveStreamTranscodeRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveStreamTranscodeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveStreamTranscodeRequest::getSnapshot()const
{
return snapshot_;
}
void AddLiveStreamTranscodeRequest::setSnapshot(const std::string& snapshot)
{
snapshot_ = snapshot;
setParameter("Snapshot", snapshot);
}
std::string AddLiveStreamTranscodeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddLiveStreamTranscodeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,325 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/BatchDescribeDomainBpsDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
BatchDescribeDomainBpsDataRequest::BatchDescribeDomainBpsDataRequest() :
CdnRequest("BatchDescribeDomainBpsData")
{}
BatchDescribeDomainBpsDataRequest::~BatchDescribeDomainBpsDataRequest()
{}
long BatchDescribeDomainBpsDataRequest::getCallerParentId()const
{
return callerParentId_;
}
void BatchDescribeDomainBpsDataRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool BatchDescribeDomainBpsDataRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void BatchDescribeDomainBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string BatchDescribeDomainBpsDataRequest::getStartTime()const
{
return startTime_;
}
void BatchDescribeDomainBpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string BatchDescribeDomainBpsDataRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void BatchDescribeDomainBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string BatchDescribeDomainBpsDataRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void BatchDescribeDomainBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string BatchDescribeDomainBpsDataRequest::getCallerType()const
{
return callerType_;
}
void BatchDescribeDomainBpsDataRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
int BatchDescribeDomainBpsDataRequest::getPageNumber()const
{
return pageNumber_;
}
void BatchDescribeDomainBpsDataRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string BatchDescribeDomainBpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BatchDescribeDomainBpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string BatchDescribeDomainBpsDataRequest::getSecurityToken()const
{
return securityToken_;
}
void BatchDescribeDomainBpsDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string BatchDescribeDomainBpsDataRequest::getRequestContent()const
{
return requestContent_;
}
void BatchDescribeDomainBpsDataRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
int BatchDescribeDomainBpsDataRequest::getPageSize()const
{
return pageSize_;
}
void BatchDescribeDomainBpsDataRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string BatchDescribeDomainBpsDataRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void BatchDescribeDomainBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string BatchDescribeDomainBpsDataRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void BatchDescribeDomainBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long BatchDescribeDomainBpsDataRequest::getCallerUid()const
{
return callerUid_;
}
void BatchDescribeDomainBpsDataRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string BatchDescribeDomainBpsDataRequest::getApp_ip()const
{
return app_ip_;
}
void BatchDescribeDomainBpsDataRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string BatchDescribeDomainBpsDataRequest::getProduct()const
{
return product_;
}
void BatchDescribeDomainBpsDataRequest::setProduct(const std::string& product)
{
product_ = product;
setParameter("Product", product);
}
std::string BatchDescribeDomainBpsDataRequest::getDomainName()const
{
return domainName_;
}
void BatchDescribeDomainBpsDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string BatchDescribeDomainBpsDataRequest::getEndTime()const
{
return endTime_;
}
void BatchDescribeDomainBpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string BatchDescribeDomainBpsDataRequest::getCallerBid()const
{
return callerBid_;
}
void BatchDescribeDomainBpsDataRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
std::string BatchDescribeDomainBpsDataRequest::getCls()const
{
return cls_;
}
void BatchDescribeDomainBpsDataRequest::setCls(const std::string& cls)
{
cls_ = cls;
setParameter("Cls", cls);
}
long BatchDescribeDomainBpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void BatchDescribeDomainBpsDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string BatchDescribeDomainBpsDataRequest::getVersion()const
{
return version_;
}
void BatchDescribeDomainBpsDataRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
bool BatchDescribeDomainBpsDataRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void BatchDescribeDomainBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool BatchDescribeDomainBpsDataRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void BatchDescribeDomainBpsDataRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool BatchDescribeDomainBpsDataRequest::getSecurity_transport()const
{
return security_transport_;
}
void BatchDescribeDomainBpsDataRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string BatchDescribeDomainBpsDataRequest::getRequestId()const
{
return requestId_;
}
void BatchDescribeDomainBpsDataRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string BatchDescribeDomainBpsDataRequest::getWithTotalCount()const
{
return withTotalCount_;
}
void BatchDescribeDomainBpsDataRequest::setWithTotalCount(const std::string& withTotalCount)
{
withTotalCount_ = withTotalCount;
setParameter("WithTotalCount", withTotalCount);
}

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/cdn/model/BatchDescribeDomainBpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
BatchDescribeDomainBpsDataResult::BatchDescribeDomainBpsDataResult() :
ServiceResult()
{}
BatchDescribeDomainBpsDataResult::BatchDescribeDomainBpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BatchDescribeDomainBpsDataResult::~BatchDescribeDomainBpsDataResult()
{}
void BatchDescribeDomainBpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBpsDatas = value["BpsDatas"]["DataModule"];
for (auto value : allBpsDatas)
{
DataModule dataModuleObject;
dataModuleObject.timestamp = value["Timestamp"].asString();
dataModuleObject.l1Bps = std::stof(value["L1Bps"].asString());
dataModuleObject.l1InnerBps = std::stof(value["L1InnerBps"].asString());
dataModuleObject.l1OutBps = std::stof(value["L1OutBps"].asString());
dataModuleObject.domainName = value["DomainName"].asString();
bpsDatas_.push_back(dataModuleObject);
}
pageNumber_ = std::stoi(value["PageNumber"].asString());
pageSize_ = std::stoi(value["PageSize"].asString());
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int BatchDescribeDomainBpsDataResult::getTotalCount()const
{
return totalCount_;
}
void BatchDescribeDomainBpsDataResult::setTotalCount(int totalCount)
{
totalCount_ = totalCount;
}
int BatchDescribeDomainBpsDataResult::getPageSize()const
{
return pageSize_;
}
void BatchDescribeDomainBpsDataResult::setPageSize(int pageSize)
{
pageSize_ = pageSize;
}
int BatchDescribeDomainBpsDataResult::getPageNumber()const
{
return pageNumber_;
}
void BatchDescribeDomainBpsDataResult::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/ClearUserBlackListRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
ClearUserBlackListRequest::ClearUserBlackListRequest() :
CdnRequest("ClearUserBlackList")
{}
ClearUserBlackListRequest::~ClearUserBlackListRequest()
{}
std::string ClearUserBlackListRequest::getSecurityToken()const
{
return securityToken_;
}
void ClearUserBlackListRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string ClearUserBlackListRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ClearUserBlackListRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ClearUserBlackListRequest::getOwnerId()const
{
return ownerId_;
}
void ClearUserBlackListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ClearUserBlackListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ClearUserBlackListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/ClearUserDomainBlackListRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
ClearUserDomainBlackListRequest::ClearUserDomainBlackListRequest() :
CdnRequest("ClearUserDomainBlackList")
{}
ClearUserDomainBlackListRequest::~ClearUserDomainBlackListRequest()
{}
std::string ClearUserDomainBlackListRequest::getSecurityToken()const
{
return securityToken_;
}
void ClearUserDomainBlackListRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string ClearUserDomainBlackListRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ClearUserDomainBlackListRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string ClearUserDomainBlackListRequest::getDomainName()const
{
return domainName_;
}
void ClearUserDomainBlackListRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long ClearUserDomainBlackListRequest::getOwnerId()const
{
return ownerId_;
}
void ClearUserDomainBlackListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ClearUserDomainBlackListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ClearUserDomainBlackListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,149 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/CreateLiveStreamRecordIndexFilesRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
CreateLiveStreamRecordIndexFilesRequest::CreateLiveStreamRecordIndexFilesRequest() :
CdnRequest("CreateLiveStreamRecordIndexFiles")
{}
CreateLiveStreamRecordIndexFilesRequest::~CreateLiveStreamRecordIndexFilesRequest()
{}
std::string CreateLiveStreamRecordIndexFilesRequest::getOssBucket()const
{
return ossBucket_;
}
void CreateLiveStreamRecordIndexFilesRequest::setOssBucket(const std::string& ossBucket)
{
ossBucket_ = ossBucket;
setParameter("OssBucket", ossBucket);
}
std::string CreateLiveStreamRecordIndexFilesRequest::getAppName()const
{
return appName_;
}
void CreateLiveStreamRecordIndexFilesRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string CreateLiveStreamRecordIndexFilesRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateLiveStreamRecordIndexFilesRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string CreateLiveStreamRecordIndexFilesRequest::getDomainName()const
{
return domainName_;
}
void CreateLiveStreamRecordIndexFilesRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string CreateLiveStreamRecordIndexFilesRequest::getOssEndpoint()const
{
return ossEndpoint_;
}
void CreateLiveStreamRecordIndexFilesRequest::setOssEndpoint(const std::string& ossEndpoint)
{
ossEndpoint_ = ossEndpoint;
setParameter("OssEndpoint", ossEndpoint);
}
std::string CreateLiveStreamRecordIndexFilesRequest::getEndTime()const
{
return endTime_;
}
void CreateLiveStreamRecordIndexFilesRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string CreateLiveStreamRecordIndexFilesRequest::getStartTime()const
{
return startTime_;
}
void CreateLiveStreamRecordIndexFilesRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long CreateLiveStreamRecordIndexFilesRequest::getOwnerId()const
{
return ownerId_;
}
void CreateLiveStreamRecordIndexFilesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateLiveStreamRecordIndexFilesRequest::getStreamName()const
{
return streamName_;
}
void CreateLiveStreamRecordIndexFilesRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string CreateLiveStreamRecordIndexFilesRequest::getOssObject()const
{
return ossObject_;
}
void CreateLiveStreamRecordIndexFilesRequest::setOssObject(const std::string& ossObject)
{
ossObject_ = ossObject;
setParameter("OssObject", ossObject);
}
std::string CreateLiveStreamRecordIndexFilesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateLiveStreamRecordIndexFilesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/CreateLiveStreamRecordIndexFilesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
CreateLiveStreamRecordIndexFilesResult::CreateLiveStreamRecordIndexFilesResult() :
ServiceResult()
{}
CreateLiveStreamRecordIndexFilesResult::CreateLiveStreamRecordIndexFilesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLiveStreamRecordIndexFilesResult::~CreateLiveStreamRecordIndexFilesResult()
{}
void CreateLiveStreamRecordIndexFilesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordInfo = value["RecordInfo"];
for (auto value : allRecordInfo)
{
RecordInfo recordInfoObject;
recordInfoObject.recordId = value["RecordId"].asString();
recordInfoObject.recordUrl = value["RecordUrl"].asString();
recordInfoObject.duration = std::stof(value["Duration"].asString());
recordInfoObject.height = std::stoi(value["Height"].asString());
recordInfoObject.width = std::stoi(value["Width"].asString());
recordInfoObject.createTime = value["CreateTime"].asString();
recordInfo_.push_back(recordInfoObject);
}
}

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DeleteCdnDomainRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DeleteCdnDomainRequest::DeleteCdnDomainRequest() :
CdnRequest("DeleteCdnDomain")
{}
DeleteCdnDomainRequest::~DeleteCdnDomainRequest()
{}
std::string DeleteCdnDomainRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DeleteCdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DeleteCdnDomainRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteCdnDomainRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteCdnDomainRequest::getDomainName()const
{
return domainName_;
}
void DeleteCdnDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteCdnDomainRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCdnDomainRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteCdnDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteCdnDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DeleteHttpHeaderConfigRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DeleteHttpHeaderConfigRequest::DeleteHttpHeaderConfigRequest() :
CdnRequest("DeleteHttpHeaderConfig")
{}
DeleteHttpHeaderConfigRequest::~DeleteHttpHeaderConfigRequest()
{}
std::string DeleteHttpHeaderConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteHttpHeaderConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteHttpHeaderConfigRequest::getConfigID()const
{
return configID_;
}
void DeleteHttpHeaderConfigRequest::setConfigID(const std::string& configID)
{
configID_ = configID;
setParameter("ConfigID", configID);
}
std::string DeleteHttpHeaderConfigRequest::getDomainName()const
{
return domainName_;
}
void DeleteHttpHeaderConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteHttpHeaderConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteHttpHeaderConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteHttpHeaderConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteHttpHeaderConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DeleteLiveAppRecordConfigRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DeleteLiveAppRecordConfigRequest::DeleteLiveAppRecordConfigRequest() :
CdnRequest("DeleteLiveAppRecordConfig")
{}
DeleteLiveAppRecordConfigRequest::~DeleteLiveAppRecordConfigRequest()
{}
std::string DeleteLiveAppRecordConfigRequest::getAppName()const
{
return appName_;
}
void DeleteLiveAppRecordConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string DeleteLiveAppRecordConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLiveAppRecordConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteLiveAppRecordConfigRequest::getDomainName()const
{
return domainName_;
}
void DeleteLiveAppRecordConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteLiveAppRecordConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveAppRecordConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveAppRecordConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteLiveAppRecordConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DeleteLiveAppSnapshotConfigRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DeleteLiveAppSnapshotConfigRequest::DeleteLiveAppSnapshotConfigRequest() :
CdnRequest("DeleteLiveAppSnapshotConfig")
{}
DeleteLiveAppSnapshotConfigRequest::~DeleteLiveAppSnapshotConfigRequest()
{}
std::string DeleteLiveAppSnapshotConfigRequest::getAppName()const
{
return appName_;
}
void DeleteLiveAppSnapshotConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string DeleteLiveAppSnapshotConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLiveAppSnapshotConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteLiveAppSnapshotConfigRequest::getDomainName()const
{
return domainName_;
}
void DeleteLiveAppSnapshotConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteLiveAppSnapshotConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveAppSnapshotConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveAppSnapshotConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteLiveAppSnapshotConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DeleteLiveDomainMappingRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DeleteLiveDomainMappingRequest::DeleteLiveDomainMappingRequest() :
CdnRequest("DeleteLiveDomainMapping")
{}
DeleteLiveDomainMappingRequest::~DeleteLiveDomainMappingRequest()
{}
std::string DeleteLiveDomainMappingRequest::getPullDomain()const
{
return pullDomain_;
}
void DeleteLiveDomainMappingRequest::setPullDomain(const std::string& pullDomain)
{
pullDomain_ = pullDomain;
setParameter("PullDomain", pullDomain);
}
std::string DeleteLiveDomainMappingRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLiveDomainMappingRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteLiveDomainMappingRequest::getPushDomain()const
{
return pushDomain_;
}
void DeleteLiveDomainMappingRequest::setPushDomain(const std::string& pushDomain)
{
pushDomain_ = pushDomain;
setParameter("PushDomain", pushDomain);
}
long DeleteLiveDomainMappingRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveDomainMappingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveDomainMappingRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteLiveDomainMappingRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

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/cdn/model/DeleteLivePullStreamInfoRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DeleteLivePullStreamInfoRequest::DeleteLivePullStreamInfoRequest() :
CdnRequest("DeleteLivePullStreamInfo")
{}
DeleteLivePullStreamInfoRequest::~DeleteLivePullStreamInfoRequest()
{}
std::string DeleteLivePullStreamInfoRequest::getAppName()const
{
return appName_;
}
void DeleteLivePullStreamInfoRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string DeleteLivePullStreamInfoRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLivePullStreamInfoRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteLivePullStreamInfoRequest::getDomainName()const
{
return domainName_;
}
void DeleteLivePullStreamInfoRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteLivePullStreamInfoRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLivePullStreamInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLivePullStreamInfoRequest::getStreamName()const
{
return streamName_;
}
void DeleteLivePullStreamInfoRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string DeleteLivePullStreamInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteLivePullStreamInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DeleteLiveStreamTranscodeRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DeleteLiveStreamTranscodeRequest::DeleteLiveStreamTranscodeRequest() :
CdnRequest("DeleteLiveStreamTranscode")
{}
DeleteLiveStreamTranscodeRequest::~DeleteLiveStreamTranscodeRequest()
{}
std::string DeleteLiveStreamTranscodeRequest::get_Template()const
{
return _template_;
}
void DeleteLiveStreamTranscodeRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
std::string DeleteLiveStreamTranscodeRequest::getApp()const
{
return app_;
}
void DeleteLiveStreamTranscodeRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string DeleteLiveStreamTranscodeRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteLiveStreamTranscodeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteLiveStreamTranscodeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteLiveStreamTranscodeRequest::getDomain()const
{
return domain_;
}
void DeleteLiveStreamTranscodeRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
long DeleteLiveStreamTranscodeRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveStreamTranscodeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveStreamTranscodeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteLiveStreamTranscodeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnDomainBaseDetailRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnDomainBaseDetailRequest::DescribeCdnDomainBaseDetailRequest() :
CdnRequest("DescribeCdnDomainBaseDetail")
{}
DescribeCdnDomainBaseDetailRequest::~DescribeCdnDomainBaseDetailRequest()
{}
std::string DescribeCdnDomainBaseDetailRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeCdnDomainBaseDetailRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeCdnDomainBaseDetailRequest::getDomainName()const
{
return domainName_;
}
void DescribeCdnDomainBaseDetailRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeCdnDomainBaseDetailRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnDomainBaseDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnDomainBaseDetailRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeCdnDomainBaseDetailRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnDomainBaseDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnDomainBaseDetailResult::DescribeCdnDomainBaseDetailResult() :
ServiceResult()
{}
DescribeCdnDomainBaseDetailResult::DescribeCdnDomainBaseDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnDomainBaseDetailResult::~DescribeCdnDomainBaseDetailResult()
{}
void DescribeCdnDomainBaseDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainBaseDetailModel = value["DomainBaseDetailModel"];
for (auto value : allDomainBaseDetailModel)
{
DomainBaseDetailModel domainBaseDetailModelObject;
domainBaseDetailModelObject.cname = value["Cname"].asString();
domainBaseDetailModelObject.cdnType = value["CdnType"].asString();
domainBaseDetailModelObject.domainStatus = value["DomainStatus"].asString();
domainBaseDetailModelObject.sourceType = value["SourceType"].asString();
domainBaseDetailModelObject.region = value["Region"].asString();
domainBaseDetailModelObject.domainName = value["DomainName"].asString();
domainBaseDetailModelObject.remark = value["Remark"].asString();
domainBaseDetailModelObject.gmtModified = value["GmtModified"].asString();
domainBaseDetailModelObject.gmtCreated = value["GmtCreated"].asString();
auto allSources = value["Sources"]["Source"];
for (auto value : allSources)
domainBaseDetailModelObject.sources.push_back(value.asString());
domainBaseDetailModel_.push_back(domainBaseDetailModelObject);
}
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnDomainDetailRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnDomainDetailRequest::DescribeCdnDomainDetailRequest() :
CdnRequest("DescribeCdnDomainDetail")
{}
DescribeCdnDomainDetailRequest::~DescribeCdnDomainDetailRequest()
{}
std::string DescribeCdnDomainDetailRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeCdnDomainDetailRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeCdnDomainDetailRequest::getDomainName()const
{
return domainName_;
}
void DescribeCdnDomainDetailRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeCdnDomainDetailRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnDomainDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnDomainDetailRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeCdnDomainDetailRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnDomainDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnDomainDetailResult::DescribeCdnDomainDetailResult() :
ServiceResult()
{}
DescribeCdnDomainDetailResult::DescribeCdnDomainDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnDomainDetailResult::~DescribeCdnDomainDetailResult()
{}
void DescribeCdnDomainDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGetDomainDetailModel = value["GetDomainDetailModel"];
for (auto value : allGetDomainDetailModel)
{
GetDomainDetailModel getDomainDetailModelObject;
getDomainDetailModelObject.gmtCreated = value["GmtCreated"].asString();
getDomainDetailModelObject.gmtModified = value["GmtModified"].asString();
getDomainDetailModelObject.sourceType = value["SourceType"].asString();
getDomainDetailModelObject.domainStatus = value["DomainStatus"].asString();
getDomainDetailModelObject.sourcePort = std::stoi(value["SourcePort"].asString());
getDomainDetailModelObject.cdnType = value["CdnType"].asString();
getDomainDetailModelObject.cname = value["Cname"].asString();
getDomainDetailModelObject.httpsCname = value["HttpsCname"].asString();
getDomainDetailModelObject.domainName = value["DomainName"].asString();
getDomainDetailModelObject.description = value["Description"].asString();
getDomainDetailModelObject.serverCertificateStatus = value["ServerCertificateStatus"].asString();
getDomainDetailModelObject.serverCertificate = value["ServerCertificate"].asString();
getDomainDetailModelObject.region = value["Region"].asString();
getDomainDetailModelObject.scope = value["Scope"].asString();
getDomainDetailModelObject.certificateName = value["CertificateName"].asString();
getDomainDetailModelObject.resourceGroupId = value["ResourceGroupId"].asString();
auto allSourceModels = value["SourceModels"]["SourceModel"];
for (auto value : allSourceModels)
{
GetDomainDetailModel::SourceModel sourceModelObject;
sourceModelObject.content = value["Content"].asString();
sourceModelObject.type = value["Type"].asString();
sourceModelObject.port = std::stoi(value["Port"].asString());
sourceModelObject.enabled = value["Enabled"].asString();
sourceModelObject.priority = value["Priority"].asString();
getDomainDetailModelObject.sourceModels.push_back(sourceModelObject);
}
auto allSources = value["Sources"]["Source"];
for (auto value : allSources)
getDomainDetailModelObject.sources.push_back(value.asString());
getDomainDetailModel_.push_back(getDomainDetailModelObject);
}
}

View File

@@ -0,0 +1,127 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnDomainLogsRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnDomainLogsRequest::DescribeCdnDomainLogsRequest() :
CdnRequest("DescribeCdnDomainLogs")
{}
DescribeCdnDomainLogsRequest::~DescribeCdnDomainLogsRequest()
{}
std::string DescribeCdnDomainLogsRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeCdnDomainLogsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeCdnDomainLogsRequest::getDomainName()const
{
return domainName_;
}
void DescribeCdnDomainLogsRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeCdnDomainLogsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeCdnDomainLogsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeCdnDomainLogsRequest::getEndTime()const
{
return endTime_;
}
void DescribeCdnDomainLogsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeCdnDomainLogsRequest::getStartTime()const
{
return startTime_;
}
void DescribeCdnDomainLogsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeCdnDomainLogsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnDomainLogsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long DescribeCdnDomainLogsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeCdnDomainLogsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeCdnDomainLogsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeCdnDomainLogsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeCdnDomainLogsRequest::getLogDay()const
{
return logDay_;
}
void DescribeCdnDomainLogsRequest::setLogDay(const std::string& logDay)
{
logDay_ = logDay;
setParameter("LogDay", logDay);
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnDomainLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnDomainLogsResult::DescribeCdnDomainLogsResult() :
ServiceResult()
{}
DescribeCdnDomainLogsResult::DescribeCdnDomainLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnDomainLogsResult::~DescribeCdnDomainLogsResult()
{}
void DescribeCdnDomainLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainLogModel = value["DomainLogModel"];
for (auto value : allDomainLogModel)
{
DomainLogModel domainLogModelObject;
domainLogModelObject.domainName = value["DomainName"].asString();
auto allDomainLogDetails = value["DomainLogDetails"]["DomainLogDetail"];
for (auto value : allDomainLogDetails)
{
DomainLogModel::DomainLogDetail domainLogDetailObject;
domainLogDetailObject.logName = value["LogName"].asString();
domainLogDetailObject.logPath = value["LogPath"].asString();
domainLogDetailObject.logSize = std::stol(value["LogSize"].asString());
domainLogDetailObject.startTime = value["StartTime"].asString();
domainLogDetailObject.endTime = value["EndTime"].asString();
domainLogModelObject.domainLogDetails.push_back(domainLogDetailObject);
}
domainLogModel_.push_back(domainLogModelObject);
}
pageNumber_ = std::stol(value["PageNumber"].asString());
pageSize_ = std::stol(value["PageSize"].asString());
totalCount_ = std::stol(value["TotalCount"].asString());
}
long DescribeCdnDomainLogsResult::getTotalCount()const
{
return totalCount_;
}
void DescribeCdnDomainLogsResult::setTotalCount(long totalCount)
{
totalCount_ = totalCount;
}
long DescribeCdnDomainLogsResult::getPageSize()const
{
return pageSize_;
}
void DescribeCdnDomainLogsResult::setPageSize(long pageSize)
{
pageSize_ = pageSize;
}
long DescribeCdnDomainLogsResult::getPageNumber()const
{
return pageNumber_;
}
void DescribeCdnDomainLogsResult::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnMonitorDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnMonitorDataRequest::DescribeCdnMonitorDataRequest() :
CdnRequest("DescribeCdnMonitorData")
{}
DescribeCdnMonitorDataRequest::~DescribeCdnMonitorDataRequest()
{}
std::string DescribeCdnMonitorDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeCdnMonitorDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeCdnMonitorDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeCdnMonitorDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeCdnMonitorDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeCdnMonitorDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeCdnMonitorDataRequest::getInterval()const
{
return interval_;
}
void DescribeCdnMonitorDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}
std::string DescribeCdnMonitorDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeCdnMonitorDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeCdnMonitorDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnMonitorDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnMonitorDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeCdnMonitorDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,101 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnMonitorDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnMonitorDataResult::DescribeCdnMonitorDataResult() :
ServiceResult()
{}
DescribeCdnMonitorDataResult::DescribeCdnMonitorDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnMonitorDataResult::~DescribeCdnMonitorDataResult()
{}
void DescribeCdnMonitorDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMonitorDatas = value["MonitorDatas"]["CDNMonitorData"];
for (auto value : allMonitorDatas)
{
CDNMonitorData cDNMonitorDataObject;
cDNMonitorDataObject.timeStamp = value["TimeStamp"].asString();
cDNMonitorDataObject.queryPerSecond = value["QueryPerSecond"].asString();
cDNMonitorDataObject.bytesPerSecond = value["BytesPerSecond"].asString();
cDNMonitorDataObject.bytesHitRate = value["BytesHitRate"].asString();
cDNMonitorDataObject.requestHitRate = value["RequestHitRate"].asString();
cDNMonitorDataObject.averageObjectSize = value["AverageObjectSize"].asString();
monitorDatas_.push_back(cDNMonitorDataObject);
}
domainName_ = value["DomainName"].asString();
monitorInterval_ = std::stol(value["MonitorInterval"].asString());
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
long DescribeCdnMonitorDataResult::getMonitorInterval()const
{
return monitorInterval_;
}
void DescribeCdnMonitorDataResult::setMonitorInterval(long monitorInterval)
{
monitorInterval_ = monitorInterval;
}
std::string DescribeCdnMonitorDataResult::getEndTime()const
{
return endTime_;
}
void DescribeCdnMonitorDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeCdnMonitorDataResult::getDomainName()const
{
return domainName_;
}
void DescribeCdnMonitorDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeCdnMonitorDataResult::getStartTime()const
{
return startTime_;
}
void DescribeCdnMonitorDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnRegionAndIspRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnRegionAndIspRequest::DescribeCdnRegionAndIspRequest() :
CdnRequest("DescribeCdnRegionAndIsp")
{}
DescribeCdnRegionAndIspRequest::~DescribeCdnRegionAndIspRequest()
{}
std::string DescribeCdnRegionAndIspRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeCdnRegionAndIspRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
long DescribeCdnRegionAndIspRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnRegionAndIspRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnRegionAndIspRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeCdnRegionAndIspRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnServiceRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnServiceRequest::DescribeCdnServiceRequest() :
CdnRequest("DescribeCdnService")
{}
DescribeCdnServiceRequest::~DescribeCdnServiceRequest()
{}
std::string DescribeCdnServiceRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeCdnServiceRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
long DescribeCdnServiceRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnServiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnServiceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeCdnServiceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,107 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnServiceResult::DescribeCdnServiceResult() :
ServiceResult()
{}
DescribeCdnServiceResult::DescribeCdnServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnServiceResult::~DescribeCdnServiceResult()
{}
void DescribeCdnServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOperationLocks = value["OperationLocks"]["LockReason"];
for (auto value : allOperationLocks)
{
LockReason lockReasonObject;
lockReasonObject.lockReason = value["LockReason"].asString();
operationLocks_.push_back(lockReasonObject);
}
instanceId_ = value["InstanceId"].asString();
internetChargeType_ = value["InternetChargeType"].asString();
openingTime_ = value["OpeningTime"].asString();
changingChargeType_ = value["ChangingChargeType"].asString();
changingAffectTime_ = value["ChangingAffectTime"].asString();
}
std::string DescribeCdnServiceResult::getChangingChargeType()const
{
return changingChargeType_;
}
void DescribeCdnServiceResult::setChangingChargeType(const std::string& changingChargeType)
{
changingChargeType_ = changingChargeType;
}
std::string DescribeCdnServiceResult::getInstanceId()const
{
return instanceId_;
}
void DescribeCdnServiceResult::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
}
std::string DescribeCdnServiceResult::getOpeningTime()const
{
return openingTime_;
}
void DescribeCdnServiceResult::setOpeningTime(const std::string& openingTime)
{
openingTime_ = openingTime;
}
std::string DescribeCdnServiceResult::getChangingAffectTime()const
{
return changingAffectTime_;
}
void DescribeCdnServiceResult::setChangingAffectTime(const std::string& changingAffectTime)
{
changingAffectTime_ = changingAffectTime;
}
std::string DescribeCdnServiceResult::getInternetChargeType()const
{
return internetChargeType_;
}
void DescribeCdnServiceResult::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeCdnTypesRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnTypesRequest::DescribeCdnTypesRequest() :
CdnRequest("DescribeCdnTypes")
{}
DescribeCdnTypesRequest::~DescribeCdnTypesRequest()
{}
std::string DescribeCdnTypesRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeCdnTypesRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeCdnTypesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeCdnTypesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeCdnTypesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnTypesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnTypesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeCdnTypesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeCdnTypesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnTypesResult::DescribeCdnTypesResult() :
ServiceResult()
{}
DescribeCdnTypesResult::DescribeCdnTypesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnTypesResult::~DescribeCdnTypesResult()
{}
void DescribeCdnTypesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCdnTypes = value["CdnTypes"]["CdnType"];
for (auto value : allCdnTypes)
{
CdnType cdnTypeObject;
cdnTypeObject.type = value["Type"].asString();
cdnTypeObject.desc = value["Desc"].asString();
cdnTypes_.push_back(cdnTypeObject);
}
}

View File

@@ -0,0 +1,116 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainAverageResponseTimeRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainAverageResponseTimeRequest::DescribeDomainAverageResponseTimeRequest() :
CdnRequest("DescribeDomainAverageResponseTime")
{}
DescribeDomainAverageResponseTimeRequest::~DescribeDomainAverageResponseTimeRequest()
{}
std::string DescribeDomainAverageResponseTimeRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainAverageResponseTimeRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainAverageResponseTimeRequest::getTimeMerge()const
{
return timeMerge_;
}
void DescribeDomainAverageResponseTimeRequest::setTimeMerge(const std::string& timeMerge)
{
timeMerge_ = timeMerge;
setParameter("TimeMerge", timeMerge);
}
std::string DescribeDomainAverageResponseTimeRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainAverageResponseTimeRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainAverageResponseTimeRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainAverageResponseTimeRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainAverageResponseTimeRequest::getInterval()const
{
return interval_;
}
void DescribeDomainAverageResponseTimeRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}
std::string DescribeDomainAverageResponseTimeRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainAverageResponseTimeRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainAverageResponseTimeRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainAverageResponseTimeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainAverageResponseTimeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainAverageResponseTimeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainAverageResponseTimeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainAverageResponseTimeResult::DescribeDomainAverageResponseTimeResult() :
ServiceResult()
{}
DescribeDomainAverageResponseTimeResult::DescribeDomainAverageResponseTimeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainAverageResponseTimeResult::~DescribeDomainAverageResponseTimeResult()
{}
void DescribeDomainAverageResponseTimeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAvgRTPerInterval = value["AvgRTPerInterval"]["DataModule"];
for (auto value : allAvgRTPerInterval)
{
DataModule dataModuleObject;
dataModuleObject.timeStamp = value["TimeStamp"].asString();
dataModuleObject.value = value["Value"].asString();
avgRTPerInterval_.push_back(dataModuleObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainAverageResponseTimeResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainAverageResponseTimeResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainAverageResponseTimeResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainAverageResponseTimeResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainAverageResponseTimeResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainAverageResponseTimeResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainAverageResponseTimeResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainAverageResponseTimeResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainBpsDataByTimeStampRequest::DescribeDomainBpsDataByTimeStampRequest() :
CdnRequest("DescribeDomainBpsDataByTimeStamp")
{}
DescribeDomainBpsDataByTimeStampRequest::~DescribeDomainBpsDataByTimeStampRequest()
{}
std::string DescribeDomainBpsDataByTimeStampRequest::getIspNames()const
{
return ispNames_;
}
void DescribeDomainBpsDataByTimeStampRequest::setIspNames(const std::string& ispNames)
{
ispNames_ = ispNames;
setParameter("IspNames", ispNames);
}
std::string DescribeDomainBpsDataByTimeStampRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainBpsDataByTimeStampRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainBpsDataByTimeStampRequest::getLocationNames()const
{
return locationNames_;
}
void DescribeDomainBpsDataByTimeStampRequest::setLocationNames(const std::string& locationNames)
{
locationNames_ = locationNames;
setParameter("LocationNames", locationNames);
}
std::string DescribeDomainBpsDataByTimeStampRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainBpsDataByTimeStampRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeDomainBpsDataByTimeStampRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainBpsDataByTimeStampRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainBpsDataByTimeStampRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainBpsDataByTimeStampRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDomainBpsDataByTimeStampRequest::getTimePoint()const
{
return timePoint_;
}
void DescribeDomainBpsDataByTimeStampRequest::setTimePoint(const std::string& timePoint)
{
timePoint_ = timePoint;
setParameter("TimePoint", timePoint);
}

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainBpsDataByTimeStampResult::DescribeDomainBpsDataByTimeStampResult() :
ServiceResult()
{}
DescribeDomainBpsDataByTimeStampResult::DescribeDomainBpsDataByTimeStampResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainBpsDataByTimeStampResult::~DescribeDomainBpsDataByTimeStampResult()
{}
void DescribeDomainBpsDataByTimeStampResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBpsDataList = value["BpsDataList"]["BpsDataModel"];
for (auto value : allBpsDataList)
{
BpsDataModel bpsDataModelObject;
bpsDataModelObject.locationName = value["LocationName"].asString();
bpsDataModelObject.ispName = value["IspName"].asString();
bpsDataModelObject.bps = std::stol(value["Bps"].asString());
bpsDataList_.push_back(bpsDataModelObject);
}
domainName_ = value["DomainName"].asString();
timeStamp_ = value["TimeStamp"].asString();
}
std::string DescribeDomainBpsDataByTimeStampResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainBpsDataByTimeStampResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainBpsDataByTimeStampResult::getTimeStamp()const
{
return timeStamp_;
}
void DescribeDomainBpsDataByTimeStampResult::setTimeStamp(const std::string& timeStamp)
{
timeStamp_ = timeStamp;
}

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/cdn/model/DescribeDomainCCAttackInfoRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainCCAttackInfoRequest::DescribeDomainCCAttackInfoRequest() :
CdnRequest("DescribeDomainCCAttackInfo")
{}
DescribeDomainCCAttackInfoRequest::~DescribeDomainCCAttackInfoRequest()
{}
std::string DescribeDomainCCAttackInfoRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainCCAttackInfoRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainCCAttackInfoRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainCCAttackInfoRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainCCAttackInfoRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainCCAttackInfoRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainCCAttackInfoRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainCCAttackInfoRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainCCAttackInfoRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainCCAttackInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainCCAttackInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainCCAttackInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainCCAttackInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainCCAttackInfoResult::DescribeDomainCCAttackInfoResult() :
ServiceResult()
{}
DescribeDomainCCAttackInfoResult::DescribeDomainCCAttackInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainCCAttackInfoResult::~DescribeDomainCCAttackInfoResult()
{}
void DescribeDomainCCAttackInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAttackIpDataList = value["AttackIpDataList"]["AttackIpDatas"];
for (auto value : allAttackIpDataList)
{
AttackIpDatas attackIpDatasObject;
attackIpDatasObject.ip = value["Ip"].asString();
attackIpDatasObject.attackCount = value["AttackCount"].asString();
attackIpDatasObject.result = value["Result"].asString();
attackIpDataList_.push_back(attackIpDatasObject);
}
auto allAttackedUrlDataList = value["AttackedUrlDataList"]["AttackedUrlDatas"];
for (auto value : allAttackedUrlDataList)
{
AttackedUrlDatas attackedUrlDatasObject;
attackedUrlDatasObject.url = value["Url"].asString();
attackedUrlDatasObject.attackCount = value["AttackCount"].asString();
attackedUrlDatasObject.result = value["Result"].asString();
attackedUrlDataList_.push_back(attackedUrlDatasObject);
}
domainName_ = value["DomainName"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainCCAttackInfoResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainCCAttackInfoResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainCCAttackInfoResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainCCAttackInfoResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainCCAttackInfoResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainCCAttackInfoResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

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/cdn/model/DescribeDomainCCDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainCCDataRequest::DescribeDomainCCDataRequest() :
CdnRequest("DescribeDomainCCData")
{}
DescribeDomainCCDataRequest::~DescribeDomainCCDataRequest()
{}
std::string DescribeDomainCCDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainCCDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainCCDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainCCDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainCCDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainCCDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainCCDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainCCDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainCCDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainCCDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainCCDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainCCDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainCCDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainCCDataResult::DescribeDomainCCDataResult() :
ServiceResult()
{}
DescribeDomainCCDataResult::DescribeDomainCCDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainCCDataResult::~DescribeDomainCCDataResult()
{}
void DescribeDomainCCDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCCDataList = value["CCDataList"]["CCDatas"];
for (auto value : allCCDataList)
{
CCDatas cCDatasObject;
cCDatasObject.timeStamp = value["TimeStamp"].asString();
cCDatasObject.count = value["Count"].asString();
cCDataList_.push_back(cCDatasObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainCCDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainCCDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainCCDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainCCDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainCCDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainCCDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainCCDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainCCDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainConfigsRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainConfigsRequest::DescribeDomainConfigsRequest() :
CdnRequest("DescribeDomainConfigs")
{}
DescribeDomainConfigsRequest::~DescribeDomainConfigsRequest()
{}
std::string DescribeDomainConfigsRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainConfigsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainConfigsRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainConfigsRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainConfigsRequest::getConfigList()const
{
return configList_;
}
void DescribeDomainConfigsRequest::setConfigList(const std::string& configList)
{
configList_ = configList;
setParameter("ConfigList", configList);
}
long DescribeDomainConfigsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainConfigsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainConfigsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainConfigsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,323 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainConfigsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainConfigsResult::DescribeDomainConfigsResult() :
ServiceResult()
{}
DescribeDomainConfigsResult::DescribeDomainConfigsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainConfigsResult::~DescribeDomainConfigsResult()
{}
void DescribeDomainConfigsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainConfigs = value["DomainConfigs"];
for (auto value : allDomainConfigs)
{
DomainConfigs domainConfigsObject;
auto allCacheExpiredConfigs = value["CacheExpiredConfigs"]["CacheExpiredConfig"];
for (auto value : allCacheExpiredConfigs)
{
DomainConfigs::CacheExpiredConfig cacheExpiredConfigObject;
cacheExpiredConfigObject.configId = value["ConfigId"].asString();
cacheExpiredConfigObject.cacheType = value["CacheType"].asString();
cacheExpiredConfigObject.cacheContent = value["CacheContent"].asString();
cacheExpiredConfigObject.tTL = value["TTL"].asString();
cacheExpiredConfigObject.weight = value["Weight"].asString();
cacheExpiredConfigObject.status = value["Status"].asString();
domainConfigsObject.cacheExpiredConfigs.push_back(cacheExpiredConfigObject);
}
auto allHttpErrorPageConfigs = value["HttpErrorPageConfigs"]["HttpErrorPageConfig"];
for (auto value : allHttpErrorPageConfigs)
{
DomainConfigs::HttpErrorPageConfig httpErrorPageConfigObject;
httpErrorPageConfigObject.configId = value["ConfigId"].asString();
httpErrorPageConfigObject.errorCode = value["ErrorCode"].asString();
httpErrorPageConfigObject.pageUrl = value["PageUrl"].asString();
httpErrorPageConfigObject.status = value["Status"].asString();
domainConfigsObject.httpErrorPageConfigs.push_back(httpErrorPageConfigObject);
}
auto allHttpHeaderConfigs = value["HttpHeaderConfigs"]["HttpHeaderConfig"];
for (auto value : allHttpHeaderConfigs)
{
DomainConfigs::HttpHeaderConfig httpHeaderConfigObject;
httpHeaderConfigObject.configId = value["ConfigId"].asString();
httpHeaderConfigObject.headerKey = value["HeaderKey"].asString();
httpHeaderConfigObject.headerValue = value["HeaderValue"].asString();
httpHeaderConfigObject.status = value["Status"].asString();
domainConfigsObject.httpHeaderConfigs.push_back(httpHeaderConfigObject);
}
auto allDynamicConfigs = value["DynamicConfigs"]["DynamicConfig"];
for (auto value : allDynamicConfigs)
{
DomainConfigs::DynamicConfig dynamicConfigObject;
dynamicConfigObject.configId = value["ConfigId"].asString();
dynamicConfigObject.dynamicOrigin = value["DynamicOrigin"].asString();
dynamicConfigObject.staticType = value["StaticType"].asString();
dynamicConfigObject.staticUri = value["StaticUri"].asString();
dynamicConfigObject.staticPath = value["StaticPath"].asString();
dynamicConfigObject.dynamicCacheControl = value["DynamicCacheControl"].asString();
dynamicConfigObject.status = value["Status"].asString();
domainConfigsObject.dynamicConfigs.push_back(dynamicConfigObject);
}
auto allReqHeaderConfigs = value["ReqHeaderConfigs"]["ReqHeaderConfig"];
for (auto value : allReqHeaderConfigs)
{
DomainConfigs::ReqHeaderConfig reqHeaderConfigObject;
reqHeaderConfigObject.configId = value["ConfigId"].asString();
reqHeaderConfigObject.key = value["Key"].asString();
reqHeaderConfigObject.value = value["Value"].asString();
reqHeaderConfigObject.status = value["Status"].asString();
domainConfigsObject.reqHeaderConfigs.push_back(reqHeaderConfigObject);
}
auto allSetVarsConfigs = value["SetVarsConfigs"]["SetVarsConfig"];
for (auto value : allSetVarsConfigs)
{
DomainConfigs::SetVarsConfig setVarsConfigObject;
setVarsConfigObject.configId = value["ConfigId"].asString();
setVarsConfigObject.varName = value["VarName"].asString();
setVarsConfigObject.varValue = value["VarValue"].asString();
setVarsConfigObject.status = value["Status"].asString();
domainConfigsObject.setVarsConfigs.push_back(setVarsConfigObject);
}
auto allCcConfig = value["CcConfig"];
for (auto value : allCcConfig)
{
DomainConfigs::CcConfig ccConfigObject;
ccConfigObject.configId = value["ConfigId"].asString();
ccConfigObject.enable = value["Enable"].asString();
ccConfigObject.allowIps = value["AllowIps"].asString();
ccConfigObject.blockIps = value["BlockIps"].asString();
ccConfigObject.status = value["Status"].asString();
domainConfigsObject.ccConfig.push_back(ccConfigObject);
}
auto allErrorPageConfig = value["ErrorPageConfig"];
for (auto value : allErrorPageConfig)
{
DomainConfigs::ErrorPageConfig errorPageConfigObject;
errorPageConfigObject.configId = value["ConfigId"].asString();
errorPageConfigObject.errorCode = value["ErrorCode"].asString();
errorPageConfigObject.pageType = value["PageType"].asString();
errorPageConfigObject.customPageUrl = value["CustomPageUrl"].asString();
errorPageConfigObject.status = value["Status"].asString();
domainConfigsObject.errorPageConfig.push_back(errorPageConfigObject);
}
auto allOptimizeConfig = value["OptimizeConfig"];
for (auto value : allOptimizeConfig)
{
DomainConfigs::OptimizeConfig optimizeConfigObject;
optimizeConfigObject.configId = value["ConfigId"].asString();
optimizeConfigObject.enable = value["Enable"].asString();
optimizeConfigObject.status = value["Status"].asString();
domainConfigsObject.optimizeConfig.push_back(optimizeConfigObject);
}
auto allPageCompressConfig = value["PageCompressConfig"];
for (auto value : allPageCompressConfig)
{
DomainConfigs::PageCompressConfig pageCompressConfigObject;
pageCompressConfigObject.configId = value["ConfigId"].asString();
pageCompressConfigObject.enable = value["Enable"].asString();
pageCompressConfigObject.status = value["Status"].asString();
domainConfigsObject.pageCompressConfig.push_back(pageCompressConfigObject);
}
auto allIgnoreQueryStringConfig = value["IgnoreQueryStringConfig"];
for (auto value : allIgnoreQueryStringConfig)
{
DomainConfigs::IgnoreQueryStringConfig ignoreQueryStringConfigObject;
ignoreQueryStringConfigObject.configId = value["ConfigId"].asString();
ignoreQueryStringConfigObject.hashKeyArgs = value["HashKeyArgs"].asString();
ignoreQueryStringConfigObject.enable = value["Enable"].asString();
ignoreQueryStringConfigObject.status = value["Status"].asString();
domainConfigsObject.ignoreQueryStringConfig.push_back(ignoreQueryStringConfigObject);
}
auto allRangeConfig = value["RangeConfig"];
for (auto value : allRangeConfig)
{
DomainConfigs::RangeConfig rangeConfigObject;
rangeConfigObject.configId = value["ConfigId"].asString();
rangeConfigObject.enable = value["Enable"].asString();
rangeConfigObject.status = value["Status"].asString();
domainConfigsObject.rangeConfig.push_back(rangeConfigObject);
}
auto allRefererConfig = value["RefererConfig"];
for (auto value : allRefererConfig)
{
DomainConfigs::RefererConfig refererConfigObject;
refererConfigObject.configId = value["ConfigId"].asString();
refererConfigObject.referType = value["ReferType"].asString();
refererConfigObject.referList = value["ReferList"].asString();
refererConfigObject.allowEmpty = value["AllowEmpty"].asString();
refererConfigObject.disableAst = value["DisableAst"].asString();
refererConfigObject.status = value["Status"].asString();
domainConfigsObject.refererConfig.push_back(refererConfigObject);
}
auto allReqAuthConfig = value["ReqAuthConfig"];
for (auto value : allReqAuthConfig)
{
DomainConfigs::ReqAuthConfig reqAuthConfigObject;
reqAuthConfigObject.configId = value["ConfigId"].asString();
reqAuthConfigObject.authType = value["AuthType"].asString();
reqAuthConfigObject.key1 = value["Key1"].asString();
reqAuthConfigObject.key2 = value["Key2"].asString();
reqAuthConfigObject.status = value["Status"].asString();
reqAuthConfigObject.aliAuthWhiteList = value["AliAuthWhiteList"].asString();
reqAuthConfigObject.authM3u8 = value["AuthM3u8"].asString();
reqAuthConfigObject.authAddr = value["AuthAddr"].asString();
reqAuthConfigObject.authRemoteDesc = value["AuthRemoteDesc"].asString();
reqAuthConfigObject.timeOut = value["TimeOut"].asString();
domainConfigsObject.reqAuthConfig.push_back(reqAuthConfigObject);
}
auto allSrcHostConfig = value["SrcHostConfig"];
for (auto value : allSrcHostConfig)
{
DomainConfigs::SrcHostConfig srcHostConfigObject;
srcHostConfigObject.configId = value["ConfigId"].asString();
srcHostConfigObject.domainName = value["DomainName"].asString();
srcHostConfigObject.status = value["Status"].asString();
domainConfigsObject.srcHostConfig.push_back(srcHostConfigObject);
}
auto allVideoSeekConfig = value["VideoSeekConfig"];
for (auto value : allVideoSeekConfig)
{
DomainConfigs::VideoSeekConfig videoSeekConfigObject;
videoSeekConfigObject.configId = value["ConfigId"].asString();
videoSeekConfigObject.enable = value["Enable"].asString();
videoSeekConfigObject.status = value["Status"].asString();
domainConfigsObject.videoSeekConfig.push_back(videoSeekConfigObject);
}
auto allWafConfig = value["WafConfig"];
for (auto value : allWafConfig)
{
DomainConfigs::WafConfig wafConfigObject;
wafConfigObject.configId = value["ConfigId"].asString();
wafConfigObject.enable = value["Enable"].asString();
wafConfigObject.status = value["Status"].asString();
domainConfigsObject.wafConfig.push_back(wafConfigObject);
}
auto allNotifyUrlConfig = value["NotifyUrlConfig"];
for (auto value : allNotifyUrlConfig)
{
DomainConfigs::NotifyUrlConfig notifyUrlConfigObject;
notifyUrlConfigObject.enable = value["Enable"].asString();
notifyUrlConfigObject.notifyUrl = value["NotifyUrl"].asString();
domainConfigsObject.notifyUrlConfig.push_back(notifyUrlConfigObject);
}
auto allRedirectTypeConfig = value["RedirectTypeConfig"];
for (auto value : allRedirectTypeConfig)
{
DomainConfigs::RedirectTypeConfig redirectTypeConfigObject;
redirectTypeConfigObject.redirectType = value["RedirectType"].asString();
domainConfigsObject.redirectTypeConfig.push_back(redirectTypeConfigObject);
}
auto allForwardSchemeConfig = value["ForwardSchemeConfig"];
for (auto value : allForwardSchemeConfig)
{
DomainConfigs::ForwardSchemeConfig forwardSchemeConfigObject;
forwardSchemeConfigObject.configId = value["ConfigId"].asString();
forwardSchemeConfigObject.enable = value["Enable"].asString();
forwardSchemeConfigObject.schemeOrigin = value["SchemeOrigin"].asString();
forwardSchemeConfigObject.schemeOriginPort = value["SchemeOriginPort"].asString();
forwardSchemeConfigObject.status = value["Status"].asString();
domainConfigsObject.forwardSchemeConfig.push_back(forwardSchemeConfigObject);
}
auto allRemoveQueryStringConfig = value["RemoveQueryStringConfig"];
for (auto value : allRemoveQueryStringConfig)
{
DomainConfigs::RemoveQueryStringConfig removeQueryStringConfigObject;
removeQueryStringConfigObject.aliRemoveArgs = value["AliRemoveArgs"].asString();
removeQueryStringConfigObject.configId = value["ConfigId"].asString();
removeQueryStringConfigObject.status = value["Status"].asString();
domainConfigsObject.removeQueryStringConfig.push_back(removeQueryStringConfigObject);
}
auto allL2OssKeyConfig = value["L2OssKeyConfig"];
for (auto value : allL2OssKeyConfig)
{
DomainConfigs::L2OssKeyConfig l2OssKeyConfigObject;
l2OssKeyConfigObject.privateOssAuth = value["PrivateOssAuth"].asString();
l2OssKeyConfigObject.configId = value["ConfigId"].asString();
l2OssKeyConfigObject.status = value["Status"].asString();
domainConfigsObject.l2OssKeyConfig.push_back(l2OssKeyConfigObject);
}
auto allMacServiceConfig = value["MacServiceConfig"];
for (auto value : allMacServiceConfig)
{
DomainConfigs::MacServiceConfig macServiceConfigObject;
macServiceConfigObject.appList = value["AppList"].asString();
macServiceConfigObject.enabled = value["Enabled"].asString();
macServiceConfigObject.processResult = value["ProcessResult"].asString();
macServiceConfigObject.configId = value["ConfigId"].asString();
macServiceConfigObject.status = value["Status"].asString();
domainConfigsObject.macServiceConfig.push_back(macServiceConfigObject);
}
auto allGreenManagerConfig = value["GreenManagerConfig"];
for (auto value : allGreenManagerConfig)
{
DomainConfigs::GreenManagerConfig greenManagerConfigObject;
greenManagerConfigObject.enabled = value["Enabled"].asString();
greenManagerConfigObject.configId = value["ConfigId"].asString();
greenManagerConfigObject.status = value["Status"].asString();
domainConfigsObject.greenManagerConfig.push_back(greenManagerConfigObject);
}
auto allHttpsOptionConfig = value["HttpsOptionConfig"];
for (auto value : allHttpsOptionConfig)
{
DomainConfigs::HttpsOptionConfig httpsOptionConfigObject;
httpsOptionConfigObject.http2 = value["Http2"].asString();
httpsOptionConfigObject.configId = value["ConfigId"].asString();
httpsOptionConfigObject.status = value["Status"].asString();
domainConfigsObject.httpsOptionConfig.push_back(httpsOptionConfigObject);
}
auto allAliBusinessConfig = value["AliBusinessConfig"];
for (auto value : allAliBusinessConfig)
{
DomainConfigs::AliBusinessConfig aliBusinessConfigObject;
aliBusinessConfigObject.aliBusinessTable = value["AliBusinessTable"].asString();
aliBusinessConfigObject.aliBusinessType = value["AliBusinessType"].asString();
aliBusinessConfigObject.configId = value["ConfigId"].asString();
aliBusinessConfigObject.status = value["Status"].asString();
domainConfigsObject.aliBusinessConfig.push_back(aliBusinessConfigObject);
}
auto allIpAllowListConfig = value["IpAllowListConfig"];
for (auto value : allIpAllowListConfig)
{
DomainConfigs::IpAllowListConfig ipAllowListConfigObject;
ipAllowListConfigObject.configId = value["ConfigId"].asString();
ipAllowListConfigObject.ipList = value["IpList"].asString();
ipAllowListConfigObject.ipAclXfwd = value["IpAclXfwd"].asString();
ipAllowListConfigObject.status = value["Status"].asString();
domainConfigsObject.ipAllowListConfig.push_back(ipAllowListConfigObject);
}
domainConfigs_.push_back(domainConfigsObject);
}
}

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/cdn/model/DescribeDomainDownstreamBpsOfEdgeRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainDownstreamBpsOfEdgeRequest::DescribeDomainDownstreamBpsOfEdgeRequest() :
CdnRequest("DescribeDomainDownstreamBpsOfEdge")
{}
DescribeDomainDownstreamBpsOfEdgeRequest::~DescribeDomainDownstreamBpsOfEdgeRequest()
{}
std::string DescribeDomainDownstreamBpsOfEdgeRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainDownstreamBpsOfEdgeRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainDownstreamBpsOfEdgeRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainDownstreamBpsOfEdgeRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainDownstreamBpsOfEdgeRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainDownstreamBpsOfEdgeRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainDownstreamBpsOfEdgeRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainDownstreamBpsOfEdgeRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainDownstreamBpsOfEdgeRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainDownstreamBpsOfEdgeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainDownstreamBpsOfEdgeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainDownstreamBpsOfEdgeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainDownstreamBpsOfEdgeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainDownstreamBpsOfEdgeResult::DescribeDomainDownstreamBpsOfEdgeResult() :
ServiceResult()
{}
DescribeDomainDownstreamBpsOfEdgeResult::DescribeDomainDownstreamBpsOfEdgeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainDownstreamBpsOfEdgeResult::~DescribeDomainDownstreamBpsOfEdgeResult()
{}
void DescribeDomainDownstreamBpsOfEdgeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBpsDatas = value["BpsDatas"]["DomainBpsModel"];
for (auto value : allBpsDatas)
{
DomainBpsModel domainBpsModelObject;
domainBpsModelObject.time = value["Time"].asString();
domainBpsModelObject.bps = std::stof(value["Bps"].asString());
bpsDatas_.push_back(domainBpsModelObject);
}
}

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/cdn/model/DescribeDomainFileSizeProportionDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainFileSizeProportionDataRequest::DescribeDomainFileSizeProportionDataRequest() :
CdnRequest("DescribeDomainFileSizeProportionData")
{}
DescribeDomainFileSizeProportionDataRequest::~DescribeDomainFileSizeProportionDataRequest()
{}
std::string DescribeDomainFileSizeProportionDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainFileSizeProportionDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainFileSizeProportionDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainFileSizeProportionDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainFileSizeProportionDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainFileSizeProportionDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainFileSizeProportionDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainFileSizeProportionDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainFileSizeProportionDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainFileSizeProportionDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainFileSizeProportionDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainFileSizeProportionDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainFileSizeProportionDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainFileSizeProportionDataResult::DescribeDomainFileSizeProportionDataResult() :
ServiceResult()
{}
DescribeDomainFileSizeProportionDataResult::DescribeDomainFileSizeProportionDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainFileSizeProportionDataResult::~DescribeDomainFileSizeProportionDataResult()
{}
void DescribeDomainFileSizeProportionDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFileSizeProportionDataInterval = value["FileSizeProportionDataInterval"]["UsageData"];
for (auto value : allFileSizeProportionDataInterval)
{
UsageData usageDataObject;
usageDataObject.timeStamp = value["TimeStamp"].asString();
auto allValue = value["Value"]["FileSizeProportionData"];
for (auto value : allValue)
{
UsageData::FileSizeProportionData fileSizeProportionDataObject;
fileSizeProportionDataObject.fileSize = value["FileSize"].asString();
fileSizeProportionDataObject.proportion = value["Proportion"].asString();
usageDataObject.value.push_back(fileSizeProportionDataObject);
}
fileSizeProportionDataInterval_.push_back(usageDataObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainFileSizeProportionDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainFileSizeProportionDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainFileSizeProportionDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainFileSizeProportionDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainFileSizeProportionDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainFileSizeProportionDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainFileSizeProportionDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainFileSizeProportionDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,160 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainFlowDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainFlowDataRequest::DescribeDomainFlowDataRequest() :
CdnRequest("DescribeDomainFlowData")
{}
DescribeDomainFlowDataRequest::~DescribeDomainFlowDataRequest()
{}
std::string DescribeDomainFlowDataRequest::getFixTimeGap()const
{
return fixTimeGap_;
}
void DescribeDomainFlowDataRequest::setFixTimeGap(const std::string& fixTimeGap)
{
fixTimeGap_ = fixTimeGap;
setParameter("FixTimeGap", fixTimeGap);
}
std::string DescribeDomainFlowDataRequest::getTimeMerge()const
{
return timeMerge_;
}
void DescribeDomainFlowDataRequest::setTimeMerge(const std::string& timeMerge)
{
timeMerge_ = timeMerge;
setParameter("TimeMerge", timeMerge);
}
std::string DescribeDomainFlowDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainFlowDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainFlowDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainFlowDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainFlowDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainFlowDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainFlowDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainFlowDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainFlowDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainFlowDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
long DescribeDomainFlowDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainFlowDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainFlowDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainFlowDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDomainFlowDataRequest::getDomainType()const
{
return domainType_;
}
void DescribeDomainFlowDataRequest::setDomainType(const std::string& domainType)
{
domainType_ = domainType;
setParameter("DomainType", domainType);
}
std::string DescribeDomainFlowDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainFlowDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainFlowDataRequest::getInterval()const
{
return interval_;
}
void DescribeDomainFlowDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainFlowDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainFlowDataResult::DescribeDomainFlowDataResult() :
ServiceResult()
{}
DescribeDomainFlowDataResult::DescribeDomainFlowDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainFlowDataResult::~DescribeDomainFlowDataResult()
{}
void DescribeDomainFlowDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFlowDataPerInterval = value["FlowDataPerInterval"]["DataModule"];
for (auto value : allFlowDataPerInterval)
{
DataModule dataModuleObject;
dataModuleObject.timeStamp = value["TimeStamp"].asString();
dataModuleObject.value = value["Value"].asString();
dataModuleObject.domesticValue = value["DomesticValue"].asString();
dataModuleObject.overseasValue = value["OverseasValue"].asString();
dataModuleObject.dynamicValue = value["DynamicValue"].asString();
dataModuleObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
dataModuleObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
dataModuleObject.staticValue = value["StaticValue"].asString();
dataModuleObject.staticDomesticValue = value["StaticDomesticValue"].asString();
dataModuleObject.staticOverseasValue = value["StaticOverseasValue"].asString();
flowDataPerInterval_.push_back(dataModuleObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainFlowDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainFlowDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainFlowDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainFlowDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainFlowDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainFlowDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainFlowDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainFlowDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,138 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainHitRateDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainHitRateDataRequest::DescribeDomainHitRateDataRequest() :
CdnRequest("DescribeDomainHitRateData")
{}
DescribeDomainHitRateDataRequest::~DescribeDomainHitRateDataRequest()
{}
std::string DescribeDomainHitRateDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainHitRateDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainHitRateDataRequest::getTimeMerge()const
{
return timeMerge_;
}
void DescribeDomainHitRateDataRequest::setTimeMerge(const std::string& timeMerge)
{
timeMerge_ = timeMerge;
setParameter("TimeMerge", timeMerge);
}
std::string DescribeDomainHitRateDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainHitRateDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainHitRateDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainHitRateDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainHitRateDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainHitRateDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainHitRateDataRequest::getInterval()const
{
return interval_;
}
void DescribeDomainHitRateDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}
std::string DescribeDomainHitRateDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainHitRateDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainHitRateDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainHitRateDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
long DescribeDomainHitRateDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainHitRateDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainHitRateDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainHitRateDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainHitRateDataResult::DescribeDomainHitRateDataResult() :
ServiceResult()
{}
DescribeDomainHitRateDataResult::DescribeDomainHitRateDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainHitRateDataResult::~DescribeDomainHitRateDataResult()
{}
void DescribeDomainHitRateDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allHitRateInterval = value["HitRateInterval"]["DataModule"];
for (auto value : allHitRateInterval)
{
DataModule dataModuleObject;
dataModuleObject.timeStamp = value["TimeStamp"].asString();
dataModuleObject.value = value["Value"].asString();
hitRateInterval_.push_back(dataModuleObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainHitRateDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainHitRateDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainHitRateDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainHitRateDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainHitRateDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainHitRateDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainHitRateDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainHitRateDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,138 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainHttpCodeDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainHttpCodeDataRequest::DescribeDomainHttpCodeDataRequest() :
CdnRequest("DescribeDomainHttpCodeData")
{}
DescribeDomainHttpCodeDataRequest::~DescribeDomainHttpCodeDataRequest()
{}
std::string DescribeDomainHttpCodeDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainHttpCodeDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainHttpCodeDataRequest::getTimeMerge()const
{
return timeMerge_;
}
void DescribeDomainHttpCodeDataRequest::setTimeMerge(const std::string& timeMerge)
{
timeMerge_ = timeMerge;
setParameter("TimeMerge", timeMerge);
}
std::string DescribeDomainHttpCodeDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainHttpCodeDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainHttpCodeDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainHttpCodeDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainHttpCodeDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainHttpCodeDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainHttpCodeDataRequest::getInterval()const
{
return interval_;
}
void DescribeDomainHttpCodeDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}
std::string DescribeDomainHttpCodeDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainHttpCodeDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainHttpCodeDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainHttpCodeDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
long DescribeDomainHttpCodeDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainHttpCodeDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainHttpCodeDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainHttpCodeDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainHttpCodeDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainHttpCodeDataResult::DescribeDomainHttpCodeDataResult() :
ServiceResult()
{}
DescribeDomainHttpCodeDataResult::DescribeDomainHttpCodeDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainHttpCodeDataResult::~DescribeDomainHttpCodeDataResult()
{}
void DescribeDomainHttpCodeDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allHttpCodeData = value["HttpCodeData"]["UsageData"];
for (auto value : allHttpCodeData)
{
UsageData usageDataObject;
usageDataObject.timeStamp = value["TimeStamp"].asString();
auto allValue = value["Value"]["CodeProportionData"];
for (auto value : allValue)
{
UsageData::CodeProportionData codeProportionDataObject;
codeProportionDataObject.code = value["Code"].asString();
codeProportionDataObject.proportion = value["Proportion"].asString();
codeProportionDataObject.count = value["Count"].asString();
usageDataObject.value.push_back(codeProportionDataObject);
}
httpCodeData_.push_back(usageDataObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainHttpCodeDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainHttpCodeDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainHttpCodeDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainHttpCodeDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainHttpCodeDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainHttpCodeDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainHttpCodeDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainHttpCodeDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,149 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainHttpsDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainHttpsDataRequest::DescribeDomainHttpsDataRequest() :
CdnRequest("DescribeDomainHttpsData")
{}
DescribeDomainHttpsDataRequest::~DescribeDomainHttpsDataRequest()
{}
std::string DescribeDomainHttpsDataRequest::getDomainType()const
{
return domainType_;
}
void DescribeDomainHttpsDataRequest::setDomainType(const std::string& domainType)
{
domainType_ = domainType;
setParameter("DomainType", domainType);
}
std::string DescribeDomainHttpsDataRequest::getFixTimeGap()const
{
return fixTimeGap_;
}
void DescribeDomainHttpsDataRequest::setFixTimeGap(const std::string& fixTimeGap)
{
fixTimeGap_ = fixTimeGap;
setParameter("FixTimeGap", fixTimeGap);
}
std::string DescribeDomainHttpsDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainHttpsDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainHttpsDataRequest::getTimeMerge()const
{
return timeMerge_;
}
void DescribeDomainHttpsDataRequest::setTimeMerge(const std::string& timeMerge)
{
timeMerge_ = timeMerge;
setParameter("TimeMerge", timeMerge);
}
std::string DescribeDomainHttpsDataRequest::getDomainNames()const
{
return domainNames_;
}
void DescribeDomainHttpsDataRequest::setDomainNames(const std::string& domainNames)
{
domainNames_ = domainNames;
setParameter("DomainNames", domainNames);
}
std::string DescribeDomainHttpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainHttpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainHttpsDataRequest::getInterval()const
{
return interval_;
}
void DescribeDomainHttpsDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}
std::string DescribeDomainHttpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainHttpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainHttpsDataRequest::getCls()const
{
return cls_;
}
void DescribeDomainHttpsDataRequest::setCls(const std::string& cls)
{
cls_ = cls;
setParameter("Cls", cls);
}
long DescribeDomainHttpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainHttpsDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainHttpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainHttpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainHttpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainHttpsDataResult::DescribeDomainHttpsDataResult() :
ServiceResult()
{}
DescribeDomainHttpsDataResult::DescribeDomainHttpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainHttpsDataResult::~DescribeDomainHttpsDataResult()
{}
void DescribeDomainHttpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allHttpsStatisticsInfos = value["HttpsStatisticsInfos"]["HttpsStatisticsInfo"];
for (auto value : allHttpsStatisticsInfos)
{
HttpsStatisticsInfo httpsStatisticsInfoObject;
httpsStatisticsInfoObject.time = value["Time"].asString();
httpsStatisticsInfoObject.l1HttpsBps = std::stof(value["L1HttpsBps"].asString());
httpsStatisticsInfoObject.l1HttpsInnerBps = std::stof(value["L1HttpsInnerBps"].asString());
httpsStatisticsInfoObject.l1HttpsOutBps = std::stof(value["L1HttpsOutBps"].asString());
httpsStatisticsInfoObject.l1HttpsQps = std::stol(value["L1HttpsQps"].asString());
httpsStatisticsInfoObject.l1HttpsInnerQps = std::stol(value["L1HttpsInnerQps"].asString());
httpsStatisticsInfoObject.l1HttpsOutQps = std::stol(value["L1HttpsOutQps"].asString());
httpsStatisticsInfoObject.l1HttpsTtraf = std::stol(value["L1HttpsTtraf"].asString());
httpsStatisticsInfoObject.httpsSrcBps = std::stol(value["HttpsSrcBps"].asString());
httpsStatisticsInfoObject.httpsSrcTraf = std::stol(value["HttpsSrcTraf"].asString());
httpsStatisticsInfoObject.l1HttpsInnerTraf = std::stol(value["L1HttpsInnerTraf"].asString());
httpsStatisticsInfoObject.l1HttpsOutTraf = std::stol(value["L1HttpsOutTraf"].asString());
httpsStatisticsInfoObject.httpsByteHitRate = std::stof(value["HttpsByteHitRate"].asString());
httpsStatisticsInfoObject.httpsReqHitRate = std::stof(value["HttpsReqHitRate"].asString());
httpsStatisticsInfoObject.l1HttpsHitRate = std::stof(value["L1HttpsHitRate"].asString());
httpsStatisticsInfoObject.l1HttpsInner_acc = std::stof(value["L1HttpsInner_acc"].asString());
httpsStatisticsInfoObject.l1HttpsOut_acc = std::stof(value["L1HttpsOut_acc"].asString());
httpsStatisticsInfoObject.l1HttpsTacc = std::stof(value["L1HttpsTacc"].asString());
httpsStatisticsInfoObject.l1DyHttpsBps = std::stof(value["L1DyHttpsBps"].asString());
httpsStatisticsInfoObject.l1DyHttpsInnerBps = std::stof(value["L1DyHttpsInnerBps"].asString());
httpsStatisticsInfoObject.l1DyHttpsOutBps = std::stof(value["L1DyHttpsOutBps"].asString());
httpsStatisticsInfoObject.l1StHttpsBps = std::stof(value["L1StHttpsBps"].asString());
httpsStatisticsInfoObject.l1StHttpsInnerBps = std::stof(value["L1StHttpsInnerBps"].asString());
httpsStatisticsInfoObject.l1StHttpsOutBps = std::stof(value["L1StHttpsOutBps"].asString());
httpsStatisticsInfoObject.l1DyHttpsTraf = std::stof(value["l1DyHttpsTraf"].asString());
httpsStatisticsInfoObject.l1DyHttpsInnerTraf = std::stof(value["L1DyHttpsInnerTraf"].asString());
httpsStatisticsInfoObject.l1DyHttpsOutTraf = std::stof(value["L1DyHttpsOutTraf"].asString());
httpsStatisticsInfoObject.l1StHttpsTraf = std::stof(value["L1StHttpsTraf"].asString());
httpsStatisticsInfoObject.l1StHttpsInnerTraf = std::stof(value["L1StHttpsInnerTraf"].asString());
httpsStatisticsInfoObject.l1StHttpsOutTraf = std::stof(value["L1StHttpsOutTraf"].asString());
httpsStatisticsInfoObject.l1DyHttpsQps = std::stof(value["L1DyHttpsQps"].asString());
httpsStatisticsInfoObject.l1DyHttpsInnerQps = std::stof(value["L1DyHttpsInnerQps"].asString());
httpsStatisticsInfoObject.l1DyHttpsOutQps = std::stof(value["L1DyHttpsOutQps"].asString());
httpsStatisticsInfoObject.l1StHttpsQps = std::stof(value["L1StHttpsQps"].asString());
httpsStatisticsInfoObject.l1StHttpsInnerQps = std::stof(value["L1StHttpsInnerQps"].asString());
httpsStatisticsInfoObject.l1StHttpsOutQps = std::stof(value["L1StHttpsOutQps"].asString());
httpsStatisticsInfoObject.l1DyHttpsAcc = std::stof(value["L1DyHttpsAcc"].asString());
httpsStatisticsInfoObject.l1DyHttpsInnerAcc = std::stof(value["L1DyHttpsInnerAcc"].asString());
httpsStatisticsInfoObject.l1DyHttpsOutAcc = std::stof(value["L1DyHttpsOutAcc"].asString());
httpsStatisticsInfoObject.l1StHttpsAcc = std::stof(value["L1StHttpsAcc"].asString());
httpsStatisticsInfoObject.l1StHttpsInnerAcc = std::stof(value["L1StHttpsInnerAcc"].asString());
httpsStatisticsInfoObject.l1StHttpsOutAcc = std::stof(value["L1StHttpsOutAcc"].asString());
httpsStatisticsInfos_.push_back(httpsStatisticsInfoObject);
}
domainNames_ = value["DomainNames"].asString();
dataInterval_ = value["DataInterval"].asString();
}
std::string DescribeDomainHttpsDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainHttpsDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainHttpsDataResult::getDomainNames()const
{
return domainNames_;
}
void DescribeDomainHttpsDataResult::setDomainNames(const std::string& domainNames)
{
domainNames_ = domainNames;
}

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/cdn/model/DescribeDomainISPDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainISPDataRequest::DescribeDomainISPDataRequest() :
CdnRequest("DescribeDomainISPData")
{}
DescribeDomainISPDataRequest::~DescribeDomainISPDataRequest()
{}
std::string DescribeDomainISPDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainISPDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainISPDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainISPDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainISPDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainISPDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainISPDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainISPDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainISPDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainISPDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainISPDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainISPDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainISPDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainISPDataResult::DescribeDomainISPDataResult() :
ServiceResult()
{}
DescribeDomainISPDataResult::DescribeDomainISPDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainISPDataResult::~DescribeDomainISPDataResult()
{}
void DescribeDomainISPDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allValue = value["Value"]["ISPProportionData"];
for (auto value : allValue)
{
ISPProportionData iSPProportionDataObject;
iSPProportionDataObject.iSP = value["ISP"].asString();
iSPProportionDataObject.proportion = value["Proportion"].asString();
iSPProportionDataObject.ispEname = value["IspEname"].asString();
iSPProportionDataObject.avgObjectSize = value["AvgObjectSize"].asString();
iSPProportionDataObject.avgResponseTime = value["AvgResponseTime"].asString();
iSPProportionDataObject.bps = value["Bps"].asString();
iSPProportionDataObject.byteHitRate = value["ByteHitRate"].asString();
iSPProportionDataObject.qps = value["Qps"].asString();
iSPProportionDataObject.reqErrRate = value["ReqErrRate"].asString();
iSPProportionDataObject.reqHitRate = value["ReqHitRate"].asString();
iSPProportionDataObject.avgResponseRate = value["AvgResponseRate"].asString();
iSPProportionDataObject.totalBytes = value["TotalBytes"].asString();
iSPProportionDataObject.bytesProportion = value["BytesProportion"].asString();
iSPProportionDataObject.totalQuery = value["TotalQuery"].asString();
value_.push_back(iSPProportionDataObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainISPDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainISPDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainISPDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainISPDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainISPDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainISPDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainISPDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainISPDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

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/cdn/model/DescribeDomainMax95BpsDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainMax95BpsDataRequest::DescribeDomainMax95BpsDataRequest() :
CdnRequest("DescribeDomainMax95BpsData")
{}
DescribeDomainMax95BpsDataRequest::~DescribeDomainMax95BpsDataRequest()
{}
std::string DescribeDomainMax95BpsDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainMax95BpsDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainMax95BpsDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainMax95BpsDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainMax95BpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainMax95BpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainMax95BpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainMax95BpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainMax95BpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainMax95BpsDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainMax95BpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainMax95BpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,111 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainMax95BpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainMax95BpsDataResult::DescribeDomainMax95BpsDataResult() :
ServiceResult()
{}
DescribeDomainMax95BpsDataResult::DescribeDomainMax95BpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainMax95BpsDataResult::~DescribeDomainMax95BpsDataResult()
{}
void DescribeDomainMax95BpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
domainName_ = value["DomainName"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
max95Bps_ = value["Max95Bps"].asString();
domesticMax95Bps_ = value["DomesticMax95Bps"].asString();
overseasMax95Bps_ = value["OverseasMax95Bps"].asString();
}
std::string DescribeDomainMax95BpsDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainMax95BpsDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainMax95BpsDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainMax95BpsDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainMax95BpsDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainMax95BpsDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}
std::string DescribeDomainMax95BpsDataResult::getDomesticMax95Bps()const
{
return domesticMax95Bps_;
}
void DescribeDomainMax95BpsDataResult::setDomesticMax95Bps(const std::string& domesticMax95Bps)
{
domesticMax95Bps_ = domesticMax95Bps;
}
std::string DescribeDomainMax95BpsDataResult::getMax95Bps()const
{
return max95Bps_;
}
void DescribeDomainMax95BpsDataResult::setMax95Bps(const std::string& max95Bps)
{
max95Bps_ = max95Bps;
}
std::string DescribeDomainMax95BpsDataResult::getOverseasMax95Bps()const
{
return overseasMax95Bps_;
}
void DescribeDomainMax95BpsDataResult::setOverseasMax95Bps(const std::string& overseasMax95Bps)
{
overseasMax95Bps_ = overseasMax95Bps;
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainMonthBillingBpsDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainMonthBillingBpsDataRequest::DescribeDomainMonthBillingBpsDataRequest() :
CdnRequest("DescribeDomainMonthBillingBpsData")
{}
DescribeDomainMonthBillingBpsDataRequest::~DescribeDomainMonthBillingBpsDataRequest()
{}
std::string DescribeDomainMonthBillingBpsDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainMonthBillingBpsDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainMonthBillingBpsDataRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void DescribeDomainMonthBillingBpsDataRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::string DescribeDomainMonthBillingBpsDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainMonthBillingBpsDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainMonthBillingBpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainMonthBillingBpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainMonthBillingBpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainMonthBillingBpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainMonthBillingBpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainMonthBillingBpsDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainMonthBillingBpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainMonthBillingBpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,177 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainMonthBillingBpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainMonthBillingBpsDataResult::DescribeDomainMonthBillingBpsDataResult() :
ServiceResult()
{}
DescribeDomainMonthBillingBpsDataResult::DescribeDomainMonthBillingBpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainMonthBillingBpsDataResult::~DescribeDomainMonthBillingBpsDataResult()
{}
void DescribeDomainMonthBillingBpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
domainName_ = value["DomainName"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
bandwidth95Bps_ = std::stof(value["Bandwidth95Bps"].asString());
domesticBandwidth95Bps_ = std::stof(value["DomesticBandwidth95Bps"].asString());
overseasBandwidth95Bps_ = std::stof(value["OverseasBandwidth95Bps"].asString());
monthavgBps_ = std::stof(value["MonthavgBps"].asString());
domesticMonthavgBps_ = std::stof(value["DomesticMonthavgBps"].asString());
overseasMonthavgBps_ = std::stof(value["OverseasMonthavgBps"].asString());
month4thBps_ = std::stof(value["Month4thBps"].asString());
domesticMonth4thBps_ = std::stof(value["DomesticMonth4thBps"].asString());
overseasMonth4thBps_ = std::stof(value["OverseasMonth4thBps"].asString());
}
float DescribeDomainMonthBillingBpsDataResult::getOverseasBandwidth95Bps()const
{
return overseasBandwidth95Bps_;
}
void DescribeDomainMonthBillingBpsDataResult::setOverseasBandwidth95Bps(float overseasBandwidth95Bps)
{
overseasBandwidth95Bps_ = overseasBandwidth95Bps;
}
float DescribeDomainMonthBillingBpsDataResult::getDomesticMonth4thBps()const
{
return domesticMonth4thBps_;
}
void DescribeDomainMonthBillingBpsDataResult::setDomesticMonth4thBps(float domesticMonth4thBps)
{
domesticMonth4thBps_ = domesticMonth4thBps;
}
std::string DescribeDomainMonthBillingBpsDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainMonthBillingBpsDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainMonthBillingBpsDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainMonthBillingBpsDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
float DescribeDomainMonthBillingBpsDataResult::getOverseasMonthavgBps()const
{
return overseasMonthavgBps_;
}
void DescribeDomainMonthBillingBpsDataResult::setOverseasMonthavgBps(float overseasMonthavgBps)
{
overseasMonthavgBps_ = overseasMonthavgBps;
}
float DescribeDomainMonthBillingBpsDataResult::getMonth4thBps()const
{
return month4thBps_;
}
void DescribeDomainMonthBillingBpsDataResult::setMonth4thBps(float month4thBps)
{
month4thBps_ = month4thBps;
}
float DescribeDomainMonthBillingBpsDataResult::getDomesticMonthavgBps()const
{
return domesticMonthavgBps_;
}
void DescribeDomainMonthBillingBpsDataResult::setDomesticMonthavgBps(float domesticMonthavgBps)
{
domesticMonthavgBps_ = domesticMonthavgBps;
}
std::string DescribeDomainMonthBillingBpsDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainMonthBillingBpsDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}
float DescribeDomainMonthBillingBpsDataResult::getBandwidth95Bps()const
{
return bandwidth95Bps_;
}
void DescribeDomainMonthBillingBpsDataResult::setBandwidth95Bps(float bandwidth95Bps)
{
bandwidth95Bps_ = bandwidth95Bps;
}
float DescribeDomainMonthBillingBpsDataResult::getMonthavgBps()const
{
return monthavgBps_;
}
void DescribeDomainMonthBillingBpsDataResult::setMonthavgBps(float monthavgBps)
{
monthavgBps_ = monthavgBps;
}
float DescribeDomainMonthBillingBpsDataResult::getOverseasMonth4thBps()const
{
return overseasMonth4thBps_;
}
void DescribeDomainMonthBillingBpsDataResult::setOverseasMonth4thBps(float overseasMonth4thBps)
{
overseasMonth4thBps_ = overseasMonth4thBps;
}
float DescribeDomainMonthBillingBpsDataResult::getDomesticBandwidth95Bps()const
{
return domesticBandwidth95Bps_;
}
void DescribeDomainMonthBillingBpsDataResult::setDomesticBandwidth95Bps(float domesticBandwidth95Bps)
{
domesticBandwidth95Bps_ = domesticBandwidth95Bps;
}

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/cdn/model/DescribeDomainOnlineUserNumberRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainOnlineUserNumberRequest::DescribeDomainOnlineUserNumberRequest() :
CdnRequest("DescribeDomainOnlineUserNumber")
{}
DescribeDomainOnlineUserNumberRequest::~DescribeDomainOnlineUserNumberRequest()
{}
std::string DescribeDomainOnlineUserNumberRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainOnlineUserNumberRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainOnlineUserNumberRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainOnlineUserNumberRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainOnlineUserNumberRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainOnlineUserNumberRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainOnlineUserNumberRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainOnlineUserNumberRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainOnlineUserNumberRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainOnlineUserNumberRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainOnlineUserNumberRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainOnlineUserNumberRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainOnlineUserNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainOnlineUserNumberResult::DescribeDomainOnlineUserNumberResult() :
ServiceResult()
{}
DescribeDomainOnlineUserNumberResult::DescribeDomainOnlineUserNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainOnlineUserNumberResult::~DescribeDomainOnlineUserNumberResult()
{}
void DescribeDomainOnlineUserNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLiveStreamOnlineUserNumInfos = value["LiveStreamOnlineUserNumInfos"]["LiveStreamOnlineUserNumInfo"];
for (auto value : allLiveStreamOnlineUserNumInfos)
{
LiveStreamOnlineUserNumInfo liveStreamOnlineUserNumInfoObject;
liveStreamOnlineUserNumInfoObject.time = value["Time"].asString();
liveStreamOnlineUserNumInfoObject.userNumber = std::stol(value["UserNumber"].asString());
liveStreamOnlineUserNumInfos_.push_back(liveStreamOnlineUserNumInfoObject);
}
}

View File

@@ -0,0 +1,303 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainPathDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainPathDataRequest::DescribeDomainPathDataRequest() :
CdnRequest("DescribeDomainPathData")
{}
DescribeDomainPathDataRequest::~DescribeDomainPathDataRequest()
{}
long DescribeDomainPathDataRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeDomainPathDataRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribeDomainPathDataRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribeDomainPathDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string DescribeDomainPathDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainPathDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainPathDataRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribeDomainPathDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribeDomainPathDataRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribeDomainPathDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribeDomainPathDataRequest::getCallerType()const
{
return callerType_;
}
void DescribeDomainPathDataRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
int DescribeDomainPathDataRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDomainPathDataRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDomainPathDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainPathDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDomainPathDataRequest::getPath()const
{
return path_;
}
void DescribeDomainPathDataRequest::setPath(const std::string& path)
{
path_ = path;
setParameter("Path", path);
}
std::string DescribeDomainPathDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainPathDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainPathDataRequest::getRequestContent()const
{
return requestContent_;
}
void DescribeDomainPathDataRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
int DescribeDomainPathDataRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDomainPathDataRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDomainPathDataRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribeDomainPathDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribeDomainPathDataRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribeDomainPathDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long DescribeDomainPathDataRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeDomainPathDataRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribeDomainPathDataRequest::getApp_ip()const
{
return app_ip_;
}
void DescribeDomainPathDataRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string DescribeDomainPathDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainPathDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainPathDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainPathDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainPathDataRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeDomainPathDataRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long DescribeDomainPathDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainPathDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainPathDataRequest::getVersion()const
{
return version_;
}
void DescribeDomainPathDataRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
bool DescribeDomainPathDataRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribeDomainPathDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool DescribeDomainPathDataRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeDomainPathDataRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool DescribeDomainPathDataRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeDomainPathDataRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string DescribeDomainPathDataRequest::getRequestId()const
{
return requestId_;
}
void DescribeDomainPathDataRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}

View File

@@ -0,0 +1,132 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainPathDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainPathDataResult::DescribeDomainPathDataResult() :
ServiceResult()
{}
DescribeDomainPathDataResult::DescribeDomainPathDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainPathDataResult::~DescribeDomainPathDataResult()
{}
void DescribeDomainPathDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPathDataPerInterval = value["PathDataPerInterval"]["UsageData"];
for (auto value : allPathDataPerInterval)
{
UsageData usageDataObject;
usageDataObject.traffic = std::stoi(value["Traffic"].asString());
usageDataObject.acc = std::stoi(value["Acc"].asString());
usageDataObject.path = value["Path"].asString();
usageDataObject.time = value["Time"].asString();
pathDataPerInterval_.push_back(usageDataObject);
}
domainName_ = value["DomainName"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
pageSize_ = std::stoi(value["PageSize"].asString());
pageNumber_ = std::stoi(value["PageNumber"].asString());
dataInterval_ = value["DataInterval"].asString();
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeDomainPathDataResult::getTotalCount()const
{
return totalCount_;
}
void DescribeDomainPathDataResult::setTotalCount(int totalCount)
{
totalCount_ = totalCount;
}
std::string DescribeDomainPathDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainPathDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
int DescribeDomainPathDataResult::getPageSize()const
{
return pageSize_;
}
void DescribeDomainPathDataResult::setPageSize(int pageSize)
{
pageSize_ = pageSize;
}
std::string DescribeDomainPathDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainPathDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
int DescribeDomainPathDataResult::getPageNumber()const
{
return pageNumber_;
}
void DescribeDomainPathDataResult::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
}
std::string DescribeDomainPathDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainPathDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}
std::string DescribeDomainPathDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainPathDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}

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/cdn/model/DescribeDomainPvDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainPvDataRequest::DescribeDomainPvDataRequest() :
CdnRequest("DescribeDomainPvData")
{}
DescribeDomainPvDataRequest::~DescribeDomainPvDataRequest()
{}
std::string DescribeDomainPvDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainPvDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainPvDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainPvDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainPvDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainPvDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainPvDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainPvDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainPvDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainPvDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainPvDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainPvDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainPvDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainPvDataResult::DescribeDomainPvDataResult() :
ServiceResult()
{}
DescribeDomainPvDataResult::DescribeDomainPvDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainPvDataResult::~DescribeDomainPvDataResult()
{}
void DescribeDomainPvDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPvDataInterval = value["PvDataInterval"]["UsageData"];
for (auto value : allPvDataInterval)
{
UsageData usageDataObject;
usageDataObject.timeStamp = value["TimeStamp"].asString();
usageDataObject.value = value["Value"].asString();
pvDataInterval_.push_back(usageDataObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainPvDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainPvDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainPvDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainPvDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainPvDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainPvDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainPvDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainPvDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,281 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainQoSRtRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainQoSRtRequest::DescribeDomainQoSRtRequest() :
CdnRequest("DescribeDomainQoSRt")
{}
DescribeDomainQoSRtRequest::~DescribeDomainQoSRtRequest()
{}
std::string DescribeDomainQoSRtRequest::getApp_ip()const
{
return app_ip_;
}
void DescribeDomainQoSRtRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
long DescribeDomainQoSRtRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeDomainQoSRtRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
std::string DescribeDomainQoSRtRequest::getIp()const
{
return ip_;
}
void DescribeDomainQoSRtRequest::setIp(const std::string& ip)
{
ip_ = ip;
setParameter("Ip", ip);
}
std::string DescribeDomainQoSRtRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainQoSRtRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
bool DescribeDomainQoSRtRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribeDomainQoSRtRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string DescribeDomainQoSRtRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainQoSRtRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainQoSRtRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeDomainQoSRtRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
std::string DescribeDomainQoSRtRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainQoSRtRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainQoSRtRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainQoSRtRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainQoSRtRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribeDomainQoSRtRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribeDomainQoSRtRequest::getVersion()const
{
return version_;
}
void DescribeDomainQoSRtRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
std::string DescribeDomainQoSRtRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribeDomainQoSRtRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribeDomainQoSRtRequest::getCallerType()const
{
return callerType_;
}
void DescribeDomainQoSRtRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool DescribeDomainQoSRtRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribeDomainQoSRtRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool DescribeDomainQoSRtRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeDomainQoSRtRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string DescribeDomainQoSRtRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainQoSRtRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool DescribeDomainQoSRtRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeDomainQoSRtRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string DescribeDomainQoSRtRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainQoSRtRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainQoSRtRequest::getRequestId()const
{
return requestId_;
}
void DescribeDomainQoSRtRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string DescribeDomainQoSRtRequest::getRequestContent()const
{
return requestContent_;
}
void DescribeDomainQoSRtRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string DescribeDomainQoSRtRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribeDomainQoSRtRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribeDomainQoSRtRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribeDomainQoSRtRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long DescribeDomainQoSRtRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeDomainQoSRtRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -0,0 +1,98 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainQoSRtResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainQoSRtResult::DescribeDomainQoSRtResult() :
ServiceResult()
{}
DescribeDomainQoSRtResult::DescribeDomainQoSRtResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainQoSRtResult::~DescribeDomainQoSRtResult()
{}
void DescribeDomainQoSRtResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContent = value["Content"]["Data"];
for (auto value : allContent)
{
Data dataObject;
dataObject.more5s = value["More5s"].asString();
dataObject.time = value["Time"].asString();
dataObject.more3s = value["More3s"].asString();
content_.push_back(dataObject);
}
domainName_ = value["DomainName"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
ip_ = value["Ip"].asString();
}
std::string DescribeDomainQoSRtResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainQoSRtResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainQoSRtResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainQoSRtResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainQoSRtResult::getIp()const
{
return ip_;
}
void DescribeDomainQoSRtResult::setIp(const std::string& ip)
{
ip_ = ip;
}
std::string DescribeDomainQoSRtResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainQoSRtResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,160 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainQpsDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainQpsDataRequest::DescribeDomainQpsDataRequest() :
CdnRequest("DescribeDomainQpsData")
{}
DescribeDomainQpsDataRequest::~DescribeDomainQpsDataRequest()
{}
std::string DescribeDomainQpsDataRequest::getFixTimeGap()const
{
return fixTimeGap_;
}
void DescribeDomainQpsDataRequest::setFixTimeGap(const std::string& fixTimeGap)
{
fixTimeGap_ = fixTimeGap;
setParameter("FixTimeGap", fixTimeGap);
}
std::string DescribeDomainQpsDataRequest::getTimeMerge()const
{
return timeMerge_;
}
void DescribeDomainQpsDataRequest::setTimeMerge(const std::string& timeMerge)
{
timeMerge_ = timeMerge;
setParameter("TimeMerge", timeMerge);
}
std::string DescribeDomainQpsDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainQpsDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainQpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainQpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainQpsDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainQpsDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainQpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainQpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainQpsDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainQpsDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
long DescribeDomainQpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainQpsDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainQpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainQpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDomainQpsDataRequest::getDomainType()const
{
return domainType_;
}
void DescribeDomainQpsDataRequest::setDomainType(const std::string& domainType)
{
domainType_ = domainType;
setParameter("DomainType", domainType);
}
std::string DescribeDomainQpsDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainQpsDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainQpsDataRequest::getInterval()const
{
return interval_;
}
void DescribeDomainQpsDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainQpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainQpsDataResult::DescribeDomainQpsDataResult() :
ServiceResult()
{}
DescribeDomainQpsDataResult::DescribeDomainQpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainQpsDataResult::~DescribeDomainQpsDataResult()
{}
void DescribeDomainQpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allQpsDataInterval = value["QpsDataInterval"]["DataModule"];
for (auto value : allQpsDataInterval)
{
DataModule dataModuleObject;
dataModuleObject.timeStamp = value["TimeStamp"].asString();
dataModuleObject.value = value["Value"].asString();
dataModuleObject.domesticValue = value["DomesticValue"].asString();
dataModuleObject.overseasValue = value["OverseasValue"].asString();
dataModuleObject.accValue = value["AccValue"].asString();
dataModuleObject.accDomesticValue = value["AccDomesticValue"].asString();
dataModuleObject.accOverseasValue = value["AccOverseasValue"].asString();
dataModuleObject.dynamicValue = value["DynamicValue"].asString();
dataModuleObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
dataModuleObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
dataModuleObject.staticValue = value["StaticValue"].asString();
dataModuleObject.staticDomesticValue = value["StaticDomesticValue"].asString();
dataModuleObject.staticOverseasValue = value["StaticOverseasValue"].asString();
qpsDataInterval_.push_back(dataModuleObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainQpsDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainQpsDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainQpsDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainQpsDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainQpsDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainQpsDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainQpsDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainQpsDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,303 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainRealTimeBpsDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeBpsDataRequest::DescribeDomainRealTimeBpsDataRequest() :
CdnRequest("DescribeDomainRealTimeBpsData")
{}
DescribeDomainRealTimeBpsDataRequest::~DescribeDomainRealTimeBpsDataRequest()
{}
long DescribeDomainRealTimeBpsDataRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeDomainRealTimeBpsDataRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribeDomainRealTimeBpsDataRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribeDomainRealTimeBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string DescribeDomainRealTimeBpsDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainRealTimeBpsDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainRealTimeBpsDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainRealTimeBpsDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
std::string DescribeDomainRealTimeBpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainRealTimeBpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainRealTimeBpsDataRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribeDomainRealTimeBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribeDomainRealTimeBpsDataRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribeDomainRealTimeBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribeDomainRealTimeBpsDataRequest::getCallerType()const
{
return callerType_;
}
void DescribeDomainRealTimeBpsDataRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string DescribeDomainRealTimeBpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainRealTimeBpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDomainRealTimeBpsDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainRealTimeBpsDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainRealTimeBpsDataRequest::getRequestContent()const
{
return requestContent_;
}
void DescribeDomainRealTimeBpsDataRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string DescribeDomainRealTimeBpsDataRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribeDomainRealTimeBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribeDomainRealTimeBpsDataRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribeDomainRealTimeBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long DescribeDomainRealTimeBpsDataRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeDomainRealTimeBpsDataRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribeDomainRealTimeBpsDataRequest::getApp_ip()const
{
return app_ip_;
}
void DescribeDomainRealTimeBpsDataRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string DescribeDomainRealTimeBpsDataRequest::getProduct()const
{
return product_;
}
void DescribeDomainRealTimeBpsDataRequest::setProduct(const std::string& product)
{
product_ = product;
setParameter("Product", product);
}
std::string DescribeDomainRealTimeBpsDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainRealTimeBpsDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainRealTimeBpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainRealTimeBpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainRealTimeBpsDataRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeDomainRealTimeBpsDataRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long DescribeDomainRealTimeBpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainRealTimeBpsDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainRealTimeBpsDataRequest::getVersion()const
{
return version_;
}
void DescribeDomainRealTimeBpsDataRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
bool DescribeDomainRealTimeBpsDataRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribeDomainRealTimeBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool DescribeDomainRealTimeBpsDataRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeDomainRealTimeBpsDataRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool DescribeDomainRealTimeBpsDataRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeDomainRealTimeBpsDataRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string DescribeDomainRealTimeBpsDataRequest::getRequestId()const
{
return requestId_;
}
void DescribeDomainRealTimeBpsDataRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}

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/cdn/model/DescribeDomainRealTimeBpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeBpsDataResult::DescribeDomainRealTimeBpsDataResult() :
ServiceResult()
{}
DescribeDomainRealTimeBpsDataResult::DescribeDomainRealTimeBpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainRealTimeBpsDataResult::~DescribeDomainRealTimeBpsDataResult()
{}
void DescribeDomainRealTimeBpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["BpsModel"];
for (auto value : allData)
{
BpsModel bpsModelObject;
bpsModelObject.bps = std::stof(value["Bps"].asString());
bpsModelObject.timeStamp = value["TimeStamp"].asString();
data_.push_back(bpsModelObject);
}
}

View File

@@ -0,0 +1,281 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainRealTimeByteHitRateDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeByteHitRateDataRequest::DescribeDomainRealTimeByteHitRateDataRequest() :
CdnRequest("DescribeDomainRealTimeByteHitRateData")
{}
DescribeDomainRealTimeByteHitRateDataRequest::~DescribeDomainRealTimeByteHitRateDataRequest()
{}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getApp_ip()const
{
return app_ip_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getProduct()const
{
return product_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setProduct(const std::string& product)
{
product_ = product;
setParameter("Product", product);
}
long DescribeDomainRealTimeByteHitRateDataRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
bool DescribeDomainRealTimeByteHitRateDataRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainRealTimeByteHitRateDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getVersion()const
{
return version_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerType()const
{
return callerType_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool DescribeDomainRealTimeByteHitRateDataRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool DescribeDomainRealTimeByteHitRateDataRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool DescribeDomainRealTimeByteHitRateDataRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getRequestId()const
{
return requestId_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getRequestContent()const
{
return requestContent_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long DescribeDomainRealTimeByteHitRateDataRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeDomainRealTimeByteHitRateDataRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

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/cdn/model/DescribeDomainRealTimeByteHitRateDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeByteHitRateDataResult::DescribeDomainRealTimeByteHitRateDataResult() :
ServiceResult()
{}
DescribeDomainRealTimeByteHitRateDataResult::DescribeDomainRealTimeByteHitRateDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainRealTimeByteHitRateDataResult::~DescribeDomainRealTimeByteHitRateDataResult()
{}
void DescribeDomainRealTimeByteHitRateDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["ByteHitRateDataModel"];
for (auto value : allData)
{
ByteHitRateDataModel byteHitRateDataModelObject;
byteHitRateDataModelObject.byteHitRate = std::stof(value["ByteHitRate"].asString());
byteHitRateDataModelObject.timeStamp = value["TimeStamp"].asString();
data_.push_back(byteHitRateDataModelObject);
}
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainRealTimeDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeDataRequest::DescribeDomainRealTimeDataRequest() :
CdnRequest("DescribeDomainRealTimeData")
{}
DescribeDomainRealTimeDataRequest::~DescribeDomainRealTimeDataRequest()
{}
std::string DescribeDomainRealTimeDataRequest::getField()const
{
return field_;
}
void DescribeDomainRealTimeDataRequest::setField(const std::string& field)
{
field_ = field;
setParameter("Field", field);
}
std::string DescribeDomainRealTimeDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainRealTimeDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainRealTimeDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainRealTimeDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainRealTimeDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainRealTimeDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainRealTimeDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainRealTimeDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainRealTimeDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainRealTimeDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainRealTimeDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainRealTimeDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainRealTimeDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeDataResult::DescribeDomainRealTimeDataResult() :
ServiceResult()
{}
DescribeDomainRealTimeDataResult::DescribeDomainRealTimeDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainRealTimeDataResult::~DescribeDomainRealTimeDataResult()
{}
void DescribeDomainRealTimeDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataPerInterval = value["DataPerInterval"]["DataModule"];
for (auto value : allDataPerInterval)
{
DataModule dataModuleObject;
dataModuleObject.timeStamp = value["TimeStamp"].asString();
dataModuleObject.value = value["Value"].asString();
dataPerInterval_.push_back(dataModuleObject);
}
domainName_ = value["DomainName"].asString();
field_ = value["Field"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainRealTimeDataResult::getField()const
{
return field_;
}
void DescribeDomainRealTimeDataResult::setField(const std::string& field)
{
field_ = field;
}
std::string DescribeDomainRealTimeDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainRealTimeDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainRealTimeDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainRealTimeDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainRealTimeDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainRealTimeDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

View File

@@ -0,0 +1,303 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainRealTimeQpsDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeQpsDataRequest::DescribeDomainRealTimeQpsDataRequest() :
CdnRequest("DescribeDomainRealTimeQpsData")
{}
DescribeDomainRealTimeQpsDataRequest::~DescribeDomainRealTimeQpsDataRequest()
{}
long DescribeDomainRealTimeQpsDataRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeDomainRealTimeQpsDataRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribeDomainRealTimeQpsDataRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribeDomainRealTimeQpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string DescribeDomainRealTimeQpsDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainRealTimeQpsDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainRealTimeQpsDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainRealTimeQpsDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
std::string DescribeDomainRealTimeQpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainRealTimeQpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainRealTimeQpsDataRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribeDomainRealTimeQpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribeDomainRealTimeQpsDataRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribeDomainRealTimeQpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribeDomainRealTimeQpsDataRequest::getCallerType()const
{
return callerType_;
}
void DescribeDomainRealTimeQpsDataRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string DescribeDomainRealTimeQpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainRealTimeQpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDomainRealTimeQpsDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainRealTimeQpsDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainRealTimeQpsDataRequest::getRequestContent()const
{
return requestContent_;
}
void DescribeDomainRealTimeQpsDataRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string DescribeDomainRealTimeQpsDataRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribeDomainRealTimeQpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribeDomainRealTimeQpsDataRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribeDomainRealTimeQpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long DescribeDomainRealTimeQpsDataRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeDomainRealTimeQpsDataRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribeDomainRealTimeQpsDataRequest::getApp_ip()const
{
return app_ip_;
}
void DescribeDomainRealTimeQpsDataRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string DescribeDomainRealTimeQpsDataRequest::getProduct()const
{
return product_;
}
void DescribeDomainRealTimeQpsDataRequest::setProduct(const std::string& product)
{
product_ = product;
setParameter("Product", product);
}
std::string DescribeDomainRealTimeQpsDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainRealTimeQpsDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainRealTimeQpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainRealTimeQpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainRealTimeQpsDataRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeDomainRealTimeQpsDataRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long DescribeDomainRealTimeQpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainRealTimeQpsDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainRealTimeQpsDataRequest::getVersion()const
{
return version_;
}
void DescribeDomainRealTimeQpsDataRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
bool DescribeDomainRealTimeQpsDataRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribeDomainRealTimeQpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool DescribeDomainRealTimeQpsDataRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeDomainRealTimeQpsDataRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool DescribeDomainRealTimeQpsDataRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeDomainRealTimeQpsDataRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string DescribeDomainRealTimeQpsDataRequest::getRequestId()const
{
return requestId_;
}
void DescribeDomainRealTimeQpsDataRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}

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/cdn/model/DescribeDomainRealTimeQpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeQpsDataResult::DescribeDomainRealTimeQpsDataResult() :
ServiceResult()
{}
DescribeDomainRealTimeQpsDataResult::DescribeDomainRealTimeQpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainRealTimeQpsDataResult::~DescribeDomainRealTimeQpsDataResult()
{}
void DescribeDomainRealTimeQpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["QpsModel"];
for (auto value : allData)
{
QpsModel qpsModelObject;
qpsModelObject.qps = std::stof(value["Qps"].asString());
qpsModelObject.timeStamp = value["TimeStamp"].asString();
data_.push_back(qpsModelObject);
}
}

View File

@@ -0,0 +1,281 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainRealTimeReqHitRateDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeReqHitRateDataRequest::DescribeDomainRealTimeReqHitRateDataRequest() :
CdnRequest("DescribeDomainRealTimeReqHitRateData")
{}
DescribeDomainRealTimeReqHitRateDataRequest::~DescribeDomainRealTimeReqHitRateDataRequest()
{}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getApp_ip()const
{
return app_ip_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getProduct()const
{
return product_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setProduct(const std::string& product)
{
product_ = product;
setParameter("Product", product);
}
long DescribeDomainRealTimeReqHitRateDataRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
bool DescribeDomainRealTimeReqHitRateDataRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainRealTimeReqHitRateDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getVersion()const
{
return version_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerType()const
{
return callerType_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool DescribeDomainRealTimeReqHitRateDataRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool DescribeDomainRealTimeReqHitRateDataRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool DescribeDomainRealTimeReqHitRateDataRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getRequestId()const
{
return requestId_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getRequestContent()const
{
return requestContent_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long DescribeDomainRealTimeReqHitRateDataRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeDomainRealTimeReqHitRateDataRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

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/cdn/model/DescribeDomainRealTimeReqHitRateDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRealTimeReqHitRateDataResult::DescribeDomainRealTimeReqHitRateDataResult() :
ServiceResult()
{}
DescribeDomainRealTimeReqHitRateDataResult::DescribeDomainRealTimeReqHitRateDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainRealTimeReqHitRateDataResult::~DescribeDomainRealTimeReqHitRateDataResult()
{}
void DescribeDomainRealTimeReqHitRateDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["ReqHitRateDataModel"];
for (auto value : allData)
{
ReqHitRateDataModel reqHitRateDataModelObject;
reqHitRateDataModelObject.reqHitRate = std::stof(value["ReqHitRate"].asString());
reqHitRateDataModelObject.timeStamp = value["TimeStamp"].asString();
data_.push_back(reqHitRateDataModelObject);
}
}

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/cdn/model/DescribeDomainRegionDataRequest.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRegionDataRequest::DescribeDomainRegionDataRequest() :
CdnRequest("DescribeDomainRegionData")
{}
DescribeDomainRegionDataRequest::~DescribeDomainRegionDataRequest()
{}
std::string DescribeDomainRegionDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainRegionDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainRegionDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainRegionDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainRegionDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainRegionDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainRegionDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainRegionDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainRegionDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainRegionDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainRegionDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainRegionDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/cdn/model/DescribeDomainRegionDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainRegionDataResult::DescribeDomainRegionDataResult() :
ServiceResult()
{}
DescribeDomainRegionDataResult::DescribeDomainRegionDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainRegionDataResult::~DescribeDomainRegionDataResult()
{}
void DescribeDomainRegionDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allValue = value["Value"]["RegionProportionData"];
for (auto value : allValue)
{
RegionProportionData regionProportionDataObject;
regionProportionDataObject.region = value["Region"].asString();
regionProportionDataObject.proportion = value["Proportion"].asString();
regionProportionDataObject.regionEname = value["RegionEname"].asString();
regionProportionDataObject.avgObjectSize = value["AvgObjectSize"].asString();
regionProportionDataObject.avgResponseTime = value["AvgResponseTime"].asString();
regionProportionDataObject.bps = value["Bps"].asString();
regionProportionDataObject.byteHitRate = value["ByteHitRate"].asString();
regionProportionDataObject.qps = value["Qps"].asString();
regionProportionDataObject.reqErrRate = value["ReqErrRate"].asString();
regionProportionDataObject.reqHitRate = value["ReqHitRate"].asString();
regionProportionDataObject.avgResponseRate = value["AvgResponseRate"].asString();
regionProportionDataObject.totalBytes = value["TotalBytes"].asString();
regionProportionDataObject.bytesProportion = value["BytesProportion"].asString();
regionProportionDataObject.totalQuery = value["TotalQuery"].asString();
value_.push_back(regionProportionDataObject);
}
domainName_ = value["DomainName"].asString();
dataInterval_ = value["DataInterval"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainRegionDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainRegionDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
std::string DescribeDomainRegionDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainRegionDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
std::string DescribeDomainRegionDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainRegionDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = dataInterval;
}
std::string DescribeDomainRegionDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainRegionDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}

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