Support AK Audit API.

This commit is contained in:
sdk-team
2022-07-08 03:47:44 +00:00
parent e18ac68719
commit 015109df88
62 changed files with 2688 additions and 1091 deletions

View File

@@ -31,21 +31,21 @@ ActiontrailClient::ActiontrailClient(const Credentials &credentials, const Clien
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
ActiontrailClient::ActiontrailClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
ActiontrailClient::ActiontrailClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
ActiontrailClient::~ActiontrailClient()
@@ -267,6 +267,222 @@ ActiontrailClient::DescribeTrailsOutcomeCallable ActiontrailClient::describeTrai
return task->get_future();
}
ActiontrailClient::GetAccessKeyLastUsedEventsOutcome ActiontrailClient::getAccessKeyLastUsedEvents(const GetAccessKeyLastUsedEventsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAccessKeyLastUsedEventsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetAccessKeyLastUsedEventsOutcome(GetAccessKeyLastUsedEventsResult(outcome.result()));
else
return GetAccessKeyLastUsedEventsOutcome(outcome.error());
}
void ActiontrailClient::getAccessKeyLastUsedEventsAsync(const GetAccessKeyLastUsedEventsRequest& request, const GetAccessKeyLastUsedEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getAccessKeyLastUsedEvents(request), context);
};
asyncExecute(new Runnable(fn));
}
ActiontrailClient::GetAccessKeyLastUsedEventsOutcomeCallable ActiontrailClient::getAccessKeyLastUsedEventsCallable(const GetAccessKeyLastUsedEventsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedEventsOutcome()>>(
[this, request]()
{
return this->getAccessKeyLastUsedEvents(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ActiontrailClient::GetAccessKeyLastUsedInfoOutcome ActiontrailClient::getAccessKeyLastUsedInfo(const GetAccessKeyLastUsedInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAccessKeyLastUsedInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetAccessKeyLastUsedInfoOutcome(GetAccessKeyLastUsedInfoResult(outcome.result()));
else
return GetAccessKeyLastUsedInfoOutcome(outcome.error());
}
void ActiontrailClient::getAccessKeyLastUsedInfoAsync(const GetAccessKeyLastUsedInfoRequest& request, const GetAccessKeyLastUsedInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getAccessKeyLastUsedInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
ActiontrailClient::GetAccessKeyLastUsedInfoOutcomeCallable ActiontrailClient::getAccessKeyLastUsedInfoCallable(const GetAccessKeyLastUsedInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedInfoOutcome()>>(
[this, request]()
{
return this->getAccessKeyLastUsedInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ActiontrailClient::GetAccessKeyLastUsedIpsOutcome ActiontrailClient::getAccessKeyLastUsedIps(const GetAccessKeyLastUsedIpsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAccessKeyLastUsedIpsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetAccessKeyLastUsedIpsOutcome(GetAccessKeyLastUsedIpsResult(outcome.result()));
else
return GetAccessKeyLastUsedIpsOutcome(outcome.error());
}
void ActiontrailClient::getAccessKeyLastUsedIpsAsync(const GetAccessKeyLastUsedIpsRequest& request, const GetAccessKeyLastUsedIpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getAccessKeyLastUsedIps(request), context);
};
asyncExecute(new Runnable(fn));
}
ActiontrailClient::GetAccessKeyLastUsedIpsOutcomeCallable ActiontrailClient::getAccessKeyLastUsedIpsCallable(const GetAccessKeyLastUsedIpsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedIpsOutcome()>>(
[this, request]()
{
return this->getAccessKeyLastUsedIps(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ActiontrailClient::GetAccessKeyLastUsedProductsOutcome ActiontrailClient::getAccessKeyLastUsedProducts(const GetAccessKeyLastUsedProductsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAccessKeyLastUsedProductsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetAccessKeyLastUsedProductsOutcome(GetAccessKeyLastUsedProductsResult(outcome.result()));
else
return GetAccessKeyLastUsedProductsOutcome(outcome.error());
}
void ActiontrailClient::getAccessKeyLastUsedProductsAsync(const GetAccessKeyLastUsedProductsRequest& request, const GetAccessKeyLastUsedProductsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getAccessKeyLastUsedProducts(request), context);
};
asyncExecute(new Runnable(fn));
}
ActiontrailClient::GetAccessKeyLastUsedProductsOutcomeCallable ActiontrailClient::getAccessKeyLastUsedProductsCallable(const GetAccessKeyLastUsedProductsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedProductsOutcome()>>(
[this, request]()
{
return this->getAccessKeyLastUsedProducts(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ActiontrailClient::GetAccessKeyLastUsedResourcesOutcome ActiontrailClient::getAccessKeyLastUsedResources(const GetAccessKeyLastUsedResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAccessKeyLastUsedResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetAccessKeyLastUsedResourcesOutcome(GetAccessKeyLastUsedResourcesResult(outcome.result()));
else
return GetAccessKeyLastUsedResourcesOutcome(outcome.error());
}
void ActiontrailClient::getAccessKeyLastUsedResourcesAsync(const GetAccessKeyLastUsedResourcesRequest& request, const GetAccessKeyLastUsedResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getAccessKeyLastUsedResources(request), context);
};
asyncExecute(new Runnable(fn));
}
ActiontrailClient::GetAccessKeyLastUsedResourcesOutcomeCallable ActiontrailClient::getAccessKeyLastUsedResourcesCallable(const GetAccessKeyLastUsedResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedResourcesOutcome()>>(
[this, request]()
{
return this->getAccessKeyLastUsedResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ActiontrailClient::GetDeliveryHistoryJobOutcome ActiontrailClient::getDeliveryHistoryJob(const GetDeliveryHistoryJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDeliveryHistoryJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDeliveryHistoryJobOutcome(GetDeliveryHistoryJobResult(outcome.result()));
else
return GetDeliveryHistoryJobOutcome(outcome.error());
}
void ActiontrailClient::getDeliveryHistoryJobAsync(const GetDeliveryHistoryJobRequest& request, const GetDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDeliveryHistoryJob(request), context);
};
asyncExecute(new Runnable(fn));
}
ActiontrailClient::GetDeliveryHistoryJobOutcomeCallable ActiontrailClient::getDeliveryHistoryJobCallable(const GetDeliveryHistoryJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDeliveryHistoryJobOutcome()>>(
[this, request]()
{
return this->getDeliveryHistoryJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ActiontrailClient::GetTrailStatusOutcome ActiontrailClient::getTrailStatus(const GetTrailStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,51 +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/actiontrail/model/CreateDeliveryHistoryJobRequest.h>
using AlibabaCloud::Actiontrail::Model::CreateDeliveryHistoryJobRequest;
CreateDeliveryHistoryJobRequest::CreateDeliveryHistoryJobRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "CreateDeliveryHistoryJob")
{
setMethod(HttpRequest::Method::Post);
}
CreateDeliveryHistoryJobRequest::~CreateDeliveryHistoryJobRequest()
{}
std::string CreateDeliveryHistoryJobRequest::getClientToken()const
{
return clientToken_;
*/
#include <alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h>
using AlibabaCloud::Actiontrail::Model::CreateDeliveryHistoryJobRequest;
CreateDeliveryHistoryJobRequest::CreateDeliveryHistoryJobRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "CreateDeliveryHistoryJob") {
setMethod(HttpRequest::Method::Post);
}
void CreateDeliveryHistoryJobRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
CreateDeliveryHistoryJobRequest::~CreateDeliveryHistoryJobRequest() {}
std::string CreateDeliveryHistoryJobRequest::getClientToken() const {
return clientToken_;
}
std::string CreateDeliveryHistoryJobRequest::getTrailName()const
{
return trailName_;
void CreateDeliveryHistoryJobRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
void CreateDeliveryHistoryJobRequest::setTrailName(const std::string& trailName)
{
trailName_ = trailName;
setParameter("TrailName", trailName);
std::string CreateDeliveryHistoryJobRequest::getTrailName() const {
return trailName_;
}
void CreateDeliveryHistoryJobRequest::setTrailName(const std::string &trailName) {
trailName_ = trailName;
setParameter(std::string("TrailName"), trailName);
}

View File

@@ -1,128 +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/actiontrail/model/CreateTrailRequest.h>
using AlibabaCloud::Actiontrail::Model::CreateTrailRequest;
CreateTrailRequest::CreateTrailRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "CreateTrail")
{
setMethod(HttpRequest::Method::Post);
}
CreateTrailRequest::~CreateTrailRequest()
{}
std::string CreateTrailRequest::getSlsProjectArn()const
{
return slsProjectArn_;
*/
#include <alibabacloud/actiontrail/model/CreateTrailRequest.h>
using AlibabaCloud::Actiontrail::Model::CreateTrailRequest;
CreateTrailRequest::CreateTrailRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "CreateTrail") {
setMethod(HttpRequest::Method::Post);
}
void CreateTrailRequest::setSlsProjectArn(const std::string& slsProjectArn)
{
slsProjectArn_ = slsProjectArn;
setParameter("SlsProjectArn", slsProjectArn);
CreateTrailRequest::~CreateTrailRequest() {}
std::string CreateTrailRequest::getSlsProjectArn() const {
return slsProjectArn_;
}
std::string CreateTrailRequest::getSlsWriteRoleArn()const
{
return slsWriteRoleArn_;
void CreateTrailRequest::setSlsProjectArn(const std::string &slsProjectArn) {
slsProjectArn_ = slsProjectArn;
setParameter(std::string("SlsProjectArn"), slsProjectArn);
}
void CreateTrailRequest::setSlsWriteRoleArn(const std::string& slsWriteRoleArn)
{
slsWriteRoleArn_ = slsWriteRoleArn;
setParameter("SlsWriteRoleArn", slsWriteRoleArn);
std::string CreateTrailRequest::getSlsWriteRoleArn() const {
return slsWriteRoleArn_;
}
bool CreateTrailRequest::getIsOrganizationTrail()const
{
return isOrganizationTrail_;
void CreateTrailRequest::setSlsWriteRoleArn(const std::string &slsWriteRoleArn) {
slsWriteRoleArn_ = slsWriteRoleArn;
setParameter(std::string("SlsWriteRoleArn"), slsWriteRoleArn);
}
void CreateTrailRequest::setIsOrganizationTrail(bool isOrganizationTrail)
{
isOrganizationTrail_ = isOrganizationTrail;
setParameter("IsOrganizationTrail", isOrganizationTrail ? "true" : "false");
bool CreateTrailRequest::getIsOrganizationTrail() const {
return isOrganizationTrail_;
}
std::string CreateTrailRequest::getOssKeyPrefix()const
{
return ossKeyPrefix_;
void CreateTrailRequest::setIsOrganizationTrail(bool isOrganizationTrail) {
isOrganizationTrail_ = isOrganizationTrail;
setParameter(std::string("IsOrganizationTrail"), isOrganizationTrail ? "true" : "false");
}
void CreateTrailRequest::setOssKeyPrefix(const std::string& ossKeyPrefix)
{
ossKeyPrefix_ = ossKeyPrefix;
setParameter("OssKeyPrefix", ossKeyPrefix);
std::string CreateTrailRequest::getOssKeyPrefix() const {
return ossKeyPrefix_;
}
std::string CreateTrailRequest::getOssWriteRoleArn()const
{
return ossWriteRoleArn_;
void CreateTrailRequest::setOssKeyPrefix(const std::string &ossKeyPrefix) {
ossKeyPrefix_ = ossKeyPrefix;
setParameter(std::string("OssKeyPrefix"), ossKeyPrefix);
}
void CreateTrailRequest::setOssWriteRoleArn(const std::string& ossWriteRoleArn)
{
ossWriteRoleArn_ = ossWriteRoleArn;
setParameter("OssWriteRoleArn", ossWriteRoleArn);
std::string CreateTrailRequest::getOssWriteRoleArn() const {
return ossWriteRoleArn_;
}
std::string CreateTrailRequest::getEventRW()const
{
return eventRW_;
void CreateTrailRequest::setOssWriteRoleArn(const std::string &ossWriteRoleArn) {
ossWriteRoleArn_ = ossWriteRoleArn;
setParameter(std::string("OssWriteRoleArn"), ossWriteRoleArn);
}
void CreateTrailRequest::setEventRW(const std::string& eventRW)
{
eventRW_ = eventRW;
setParameter("EventRW", eventRW);
std::string CreateTrailRequest::getEventRW() const {
return eventRW_;
}
std::string CreateTrailRequest::getName()const
{
return name_;
void CreateTrailRequest::setEventRW(const std::string &eventRW) {
eventRW_ = eventRW;
setParameter(std::string("EventRW"), eventRW);
}
void CreateTrailRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string CreateTrailRequest::getName() const {
return name_;
}
std::string CreateTrailRequest::getOssBucketName()const
{
return ossBucketName_;
void CreateTrailRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
void CreateTrailRequest::setOssBucketName(const std::string& ossBucketName)
{
ossBucketName_ = ossBucketName;
setParameter("OssBucketName", ossBucketName);
std::string CreateTrailRequest::getOssBucketName() const {
return ossBucketName_;
}
std::string CreateTrailRequest::getTrailRegion()const
{
return trailRegion_;
void CreateTrailRequest::setOssBucketName(const std::string &ossBucketName) {
ossBucketName_ = ossBucketName;
setParameter(std::string("OssBucketName"), ossBucketName);
}
void CreateTrailRequest::setTrailRegion(const std::string& trailRegion)
{
trailRegion_ = trailRegion;
setParameter("TrailRegion", trailRegion);
std::string CreateTrailRequest::getTrailRegion() const {
return trailRegion_;
}
void CreateTrailRequest::setTrailRegion(const std::string &trailRegion) {
trailRegion_ = trailRegion;
setParameter(std::string("TrailRegion"), trailRegion);
}

View File

@@ -41,6 +41,8 @@ void CreateTrailResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["SlsProjectArn"].isNull())
slsProjectArn_ = value["SlsProjectArn"].asString();
if(!value["OssWriteRoleArn"].isNull())
ossWriteRoleArn_ = value["OssWriteRoleArn"].asString();
if(!value["EventRW"].isNull())
eventRW_ = value["EventRW"].asString();
if(!value["HomeRegion"].isNull())
@@ -51,8 +53,6 @@ void CreateTrailResult::parse(const std::string &payload)
ossBucketName_ = value["OssBucketName"].asString();
if(!value["SlsWriteRoleArn"].isNull())
slsWriteRoleArn_ = value["SlsWriteRoleArn"].asString();
if(!value["OssWriteRoleArn"].isNull())
ossWriteRoleArn_ = value["OssWriteRoleArn"].asString();
if(!value["TrailRegion"].isNull())
trailRegion_ = value["TrailRegion"].asString();
if(!value["Name"].isNull())
@@ -85,16 +85,16 @@ std::string CreateTrailResult::getOssBucketName()const
return ossBucketName_;
}
std::string CreateTrailResult::getSlsWriteRoleArn()const
{
return slsWriteRoleArn_;
}
std::string CreateTrailResult::getOssWriteRoleArn()const
{
return ossWriteRoleArn_;
}
std::string CreateTrailResult::getSlsWriteRoleArn()const
{
return slsWriteRoleArn_;
}
std::string CreateTrailResult::getTrailRegion()const
{
return trailRegion_;

View File

@@ -1,40 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h>
using AlibabaCloud::Actiontrail::Model::DeleteDeliveryHistoryJobRequest;
DeleteDeliveryHistoryJobRequest::DeleteDeliveryHistoryJobRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "DeleteDeliveryHistoryJob")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDeliveryHistoryJobRequest::~DeleteDeliveryHistoryJobRequest()
{}
int DeleteDeliveryHistoryJobRequest::getJobId()const
{
return jobId_;
*/
#include <alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h>
using AlibabaCloud::Actiontrail::Model::DeleteDeliveryHistoryJobRequest;
DeleteDeliveryHistoryJobRequest::DeleteDeliveryHistoryJobRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "DeleteDeliveryHistoryJob") {
setMethod(HttpRequest::Method::Post);
}
void DeleteDeliveryHistoryJobRequest::setJobId(int jobId)
{
jobId_ = jobId;
setParameter("JobId", std::to_string(jobId));
DeleteDeliveryHistoryJobRequest::~DeleteDeliveryHistoryJobRequest() {}
int DeleteDeliveryHistoryJobRequest::getJobId() const {
return jobId_;
}
void DeleteDeliveryHistoryJobRequest::setJobId(int jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), std::to_string(jobId));
}

View File

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

View File

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

View File

@@ -1,62 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/DescribeTrailsRequest.h>
using AlibabaCloud::Actiontrail::Model::DescribeTrailsRequest;
DescribeTrailsRequest::DescribeTrailsRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "DescribeTrails")
{
setMethod(HttpRequest::Method::Post);
}
DescribeTrailsRequest::~DescribeTrailsRequest()
{}
bool DescribeTrailsRequest::getIncludeOrganizationTrail()const
{
return includeOrganizationTrail_;
*/
#include <alibabacloud/actiontrail/model/DescribeTrailsRequest.h>
using AlibabaCloud::Actiontrail::Model::DescribeTrailsRequest;
DescribeTrailsRequest::DescribeTrailsRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "DescribeTrails") {
setMethod(HttpRequest::Method::Post);
}
void DescribeTrailsRequest::setIncludeOrganizationTrail(bool includeOrganizationTrail)
{
includeOrganizationTrail_ = includeOrganizationTrail;
setParameter("IncludeOrganizationTrail", includeOrganizationTrail ? "true" : "false");
DescribeTrailsRequest::~DescribeTrailsRequest() {}
bool DescribeTrailsRequest::getIncludeOrganizationTrail() const {
return includeOrganizationTrail_;
}
bool DescribeTrailsRequest::getIncludeShadowTrails()const
{
return includeShadowTrails_;
void DescribeTrailsRequest::setIncludeOrganizationTrail(bool includeOrganizationTrail) {
includeOrganizationTrail_ = includeOrganizationTrail;
setParameter(std::string("IncludeOrganizationTrail"), includeOrganizationTrail ? "true" : "false");
}
void DescribeTrailsRequest::setIncludeShadowTrails(bool includeShadowTrails)
{
includeShadowTrails_ = includeShadowTrails;
setParameter("IncludeShadowTrails", includeShadowTrails ? "true" : "false");
bool DescribeTrailsRequest::getIncludeShadowTrails() const {
return includeShadowTrails_;
}
std::string DescribeTrailsRequest::getNameList()const
{
return nameList_;
void DescribeTrailsRequest::setIncludeShadowTrails(bool includeShadowTrails) {
includeShadowTrails_ = includeShadowTrails;
setParameter(std::string("IncludeShadowTrails"), includeShadowTrails ? "true" : "false");
}
void DescribeTrailsRequest::setNameList(const std::string& nameList)
{
nameList_ = nameList;
setParameter("NameList", nameList);
std::string DescribeTrailsRequest::getNameList() const {
return nameList_;
}
void DescribeTrailsRequest::setNameList(const std::string &nameList) {
nameList_ = nameList;
setParameter(std::string("NameList"), nameList);
}

View File

@@ -43,44 +43,46 @@ void DescribeTrailsResult::parse(const std::string &payload)
for (auto valueTrailListTrail : allTrailListNode)
{
Trail trailListObject;
if(!valueTrailListTrail["Status"].isNull())
trailListObject.status = valueTrailListTrail["Status"].asString();
if(!valueTrailListTrail["HomeRegion"].isNull())
trailListObject.homeRegion = valueTrailListTrail["HomeRegion"].asString();
if(!valueTrailListTrail["StartLoggingTime"].isNull())
trailListObject.startLoggingTime = valueTrailListTrail["StartLoggingTime"].asString();
if(!valueTrailListTrail["CreateTime"].isNull())
trailListObject.createTime = valueTrailListTrail["CreateTime"].asString();
if(!valueTrailListTrail["StopLoggingTime"].isNull())
trailListObject.stopLoggingTime = valueTrailListTrail["StopLoggingTime"].asString();
if(!valueTrailListTrail["OrganizationId"].isNull())
trailListObject.organizationId = valueTrailListTrail["OrganizationId"].asString();
if(!valueTrailListTrail["SlsWriteRoleArn"].isNull())
trailListObject.slsWriteRoleArn = valueTrailListTrail["SlsWriteRoleArn"].asString();
if(!valueTrailListTrail["OssBucketLocation"].isNull())
trailListObject.ossBucketLocation = valueTrailListTrail["OssBucketLocation"].asString();
if(!valueTrailListTrail["TrailRegion"].isNull())
trailListObject.trailRegion = valueTrailListTrail["TrailRegion"].asString();
if(!valueTrailListTrail["Name"].isNull())
trailListObject.name = valueTrailListTrail["Name"].asString();
if(!valueTrailListTrail["IsOrganizationTrail"].isNull())
trailListObject.isOrganizationTrail = valueTrailListTrail["IsOrganizationTrail"].asString() == "true";
if(!valueTrailListTrail["SlsProjectArn"].isNull())
trailListObject.slsProjectArn = valueTrailListTrail["SlsProjectArn"].asString();
if(!valueTrailListTrail["EventRW"].isNull())
trailListObject.eventRW = valueTrailListTrail["EventRW"].asString();
if(!valueTrailListTrail["OssKeyPrefix"].isNull())
trailListObject.ossKeyPrefix = valueTrailListTrail["OssKeyPrefix"].asString();
if(!valueTrailListTrail["Status"].isNull())
trailListObject.status = valueTrailListTrail["Status"].asString();
if(!valueTrailListTrail["UpdateTime"].isNull())
trailListObject.updateTime = valueTrailListTrail["UpdateTime"].asString();
if(!valueTrailListTrail["Region"].isNull())
trailListObject.region = valueTrailListTrail["Region"].asString();
if(!valueTrailListTrail["OssBucketName"].isNull())
trailListObject.ossBucketName = valueTrailListTrail["OssBucketName"].asString();
if(!valueTrailListTrail["HomeRegion"].isNull())
trailListObject.homeRegion = valueTrailListTrail["HomeRegion"].asString();
if(!valueTrailListTrail["CreateTime"].isNull())
trailListObject.createTime = valueTrailListTrail["CreateTime"].asString();
if(!valueTrailListTrail["OssKeyPrefix"].isNull())
trailListObject.ossKeyPrefix = valueTrailListTrail["OssKeyPrefix"].asString();
if(!valueTrailListTrail["EventRW"].isNull())
trailListObject.eventRW = valueTrailListTrail["EventRW"].asString();
if(!valueTrailListTrail["StartLoggingTime"].isNull())
trailListObject.startLoggingTime = valueTrailListTrail["StartLoggingTime"].asString();
if(!valueTrailListTrail["OssWriteRoleArn"].isNull())
trailListObject.ossWriteRoleArn = valueTrailListTrail["OssWriteRoleArn"].asString();
if(!valueTrailListTrail["SlsProjectArn"].isNull())
trailListObject.slsProjectArn = valueTrailListTrail["SlsProjectArn"].asString();
if(!valueTrailListTrail["IsOrganizationTrail"].isNull())
trailListObject.isOrganizationTrail = valueTrailListTrail["IsOrganizationTrail"].asString() == "true";
if(!valueTrailListTrail["SlsWriteRoleArn"].isNull())
trailListObject.slsWriteRoleArn = valueTrailListTrail["SlsWriteRoleArn"].asString();
if(!valueTrailListTrail["StopLoggingTime"].isNull())
trailListObject.stopLoggingTime = valueTrailListTrail["StopLoggingTime"].asString();
if(!valueTrailListTrail["Name"].isNull())
trailListObject.name = valueTrailListTrail["Name"].asString();
if(!valueTrailListTrail["OssBucketName"].isNull())
trailListObject.ossBucketName = valueTrailListTrail["OssBucketName"].asString();
if(!valueTrailListTrail["Region"].isNull())
trailListObject.region = valueTrailListTrail["Region"].asString();
if(!valueTrailListTrail["OrganizationId"].isNull())
trailListObject.organizationId = valueTrailListTrail["OrganizationId"].asString();
if(!valueTrailListTrail["OssBucketLocation"].isNull())
trailListObject.ossBucketLocation = valueTrailListTrail["OssBucketLocation"].asString();
if(!valueTrailListTrail["IsShadowTrail"].isNull())
trailListObject.isShadowTrail = std::stol(valueTrailListTrail["IsShadowTrail"].asString());
if(!valueTrailListTrail["TrailArn"].isNull())
trailListObject.trailArn = valueTrailListTrail["TrailArn"].asString();
trailList_.push_back(trailListObject);
}

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/actiontrail/model/GetAccessKeyLastUsedEventsRequest.h>
using AlibabaCloud::Actiontrail::Model::GetAccessKeyLastUsedEventsRequest;
GetAccessKeyLastUsedEventsRequest::GetAccessKeyLastUsedEventsRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "GetAccessKeyLastUsedEvents") {
setMethod(HttpRequest::Method::Post);
}
GetAccessKeyLastUsedEventsRequest::~GetAccessKeyLastUsedEventsRequest() {}
std::string GetAccessKeyLastUsedEventsRequest::getAccessKey() const {
return accessKey_;
}
void GetAccessKeyLastUsedEventsRequest::setAccessKey(const std::string &accessKey) {
accessKey_ = accessKey;
setParameter(std::string("AccessKey"), accessKey);
}
std::string GetAccessKeyLastUsedEventsRequest::getNextToken() const {
return nextToken_;
}
void GetAccessKeyLastUsedEventsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string GetAccessKeyLastUsedEventsRequest::getPageSize() const {
return pageSize_;
}
void GetAccessKeyLastUsedEventsRequest::setPageSize(const std::string &pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), pageSize);
}
std::string GetAccessKeyLastUsedEventsRequest::getServiceName() const {
return serviceName_;
}
void GetAccessKeyLastUsedEventsRequest::setServiceName(const std::string &serviceName) {
serviceName_ = serviceName;
setParameter(std::string("ServiceName"), serviceName);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Actiontrail;
using namespace AlibabaCloud::Actiontrail::Model;
GetAccessKeyLastUsedEventsResult::GetAccessKeyLastUsedEventsResult() :
ServiceResult()
{}
GetAccessKeyLastUsedEventsResult::GetAccessKeyLastUsedEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccessKeyLastUsedEventsResult::~GetAccessKeyLastUsedEventsResult()
{}
void GetAccessKeyLastUsedEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEventsNode = value["Events"]["EventsItem"];
for (auto valueEventsEventsItem : allEventsNode)
{
EventsItem eventsObject;
if(!valueEventsEventsItem["UsedTimestamp"].isNull())
eventsObject.usedTimestamp = std::stol(valueEventsEventsItem["UsedTimestamp"].asString());
if(!valueEventsEventsItem["Detail"].isNull())
eventsObject.detail = valueEventsEventsItem["Detail"].asString();
if(!valueEventsEventsItem["EventName"].isNull())
eventsObject.eventName = valueEventsEventsItem["EventName"].asString();
if(!valueEventsEventsItem["Source"].isNull())
eventsObject.source = valueEventsEventsItem["Source"].asString();
events_.push_back(eventsObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string GetAccessKeyLastUsedEventsResult::getNextToken()const
{
return nextToken_;
}
std::vector<GetAccessKeyLastUsedEventsResult::EventsItem> GetAccessKeyLastUsedEventsResult::getEvents()const
{
return events_;
}

View File

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

View File

@@ -0,0 +1,121 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Actiontrail;
using namespace AlibabaCloud::Actiontrail::Model;
GetAccessKeyLastUsedInfoResult::GetAccessKeyLastUsedInfoResult() :
ServiceResult()
{}
GetAccessKeyLastUsedInfoResult::GetAccessKeyLastUsedInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccessKeyLastUsedInfoResult::~GetAccessKeyLastUsedInfoResult()
{}
void GetAccessKeyLastUsedInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AccessKeyId"].isNull())
accessKeyId_ = value["AccessKeyId"].asString();
if(!value["AccountId"].isNull())
accountId_ = value["AccountId"].asString();
if(!value["OwnerId"].isNull())
ownerId_ = value["OwnerId"].asString();
if(!value["UserName"].isNull())
userName_ = value["UserName"].asString();
if(!value["AccountType"].isNull())
accountType_ = value["AccountType"].asString();
if(!value["UsedTimestamp"].isNull())
usedTimestamp_ = std::stol(value["UsedTimestamp"].asString());
if(!value["Detail"].isNull())
detail_ = value["Detail"].asString();
if(!value["Source"].isNull())
source_ = value["Source"].asString();
if(!value["ServiceName"].isNull())
serviceName_ = value["ServiceName"].asString();
if(!value["ServiceNameCn"].isNull())
serviceNameCn_ = value["ServiceNameCn"].asString();
if(!value["ServiceNameEn"].isNull())
serviceNameEn_ = value["ServiceNameEn"].asString();
}
std::string GetAccessKeyLastUsedInfoResult::getAccountId()const
{
return accountId_;
}
std::string GetAccessKeyLastUsedInfoResult::getUserName()const
{
return userName_;
}
std::string GetAccessKeyLastUsedInfoResult::getOwnerId()const
{
return ownerId_;
}
std::string GetAccessKeyLastUsedInfoResult::getServiceName()const
{
return serviceName_;
}
std::string GetAccessKeyLastUsedInfoResult::getAccessKeyId()const
{
return accessKeyId_;
}
std::string GetAccessKeyLastUsedInfoResult::getServiceNameCn()const
{
return serviceNameCn_;
}
std::string GetAccessKeyLastUsedInfoResult::getServiceNameEn()const
{
return serviceNameEn_;
}
std::string GetAccessKeyLastUsedInfoResult::getAccountType()const
{
return accountType_;
}
long GetAccessKeyLastUsedInfoResult::getUsedTimestamp()const
{
return usedTimestamp_;
}
std::string GetAccessKeyLastUsedInfoResult::getDetail()const
{
return detail_;
}
std::string GetAccessKeyLastUsedInfoResult::getSource()const
{
return source_;
}

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/actiontrail/model/GetAccessKeyLastUsedIpsRequest.h>
using AlibabaCloud::Actiontrail::Model::GetAccessKeyLastUsedIpsRequest;
GetAccessKeyLastUsedIpsRequest::GetAccessKeyLastUsedIpsRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "GetAccessKeyLastUsedIps") {
setMethod(HttpRequest::Method::Post);
}
GetAccessKeyLastUsedIpsRequest::~GetAccessKeyLastUsedIpsRequest() {}
std::string GetAccessKeyLastUsedIpsRequest::getAccessKey() const {
return accessKey_;
}
void GetAccessKeyLastUsedIpsRequest::setAccessKey(const std::string &accessKey) {
accessKey_ = accessKey;
setParameter(std::string("AccessKey"), accessKey);
}
std::string GetAccessKeyLastUsedIpsRequest::getNextToken() const {
return nextToken_;
}
void GetAccessKeyLastUsedIpsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string GetAccessKeyLastUsedIpsRequest::getPageSize() const {
return pageSize_;
}
void GetAccessKeyLastUsedIpsRequest::setPageSize(const std::string &pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), pageSize);
}
std::string GetAccessKeyLastUsedIpsRequest::getServiceName() const {
return serviceName_;
}
void GetAccessKeyLastUsedIpsRequest::setServiceName(const std::string &serviceName) {
serviceName_ = serviceName;
setParameter(std::string("ServiceName"), serviceName);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Actiontrail;
using namespace AlibabaCloud::Actiontrail::Model;
GetAccessKeyLastUsedIpsResult::GetAccessKeyLastUsedIpsResult() :
ServiceResult()
{}
GetAccessKeyLastUsedIpsResult::GetAccessKeyLastUsedIpsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccessKeyLastUsedIpsResult::~GetAccessKeyLastUsedIpsResult()
{}
void GetAccessKeyLastUsedIpsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpsNode = value["Ips"]["IpsItem"];
for (auto valueIpsIpsItem : allIpsNode)
{
IpsItem ipsObject;
if(!valueIpsIpsItem["UsedTimestamp"].isNull())
ipsObject.usedTimestamp = std::stol(valueIpsIpsItem["UsedTimestamp"].asString());
if(!valueIpsIpsItem["Detail"].isNull())
ipsObject.detail = valueIpsIpsItem["Detail"].asString();
if(!valueIpsIpsItem["Source"].isNull())
ipsObject.source = valueIpsIpsItem["Source"].asString();
if(!valueIpsIpsItem["Ip"].isNull())
ipsObject.ip = valueIpsIpsItem["Ip"].asString();
ips_.push_back(ipsObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string GetAccessKeyLastUsedIpsResult::getNextToken()const
{
return nextToken_;
}
std::vector<GetAccessKeyLastUsedIpsResult::IpsItem> GetAccessKeyLastUsedIpsResult::getIps()const
{
return ips_;
}

View File

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

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Actiontrail;
using namespace AlibabaCloud::Actiontrail::Model;
GetAccessKeyLastUsedProductsResult::GetAccessKeyLastUsedProductsResult() :
ServiceResult()
{}
GetAccessKeyLastUsedProductsResult::GetAccessKeyLastUsedProductsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccessKeyLastUsedProductsResult::~GetAccessKeyLastUsedProductsResult()
{}
void GetAccessKeyLastUsedProductsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProductsNode = value["Products"]["ProductsItem"];
for (auto valueProductsProductsItem : allProductsNode)
{
ProductsItem productsObject;
if(!valueProductsProductsItem["UsedTimestamp"].isNull())
productsObject.usedTimestamp = std::stol(valueProductsProductsItem["UsedTimestamp"].asString());
if(!valueProductsProductsItem["Detail"].isNull())
productsObject.detail = valueProductsProductsItem["Detail"].asString();
if(!valueProductsProductsItem["Source"].isNull())
productsObject.source = valueProductsProductsItem["Source"].asString();
if(!valueProductsProductsItem["ServiceName"].isNull())
productsObject.serviceName = valueProductsProductsItem["ServiceName"].asString();
if(!valueProductsProductsItem["ServiceNameCn"].isNull())
productsObject.serviceNameCn = valueProductsProductsItem["ServiceNameCn"].asString();
if(!valueProductsProductsItem["ServiceNameEn"].isNull())
productsObject.serviceNameEn = valueProductsProductsItem["ServiceNameEn"].asString();
products_.push_back(productsObject);
}
}
std::vector<GetAccessKeyLastUsedProductsResult::ProductsItem> GetAccessKeyLastUsedProductsResult::getProducts()const
{
return products_;
}

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/actiontrail/model/GetAccessKeyLastUsedResourcesRequest.h>
using AlibabaCloud::Actiontrail::Model::GetAccessKeyLastUsedResourcesRequest;
GetAccessKeyLastUsedResourcesRequest::GetAccessKeyLastUsedResourcesRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "GetAccessKeyLastUsedResources") {
setMethod(HttpRequest::Method::Post);
}
GetAccessKeyLastUsedResourcesRequest::~GetAccessKeyLastUsedResourcesRequest() {}
std::string GetAccessKeyLastUsedResourcesRequest::getAccessKey() const {
return accessKey_;
}
void GetAccessKeyLastUsedResourcesRequest::setAccessKey(const std::string &accessKey) {
accessKey_ = accessKey;
setParameter(std::string("AccessKey"), accessKey);
}
std::string GetAccessKeyLastUsedResourcesRequest::getNextToken() const {
return nextToken_;
}
void GetAccessKeyLastUsedResourcesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string GetAccessKeyLastUsedResourcesRequest::getPageSize() const {
return pageSize_;
}
void GetAccessKeyLastUsedResourcesRequest::setPageSize(const std::string &pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), pageSize);
}
std::string GetAccessKeyLastUsedResourcesRequest::getServiceName() const {
return serviceName_;
}
void GetAccessKeyLastUsedResourcesRequest::setServiceName(const std::string &serviceName) {
serviceName_ = serviceName;
setParameter(std::string("ServiceName"), serviceName);
}

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/actiontrail/model/GetAccessKeyLastUsedResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Actiontrail;
using namespace AlibabaCloud::Actiontrail::Model;
GetAccessKeyLastUsedResourcesResult::GetAccessKeyLastUsedResourcesResult() :
ServiceResult()
{}
GetAccessKeyLastUsedResourcesResult::GetAccessKeyLastUsedResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccessKeyLastUsedResourcesResult::~GetAccessKeyLastUsedResourcesResult()
{}
void GetAccessKeyLastUsedResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResourcesNode = value["Resources"]["ResourcesItem"];
for (auto valueResourcesResourcesItem : allResourcesNode)
{
ResourcesItem resourcesObject;
if(!valueResourcesResourcesItem["UsedTimestamp"].isNull())
resourcesObject.usedTimestamp = std::stol(valueResourcesResourcesItem["UsedTimestamp"].asString());
if(!valueResourcesResourcesItem["Detail"].isNull())
resourcesObject.detail = valueResourcesResourcesItem["Detail"].asString();
if(!valueResourcesResourcesItem["ResourceName"].isNull())
resourcesObject.resourceName = valueResourcesResourcesItem["ResourceName"].asString();
if(!valueResourcesResourcesItem["ResourceType"].isNull())
resourcesObject.resourceType = valueResourcesResourcesItem["ResourceType"].asString();
if(!valueResourcesResourcesItem["Source"].isNull())
resourcesObject.source = valueResourcesResourcesItem["Source"].asString();
resources_.push_back(resourcesObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string GetAccessKeyLastUsedResourcesResult::getNextToken()const
{
return nextToken_;
}
std::vector<GetAccessKeyLastUsedResourcesResult::ResourcesItem> GetAccessKeyLastUsedResourcesResult::getResources()const
{
return resources_;
}

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/GetDeliveryHistoryJobRequest.h>
using AlibabaCloud::Actiontrail::Model::GetDeliveryHistoryJobRequest;
GetDeliveryHistoryJobRequest::GetDeliveryHistoryJobRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "GetDeliveryHistoryJob") {
setMethod(HttpRequest::Method::Post);
}
GetDeliveryHistoryJobRequest::~GetDeliveryHistoryJobRequest() {}
long GetDeliveryHistoryJobRequest::getJobId() const {
return jobId_;
}
void GetDeliveryHistoryJobRequest::setJobId(long jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), std::to_string(jobId));
}

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/actiontrail/model/GetDeliveryHistoryJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Actiontrail;
using namespace AlibabaCloud::Actiontrail::Model;
GetDeliveryHistoryJobResult::GetDeliveryHistoryJobResult() :
ServiceResult()
{}
GetDeliveryHistoryJobResult::GetDeliveryHistoryJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDeliveryHistoryJobResult::~GetDeliveryHistoryJobResult()
{}
void GetDeliveryHistoryJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStatusNode = value["Status"]["StatusItem"];
for (auto valueStatusStatusItem : allStatusNode)
{
StatusItem statusObject;
if(!valueStatusStatusItem["Status"].isNull())
statusObject.status = std::stoi(valueStatusStatusItem["Status"].asString());
if(!valueStatusStatusItem["Region"].isNull())
statusObject.region = valueStatusStatusItem["Region"].asString();
status_.push_back(statusObject);
}
if(!value["JobStatus"].isNull())
jobStatus_ = std::stoi(value["JobStatus"].asString());
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["TrailName"].isNull())
trailName_ = value["TrailName"].asString();
if(!value["UpdatedTime"].isNull())
updatedTime_ = value["UpdatedTime"].asString();
if(!value["JobId"].isNull())
jobId_ = std::stol(value["JobId"].asString());
if(!value["HomeRegion"].isNull())
homeRegion_ = value["HomeRegion"].asString();
}
std::vector<GetDeliveryHistoryJobResult::StatusItem> GetDeliveryHistoryJobResult::getStatus()const
{
return status_;
}
int GetDeliveryHistoryJobResult::getJobStatus()const
{
return jobStatus_;
}
std::string GetDeliveryHistoryJobResult::getCreatedTime()const
{
return createdTime_;
}
std::string GetDeliveryHistoryJobResult::getEndTime()const
{
return endTime_;
}
std::string GetDeliveryHistoryJobResult::getHomeRegion()const
{
return homeRegion_;
}
std::string GetDeliveryHistoryJobResult::getStartTime()const
{
return startTime_;
}
std::string GetDeliveryHistoryJobResult::getTrailName()const
{
return trailName_;
}
std::string GetDeliveryHistoryJobResult::getUpdatedTime()const
{
return updatedTime_;
}
long GetDeliveryHistoryJobResult::getJobId()const
{
return jobId_;
}

View File

@@ -1,51 +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/actiontrail/model/GetTrailStatusRequest.h>
using AlibabaCloud::Actiontrail::Model::GetTrailStatusRequest;
GetTrailStatusRequest::GetTrailStatusRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "GetTrailStatus")
{
setMethod(HttpRequest::Method::Post);
}
GetTrailStatusRequest::~GetTrailStatusRequest()
{}
std::string GetTrailStatusRequest::getName()const
{
return name_;
*/
#include <alibabacloud/actiontrail/model/GetTrailStatusRequest.h>
using AlibabaCloud::Actiontrail::Model::GetTrailStatusRequest;
GetTrailStatusRequest::GetTrailStatusRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "GetTrailStatus") {
setMethod(HttpRequest::Method::Post);
}
void GetTrailStatusRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
GetTrailStatusRequest::~GetTrailStatusRequest() {}
std::string GetTrailStatusRequest::getName() const {
return name_;
}
bool GetTrailStatusRequest::getIsOrganizationTrail()const
{
return isOrganizationTrail_;
void GetTrailStatusRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
void GetTrailStatusRequest::setIsOrganizationTrail(bool isOrganizationTrail)
{
isOrganizationTrail_ = isOrganizationTrail;
setParameter("IsOrganizationTrail", isOrganizationTrail ? "true" : "false");
bool GetTrailStatusRequest::getIsOrganizationTrail() const {
return isOrganizationTrail_;
}
void GetTrailStatusRequest::setIsOrganizationTrail(bool isOrganizationTrail) {
isOrganizationTrail_ = isOrganizationTrail;
setParameter(std::string("IsOrganizationTrail"), isOrganizationTrail ? "true" : "false");
}

View File

@@ -39,24 +39,24 @@ void GetTrailStatusResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["LatestDeliveryLogServiceTime"].isNull())
latestDeliveryLogServiceTime_ = value["LatestDeliveryLogServiceTime"].asString();
if(!value["LatestDeliveryLogServiceError"].isNull())
latestDeliveryLogServiceError_ = value["LatestDeliveryLogServiceError"].asString();
if(!value["StartLoggingTime"].isNull())
startLoggingTime_ = value["StartLoggingTime"].asString();
if(!value["OssBucketStatus"].isNull())
ossBucketStatus_ = value["OssBucketStatus"].asString() == "true";
if(!value["LatestDeliveryError"].isNull())
latestDeliveryError_ = value["LatestDeliveryError"].asString();
if(!value["StopLoggingTime"].isNull())
stopLoggingTime_ = value["StopLoggingTime"].asString();
if(!value["SlsLogStoreStatus"].isNull())
slsLogStoreStatus_ = value["SlsLogStoreStatus"].asString() == "true";
if(!value["LatestDeliveryTime"].isNull())
latestDeliveryTime_ = value["LatestDeliveryTime"].asString();
if(!value["IsLogging"].isNull())
isLogging_ = value["IsLogging"].asString() == "true";
if(!value["LatestDeliveryTime"].isNull())
latestDeliveryTime_ = value["LatestDeliveryTime"].asString();
if(!value["LatestDeliveryLogServiceError"].isNull())
latestDeliveryLogServiceError_ = value["LatestDeliveryLogServiceError"].asString();
if(!value["LatestDeliveryLogServiceTime"].isNull())
latestDeliveryLogServiceTime_ = value["LatestDeliveryLogServiceTime"].asString();
if(!value["OssBucketStatus"].isNull())
ossBucketStatus_ = value["OssBucketStatus"].asString() == "true";
if(!value["SlsLogStoreStatus"].isNull())
slsLogStoreStatus_ = value["SlsLogStoreStatus"].asString() == "true";
}
@@ -95,13 +95,13 @@ bool GetTrailStatusResult::getSlsLogStoreStatus()const
return slsLogStoreStatus_;
}
std::string GetTrailStatusResult::getLatestDeliveryTime()const
{
return latestDeliveryTime_;
}
bool GetTrailStatusResult::getIsLogging()const
{
return isLogging_;
}
std::string GetTrailStatusResult::getLatestDeliveryTime()const
{
return latestDeliveryTime_;
}

View File

@@ -1,51 +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/actiontrail/model/ListDeliveryHistoryJobsRequest.h>
using AlibabaCloud::Actiontrail::Model::ListDeliveryHistoryJobsRequest;
ListDeliveryHistoryJobsRequest::ListDeliveryHistoryJobsRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "ListDeliveryHistoryJobs")
{
setMethod(HttpRequest::Method::Post);
}
ListDeliveryHistoryJobsRequest::~ListDeliveryHistoryJobsRequest()
{}
int ListDeliveryHistoryJobsRequest::getPageNumber()const
{
return pageNumber_;
*/
#include <alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h>
using AlibabaCloud::Actiontrail::Model::ListDeliveryHistoryJobsRequest;
ListDeliveryHistoryJobsRequest::ListDeliveryHistoryJobsRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "ListDeliveryHistoryJobs") {
setMethod(HttpRequest::Method::Post);
}
void ListDeliveryHistoryJobsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
ListDeliveryHistoryJobsRequest::~ListDeliveryHistoryJobsRequest() {}
int ListDeliveryHistoryJobsRequest::getPageNumber() const {
return pageNumber_;
}
int ListDeliveryHistoryJobsRequest::getPageSize()const
{
return pageSize_;
void ListDeliveryHistoryJobsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
void ListDeliveryHistoryJobsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
int ListDeliveryHistoryJobsRequest::getPageSize() const {
return pageSize_;
}
void ListDeliveryHistoryJobsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -45,28 +45,28 @@ void ListDeliveryHistoryJobsResult::parse(const std::string &payload)
DeliveryHistoryJob deliveryHistoryJobsObject;
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].isNull())
deliveryHistoryJobsObject.trailName = valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].isNull())
deliveryHistoryJobsObject.createdTime = valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].isNull())
deliveryHistoryJobsObject.updatedTime = valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].isNull())
deliveryHistoryJobsObject.homeRegion = valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].isNull())
deliveryHistoryJobsObject.startTime = valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].isNull())
deliveryHistoryJobsObject.endTime = valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].isNull())
deliveryHistoryJobsObject.jobId = std::stol(valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].asString());
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].isNull())
deliveryHistoryJobsObject.startTime = valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].isNull())
deliveryHistoryJobsObject.jobStatus = std::stoi(valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].asString());
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].isNull())
deliveryHistoryJobsObject.homeRegion = valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].isNull())
deliveryHistoryJobsObject.updatedTime = valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].isNull())
deliveryHistoryJobsObject.jobId = std::stol(valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].asString());
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].isNull())
deliveryHistoryJobsObject.createdTime = valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].asString();
deliveryHistoryJobs_.push_back(deliveryHistoryJobsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}

View File

@@ -1,100 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/LookupEventsRequest.h>
using AlibabaCloud::Actiontrail::Model::LookupEventsRequest;
LookupEventsRequest::LookupEventsRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "LookupEvents")
{
setMethod(HttpRequest::Method::Post);
}
LookupEventsRequest::~LookupEventsRequest()
{}
std::string LookupEventsRequest::getEndTime()const
{
return endTime_;
*/
#include <alibabacloud/actiontrail/model/LookupEventsRequest.h>
using AlibabaCloud::Actiontrail::Model::LookupEventsRequest;
LookupEventsRequest::LookupEventsRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "LookupEvents") {
setMethod(HttpRequest::Method::Post);
}
void LookupEventsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
LookupEventsRequest::~LookupEventsRequest() {}
std::string LookupEventsRequest::getEndTime() const {
return endTime_;
}
std::string LookupEventsRequest::getStartTime()const
{
return startTime_;
void LookupEventsRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
void LookupEventsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
std::string LookupEventsRequest::getStartTime() const {
return startTime_;
}
std::string LookupEventsRequest::getNextToken()const
{
return nextToken_;
void LookupEventsRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
void LookupEventsRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
std::string LookupEventsRequest::getNextToken() const {
return nextToken_;
}
std::vector<LookupEventsRequest::LookupAttribute> LookupEventsRequest::getLookupAttribute()const
{
return lookupAttribute_;
void LookupEventsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void LookupEventsRequest::setLookupAttribute(const std::vector<LookupAttribute>& lookupAttribute)
{
lookupAttribute_ = lookupAttribute;
for(int dep1 = 0; dep1!= lookupAttribute.size(); dep1++) {
auto lookupAttributeObj = lookupAttribute.at(dep1);
std::string lookupAttributeObjStr = "LookupAttribute." + std::to_string(dep1 + 1);
setParameter(lookupAttributeObjStr + ".Value", lookupAttributeObj.value);
setParameter(lookupAttributeObjStr + ".Key", lookupAttributeObj.key);
}
std::vector<LookupEventsRequest::LookupAttribute> LookupEventsRequest::getLookupAttribute() const {
return lookupAttribute_;
}
std::string LookupEventsRequest::getMaxResults()const
{
return maxResults_;
void LookupEventsRequest::setLookupAttribute(const std::vector<LookupEventsRequest::LookupAttribute> &lookupAttribute) {
lookupAttribute_ = lookupAttribute;
for(int dep1 = 0; dep1 != lookupAttribute.size(); dep1++) {
auto lookupAttributeObj = lookupAttribute.at(dep1);
std::string lookupAttributeObjStr = std::string("LookupAttribute") + "." + std::to_string(dep1 + 1);
setParameter(lookupAttributeObjStr + ".Value", lookupAttributeObj.value);
setParameter(lookupAttributeObjStr + ".Key", lookupAttributeObj.key);
}
}
void LookupEventsRequest::setMaxResults(const std::string& maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", maxResults);
std::string LookupEventsRequest::getMaxResults() const {
return maxResults_;
}
std::string LookupEventsRequest::getDirection()const
{
return direction_;
void LookupEventsRequest::setMaxResults(const std::string &maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), maxResults);
}
void LookupEventsRequest::setDirection(const std::string& direction)
{
direction_ = direction;
setParameter("Direction", direction);
std::string LookupEventsRequest::getDirection() const {
return direction_;
}
void LookupEventsRequest::setDirection(const std::string &direction) {
direction_ = direction;
setParameter(std::string("Direction"), direction);
}

View File

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

View File

@@ -1,40 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/StopLoggingRequest.h>
using AlibabaCloud::Actiontrail::Model::StopLoggingRequest;
StopLoggingRequest::StopLoggingRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "StopLogging")
{
setMethod(HttpRequest::Method::Get);
}
StopLoggingRequest::~StopLoggingRequest()
{}
std::string StopLoggingRequest::getName()const
{
return name_;
*/
#include <alibabacloud/actiontrail/model/StopLoggingRequest.h>
using AlibabaCloud::Actiontrail::Model::StopLoggingRequest;
StopLoggingRequest::StopLoggingRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "StopLogging") {
setMethod(HttpRequest::Method::Get);
}
void StopLoggingRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
StopLoggingRequest::~StopLoggingRequest() {}
std::string StopLoggingRequest::getName() const {
return name_;
}
void StopLoggingRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -1,117 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/UpdateTrailRequest.h>
using AlibabaCloud::Actiontrail::Model::UpdateTrailRequest;
UpdateTrailRequest::UpdateTrailRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "UpdateTrail")
{
setMethod(HttpRequest::Method::Post);
}
UpdateTrailRequest::~UpdateTrailRequest()
{}
std::string UpdateTrailRequest::getSlsProjectArn()const
{
return slsProjectArn_;
*/
#include <alibabacloud/actiontrail/model/UpdateTrailRequest.h>
using AlibabaCloud::Actiontrail::Model::UpdateTrailRequest;
UpdateTrailRequest::UpdateTrailRequest()
: RpcServiceRequest("actiontrail", "2020-07-06", "UpdateTrail") {
setMethod(HttpRequest::Method::Post);
}
void UpdateTrailRequest::setSlsProjectArn(const std::string& slsProjectArn)
{
slsProjectArn_ = slsProjectArn;
setParameter("SlsProjectArn", slsProjectArn);
UpdateTrailRequest::~UpdateTrailRequest() {}
std::string UpdateTrailRequest::getSlsProjectArn() const {
return slsProjectArn_;
}
std::string UpdateTrailRequest::getSlsWriteRoleArn()const
{
return slsWriteRoleArn_;
void UpdateTrailRequest::setSlsProjectArn(const std::string &slsProjectArn) {
slsProjectArn_ = slsProjectArn;
setParameter(std::string("SlsProjectArn"), slsProjectArn);
}
void UpdateTrailRequest::setSlsWriteRoleArn(const std::string& slsWriteRoleArn)
{
slsWriteRoleArn_ = slsWriteRoleArn;
setParameter("SlsWriteRoleArn", slsWriteRoleArn);
std::string UpdateTrailRequest::getSlsWriteRoleArn() const {
return slsWriteRoleArn_;
}
std::string UpdateTrailRequest::getOssKeyPrefix()const
{
return ossKeyPrefix_;
void UpdateTrailRequest::setSlsWriteRoleArn(const std::string &slsWriteRoleArn) {
slsWriteRoleArn_ = slsWriteRoleArn;
setParameter(std::string("SlsWriteRoleArn"), slsWriteRoleArn);
}
void UpdateTrailRequest::setOssKeyPrefix(const std::string& ossKeyPrefix)
{
ossKeyPrefix_ = ossKeyPrefix;
setParameter("OssKeyPrefix", ossKeyPrefix);
std::string UpdateTrailRequest::getOssKeyPrefix() const {
return ossKeyPrefix_;
}
std::string UpdateTrailRequest::getOssWriteRoleArn()const
{
return ossWriteRoleArn_;
void UpdateTrailRequest::setOssKeyPrefix(const std::string &ossKeyPrefix) {
ossKeyPrefix_ = ossKeyPrefix;
setParameter(std::string("OssKeyPrefix"), ossKeyPrefix);
}
void UpdateTrailRequest::setOssWriteRoleArn(const std::string& ossWriteRoleArn)
{
ossWriteRoleArn_ = ossWriteRoleArn;
setParameter("OssWriteRoleArn", ossWriteRoleArn);
std::string UpdateTrailRequest::getOssWriteRoleArn() const {
return ossWriteRoleArn_;
}
std::string UpdateTrailRequest::getEventRW()const
{
return eventRW_;
void UpdateTrailRequest::setOssWriteRoleArn(const std::string &ossWriteRoleArn) {
ossWriteRoleArn_ = ossWriteRoleArn;
setParameter(std::string("OssWriteRoleArn"), ossWriteRoleArn);
}
void UpdateTrailRequest::setEventRW(const std::string& eventRW)
{
eventRW_ = eventRW;
setParameter("EventRW", eventRW);
std::string UpdateTrailRequest::getEventRW() const {
return eventRW_;
}
std::string UpdateTrailRequest::getName()const
{
return name_;
void UpdateTrailRequest::setEventRW(const std::string &eventRW) {
eventRW_ = eventRW;
setParameter(std::string("EventRW"), eventRW);
}
void UpdateTrailRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string UpdateTrailRequest::getName() const {
return name_;
}
std::string UpdateTrailRequest::getOssBucketName()const
{
return ossBucketName_;
void UpdateTrailRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
void UpdateTrailRequest::setOssBucketName(const std::string& ossBucketName)
{
ossBucketName_ = ossBucketName;
setParameter("OssBucketName", ossBucketName);
std::string UpdateTrailRequest::getOssBucketName() const {
return ossBucketName_;
}
std::string UpdateTrailRequest::getTrailRegion()const
{
return trailRegion_;
void UpdateTrailRequest::setOssBucketName(const std::string &ossBucketName) {
ossBucketName_ = ossBucketName;
setParameter(std::string("OssBucketName"), ossBucketName);
}
void UpdateTrailRequest::setTrailRegion(const std::string& trailRegion)
{
trailRegion_ = trailRegion;
setParameter("TrailRegion", trailRegion);
std::string UpdateTrailRequest::getTrailRegion() const {
return trailRegion_;
}
void UpdateTrailRequest::setTrailRegion(const std::string &trailRegion) {
trailRegion_ = trailRegion;
setParameter(std::string("TrailRegion"), trailRegion);
}

View File

@@ -41,6 +41,8 @@ void UpdateTrailResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["SlsProjectArn"].isNull())
slsProjectArn_ = value["SlsProjectArn"].asString();
if(!value["OssWriteRoleArn"].isNull())
ossWriteRoleArn_ = value["OssWriteRoleArn"].asString();
if(!value["EventRW"].isNull())
eventRW_ = value["EventRW"].asString();
if(!value["HomeRegion"].isNull())
@@ -51,8 +53,6 @@ void UpdateTrailResult::parse(const std::string &payload)
ossBucketName_ = value["OssBucketName"].asString();
if(!value["SlsWriteRoleArn"].isNull())
slsWriteRoleArn_ = value["SlsWriteRoleArn"].asString();
if(!value["OssWriteRoleArn"].isNull())
ossWriteRoleArn_ = value["OssWriteRoleArn"].asString();
if(!value["TrailRegion"].isNull())
trailRegion_ = value["TrailRegion"].asString();
if(!value["Name"].isNull())
@@ -85,16 +85,16 @@ std::string UpdateTrailResult::getOssBucketName()const
return ossBucketName_;
}
std::string UpdateTrailResult::getSlsWriteRoleArn()const
{
return slsWriteRoleArn_;
}
std::string UpdateTrailResult::getOssWriteRoleArn()const
{
return ossWriteRoleArn_;
}
std::string UpdateTrailResult::getSlsWriteRoleArn()const
{
return slsWriteRoleArn_;
}
std::string UpdateTrailResult::getTrailRegion()const
{
return trailRegion_;