Support aggregator delivery.
This commit is contained in:
126
config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc
Normal file
126
config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateAggregateConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateAggregateConfigDeliveryChannelRequest;
|
||||
|
||||
CreateAggregateConfigDeliveryChannelRequest::CreateAggregateConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateAggregateConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAggregateConfigDeliveryChannelRequest::~CreateAggregateConfigDeliveryChannelRequest() {}
|
||||
|
||||
bool CreateAggregateConfigDeliveryChannelRequest::getNonCompliantNotification() const {
|
||||
return nonCompliantNotification_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) {
|
||||
nonCompliantNotification_ = nonCompliantNotification;
|
||||
setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool CreateAggregateConfigDeliveryChannelRequest::getConfigurationSnapshot() const {
|
||||
return configurationSnapshot_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) {
|
||||
configurationSnapshot_ = configurationSnapshot;
|
||||
setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const {
|
||||
return deliveryChannelTargetArn_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) {
|
||||
deliveryChannelTargetArn_ = deliveryChannelTargetArn;
|
||||
setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const {
|
||||
return deliveryChannelCondition_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) {
|
||||
deliveryChannelCondition_ = deliveryChannelCondition;
|
||||
setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition);
|
||||
}
|
||||
|
||||
bool CreateAggregateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const {
|
||||
return configurationItemChangeNotification_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) {
|
||||
configurationItemChangeNotification_ = configurationItemChangeNotification;
|
||||
setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelName() const {
|
||||
return deliveryChannelName_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) {
|
||||
deliveryChannelName_ = deliveryChannelName;
|
||||
setParameter(std::string("DeliveryChannelName"), deliveryChannelName);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const {
|
||||
return oversizedDataOSSTargetArn_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) {
|
||||
oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn;
|
||||
setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelType() const {
|
||||
return deliveryChannelType_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) {
|
||||
deliveryChannelType_ = deliveryChannelType;
|
||||
setParameter(std::string("DeliveryChannelType"), deliveryChannelType);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateAggregateConfigDeliveryChannelResult::CreateAggregateConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAggregateConfigDeliveryChannelResult::CreateAggregateConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAggregateConfigDeliveryChannelResult::~CreateAggregateConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeliveryChannelId"].isNull())
|
||||
deliveryChannelId_ = value["DeliveryChannelId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelResult::getDeliveryChannelId()const
|
||||
{
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
117
config/src/model/CreateConfigDeliveryChannelRequest.cc
Normal file
117
config/src/model/CreateConfigDeliveryChannelRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateConfigDeliveryChannelRequest;
|
||||
|
||||
CreateConfigDeliveryChannelRequest::CreateConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigDeliveryChannelRequest::~CreateConfigDeliveryChannelRequest() {}
|
||||
|
||||
bool CreateConfigDeliveryChannelRequest::getNonCompliantNotification() const {
|
||||
return nonCompliantNotification_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) {
|
||||
nonCompliantNotification_ = nonCompliantNotification;
|
||||
setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool CreateConfigDeliveryChannelRequest::getConfigurationSnapshot() const {
|
||||
return configurationSnapshot_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) {
|
||||
configurationSnapshot_ = configurationSnapshot;
|
||||
setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const {
|
||||
return deliveryChannelTargetArn_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) {
|
||||
deliveryChannelTargetArn_ = deliveryChannelTargetArn;
|
||||
setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const {
|
||||
return deliveryChannelCondition_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) {
|
||||
deliveryChannelCondition_ = deliveryChannelCondition;
|
||||
setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition);
|
||||
}
|
||||
|
||||
bool CreateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const {
|
||||
return configurationItemChangeNotification_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) {
|
||||
configurationItemChangeNotification_ = configurationItemChangeNotification;
|
||||
setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelName() const {
|
||||
return deliveryChannelName_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) {
|
||||
deliveryChannelName_ = deliveryChannelName;
|
||||
setParameter(std::string("DeliveryChannelName"), deliveryChannelName);
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const {
|
||||
return oversizedDataOSSTargetArn_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) {
|
||||
oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn;
|
||||
setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelType() const {
|
||||
return deliveryChannelType_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) {
|
||||
deliveryChannelType_ = deliveryChannelType;
|
||||
setParameter(std::string("DeliveryChannelType"), deliveryChannelType);
|
||||
}
|
||||
|
||||
51
config/src/model/CreateConfigDeliveryChannelResult.cc
Normal file
51
config/src/model/CreateConfigDeliveryChannelResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateConfigDeliveryChannelResult::CreateConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConfigDeliveryChannelResult::CreateConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConfigDeliveryChannelResult::~CreateConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void CreateConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeliveryChannelId"].isNull())
|
||||
deliveryChannelId_ = value["DeliveryChannelId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelResult::getDeliveryChannelId()const
|
||||
{
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
45
config/src/model/GetAggregateConfigDeliveryChannelRequest.cc
Normal file
45
config/src/model/GetAggregateConfigDeliveryChannelRequest.cc
Normal 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/config/model/GetAggregateConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateConfigDeliveryChannelRequest;
|
||||
|
||||
GetAggregateConfigDeliveryChannelRequest::GetAggregateConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAggregateConfigDeliveryChannelRequest::~GetAggregateConfigDeliveryChannelRequest() {}
|
||||
|
||||
std::string GetAggregateConfigDeliveryChannelRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string GetAggregateConfigDeliveryChannelRequest::getDeliveryChannelId() const {
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) {
|
||||
deliveryChannelId_ = deliveryChannelId;
|
||||
setParameter(std::string("DeliveryChannelId"), deliveryChannelId);
|
||||
}
|
||||
|
||||
78
config/src/model/GetAggregateConfigDeliveryChannelResult.cc
Normal file
78
config/src/model/GetAggregateConfigDeliveryChannelResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateConfigDeliveryChannelResult::GetAggregateConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateConfigDeliveryChannelResult::GetAggregateConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateConfigDeliveryChannelResult::~GetAggregateConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void GetAggregateConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto deliveryChannelNode = value["DeliveryChannel"];
|
||||
if(!deliveryChannelNode["Status"].isNull())
|
||||
deliveryChannel_.status = std::stoi(deliveryChannelNode["Status"].asString());
|
||||
if(!deliveryChannelNode["DeliveryChannelId"].isNull())
|
||||
deliveryChannel_.deliveryChannelId = deliveryChannelNode["DeliveryChannelId"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelName"].isNull())
|
||||
deliveryChannel_.deliveryChannelName = deliveryChannelNode["DeliveryChannelName"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelType"].isNull())
|
||||
deliveryChannel_.deliveryChannelType = deliveryChannelNode["DeliveryChannelType"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelTargetArn"].isNull())
|
||||
deliveryChannel_.deliveryChannelTargetArn = deliveryChannelNode["DeliveryChannelTargetArn"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelAssumeRoleArn"].isNull())
|
||||
deliveryChannel_.deliveryChannelAssumeRoleArn = deliveryChannelNode["DeliveryChannelAssumeRoleArn"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelCondition"].isNull())
|
||||
deliveryChannel_.deliveryChannelCondition = deliveryChannelNode["DeliveryChannelCondition"].asString();
|
||||
if(!deliveryChannelNode["OversizedDataOSSTargetArn"].isNull())
|
||||
deliveryChannel_.oversizedDataOSSTargetArn = deliveryChannelNode["OversizedDataOSSTargetArn"].asString();
|
||||
if(!deliveryChannelNode["Description"].isNull())
|
||||
deliveryChannel_.description = deliveryChannelNode["Description"].asString();
|
||||
if(!deliveryChannelNode["ConfigurationSnapshot"].isNull())
|
||||
deliveryChannel_.configurationSnapshot = deliveryChannelNode["ConfigurationSnapshot"].asString() == "true";
|
||||
if(!deliveryChannelNode["ConfigurationItemChangeNotification"].isNull())
|
||||
deliveryChannel_.configurationItemChangeNotification = deliveryChannelNode["ConfigurationItemChangeNotification"].asString() == "true";
|
||||
if(!deliveryChannelNode["NonCompliantNotification"].isNull())
|
||||
deliveryChannel_.nonCompliantNotification = deliveryChannelNode["NonCompliantNotification"].asString() == "true";
|
||||
if(!deliveryChannelNode["AggregatorId"].isNull())
|
||||
deliveryChannel_.aggregatorId = deliveryChannelNode["AggregatorId"].asString();
|
||||
if(!deliveryChannelNode["AccountId"].isNull())
|
||||
deliveryChannel_.accountId = deliveryChannelNode["AccountId"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetAggregateConfigDeliveryChannelResult::DeliveryChannel GetAggregateConfigDeliveryChannelResult::getDeliveryChannel()const
|
||||
{
|
||||
return deliveryChannel_;
|
||||
}
|
||||
|
||||
36
config/src/model/GetConfigDeliveryChannelRequest.cc
Normal file
36
config/src/model/GetConfigDeliveryChannelRequest.cc
Normal 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/config/model/GetConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetConfigDeliveryChannelRequest;
|
||||
|
||||
GetConfigDeliveryChannelRequest::GetConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetConfigDeliveryChannelRequest::~GetConfigDeliveryChannelRequest() {}
|
||||
|
||||
std::string GetConfigDeliveryChannelRequest::getDeliveryChannelId() const {
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
void GetConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) {
|
||||
deliveryChannelId_ = deliveryChannelId;
|
||||
setParameter(std::string("DeliveryChannelId"), deliveryChannelId);
|
||||
}
|
||||
|
||||
76
config/src/model/GetConfigDeliveryChannelResult.cc
Normal file
76
config/src/model/GetConfigDeliveryChannelResult.cc
Normal 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/config/model/GetConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetConfigDeliveryChannelResult::GetConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetConfigDeliveryChannelResult::GetConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetConfigDeliveryChannelResult::~GetConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void GetConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto deliveryChannelNode = value["DeliveryChannel"];
|
||||
if(!deliveryChannelNode["Status"].isNull())
|
||||
deliveryChannel_.status = std::stoi(deliveryChannelNode["Status"].asString());
|
||||
if(!deliveryChannelNode["DeliveryChannelId"].isNull())
|
||||
deliveryChannel_.deliveryChannelId = deliveryChannelNode["DeliveryChannelId"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelName"].isNull())
|
||||
deliveryChannel_.deliveryChannelName = deliveryChannelNode["DeliveryChannelName"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelType"].isNull())
|
||||
deliveryChannel_.deliveryChannelType = deliveryChannelNode["DeliveryChannelType"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelTargetArn"].isNull())
|
||||
deliveryChannel_.deliveryChannelTargetArn = deliveryChannelNode["DeliveryChannelTargetArn"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelAssumeRoleArn"].isNull())
|
||||
deliveryChannel_.deliveryChannelAssumeRoleArn = deliveryChannelNode["DeliveryChannelAssumeRoleArn"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelCondition"].isNull())
|
||||
deliveryChannel_.deliveryChannelCondition = deliveryChannelNode["DeliveryChannelCondition"].asString();
|
||||
if(!deliveryChannelNode["OversizedDataOSSTargetArn"].isNull())
|
||||
deliveryChannel_.oversizedDataOSSTargetArn = deliveryChannelNode["OversizedDataOSSTargetArn"].asString();
|
||||
if(!deliveryChannelNode["Description"].isNull())
|
||||
deliveryChannel_.description = deliveryChannelNode["Description"].asString();
|
||||
if(!deliveryChannelNode["ConfigurationSnapshot"].isNull())
|
||||
deliveryChannel_.configurationSnapshot = deliveryChannelNode["ConfigurationSnapshot"].asString() == "true";
|
||||
if(!deliveryChannelNode["ConfigurationItemChangeNotification"].isNull())
|
||||
deliveryChannel_.configurationItemChangeNotification = deliveryChannelNode["ConfigurationItemChangeNotification"].asString() == "true";
|
||||
if(!deliveryChannelNode["NonCompliantNotification"].isNull())
|
||||
deliveryChannel_.nonCompliantNotification = deliveryChannelNode["NonCompliantNotification"].asString() == "true";
|
||||
if(!deliveryChannelNode["AccountId"].isNull())
|
||||
deliveryChannel_.accountId = std::stol(deliveryChannelNode["AccountId"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetConfigDeliveryChannelResult::DeliveryChannel GetConfigDeliveryChannelResult::getDeliveryChannel()const
|
||||
{
|
||||
return deliveryChannel_;
|
||||
}
|
||||
|
||||
@@ -46,8 +46,12 @@ void GetManagedRuleResult::parse(const std::string &payload)
|
||||
managedRule_.helpHint = managedRuleNode["HelpHint"].asString();
|
||||
if(!managedRuleNode["DefaultName"].isNull())
|
||||
managedRule_.defaultName = managedRuleNode["DefaultName"].asString();
|
||||
if(!managedRuleNode["OptionalInputParameterDetails"].isNull())
|
||||
managedRule_.optionalInputParameterDetails = managedRuleNode["OptionalInputParameterDetails"].asString();
|
||||
if(!managedRuleNode["Identifier"].isNull())
|
||||
managedRule_.identifier = managedRuleNode["Identifier"].asString();
|
||||
if(!managedRuleNode["CompulsoryInputParameterDetails"].isNull())
|
||||
managedRule_.compulsoryInputParameterDetails = managedRuleNode["CompulsoryInputParameterDetails"].asString();
|
||||
if(!managedRuleNode["RegionId"].isNull())
|
||||
managedRule_.regionId = managedRuleNode["RegionId"].asString();
|
||||
if(!managedRuleNode["Description"].isNull())
|
||||
@@ -86,12 +90,6 @@ void GetManagedRuleResult::parse(const std::string &payload)
|
||||
auto allSourceConditions = managedRuleNode["SourceConditions"]["SourceConditions"];
|
||||
for (auto value : allSourceConditions)
|
||||
managedRule_.sourceConditions.push_back(value.asString());
|
||||
auto allOptionalInputParameterDetails = managedRuleNode["OptionalInputParameterDetails"]["OptionalInputParameterDetails"];
|
||||
for (auto value : allOptionalInputParameterDetails)
|
||||
managedRule_.optionalInputParameterDetails.push_back(value.asString());
|
||||
auto allCompulsoryInputParameterDetails = managedRuleNode["CompulsoryInputParameterDetails"]["CompulsoryInputParameterDetails"];
|
||||
for (auto value : allCompulsoryInputParameterDetails)
|
||||
managedRule_.compulsoryInputParameterDetails.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,15 @@ void IgnoreAggregateEvaluationResultsRequest::setReason(const std::string &reaso
|
||||
setBodyParameter(std::string("Reason"), reason);
|
||||
}
|
||||
|
||||
std::string IgnoreAggregateEvaluationResultsRequest::getIgnoreDate() const {
|
||||
return ignoreDate_;
|
||||
}
|
||||
|
||||
void IgnoreAggregateEvaluationResultsRequest::setIgnoreDate(const std::string &ignoreDate) {
|
||||
ignoreDate_ = ignoreDate;
|
||||
setBodyParameter(std::string("IgnoreDate"), ignoreDate);
|
||||
}
|
||||
|
||||
std::vector<IgnoreAggregateEvaluationResultsRequest::Resources> IgnoreAggregateEvaluationResultsRequest::getResources() const {
|
||||
return resources_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void IgnoreEvaluationResultsRequest::setReason(const std::string &reason) {
|
||||
setBodyParameter(std::string("Reason"), reason);
|
||||
}
|
||||
|
||||
std::string IgnoreEvaluationResultsRequest::getIgnoreDate() const {
|
||||
return ignoreDate_;
|
||||
}
|
||||
|
||||
void IgnoreEvaluationResultsRequest::setIgnoreDate(const std::string &ignoreDate) {
|
||||
ignoreDate_ = ignoreDate;
|
||||
setBodyParameter(std::string("IgnoreDate"), ignoreDate);
|
||||
}
|
||||
|
||||
std::vector<IgnoreEvaluationResultsRequest::Resources> IgnoreEvaluationResultsRequest::getResources() const {
|
||||
return resources_;
|
||||
}
|
||||
|
||||
@@ -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/config/model/ListAggregateConfigDeliveryChannelsRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::ListAggregateConfigDeliveryChannelsRequest;
|
||||
|
||||
ListAggregateConfigDeliveryChannelsRequest::ListAggregateConfigDeliveryChannelsRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "ListAggregateConfigDeliveryChannels") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAggregateConfigDeliveryChannelsRequest::~ListAggregateConfigDeliveryChannelsRequest() {}
|
||||
|
||||
std::string ListAggregateConfigDeliveryChannelsRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void ListAggregateConfigDeliveryChannelsRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string ListAggregateConfigDeliveryChannelsRequest::getDeliveryChannelIds() const {
|
||||
return deliveryChannelIds_;
|
||||
}
|
||||
|
||||
void ListAggregateConfigDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) {
|
||||
deliveryChannelIds_ = deliveryChannelIds;
|
||||
setParameter(std::string("DeliveryChannelIds"), deliveryChannelIds);
|
||||
}
|
||||
|
||||
@@ -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/config/model/ListAggregateConfigDeliveryChannelsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
ListAggregateConfigDeliveryChannelsResult::ListAggregateConfigDeliveryChannelsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAggregateConfigDeliveryChannelsResult::ListAggregateConfigDeliveryChannelsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAggregateConfigDeliveryChannelsResult::~ListAggregateConfigDeliveryChannelsResult()
|
||||
{}
|
||||
|
||||
void ListAggregateConfigDeliveryChannelsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDeliveryChannelsNode = value["DeliveryChannels"]["DeliveryChannel"];
|
||||
for (auto valueDeliveryChannelsDeliveryChannel : allDeliveryChannelsNode)
|
||||
{
|
||||
DeliveryChannel deliveryChannelsObject;
|
||||
if(!valueDeliveryChannelsDeliveryChannel["Status"].isNull())
|
||||
deliveryChannelsObject.status = std::stoi(valueDeliveryChannelsDeliveryChannel["Status"].asString());
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelName = valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelId = valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelType = valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelTargetArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelAssumeRoleArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].isNull())
|
||||
deliveryChannelsObject.oversizedDataOSSTargetArn = valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["Description"].isNull())
|
||||
deliveryChannelsObject.description = valueDeliveryChannelsDeliveryChannel["Description"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].isNull())
|
||||
deliveryChannelsObject.configurationSnapshot = valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].asString() == "true";
|
||||
if(!valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].isNull())
|
||||
deliveryChannelsObject.configurationItemChangeNotification = valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].asString() == "true";
|
||||
if(!valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].isNull())
|
||||
deliveryChannelsObject.nonCompliantNotification = valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].asString() == "true";
|
||||
if(!valueDeliveryChannelsDeliveryChannel["AggregatorId"].isNull())
|
||||
deliveryChannelsObject.aggregatorId = valueDeliveryChannelsDeliveryChannel["AggregatorId"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["AccountId"].isNull())
|
||||
deliveryChannelsObject.accountId = std::stol(valueDeliveryChannelsDeliveryChannel["AccountId"].asString());
|
||||
deliveryChannels_.push_back(deliveryChannelsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListAggregateConfigDeliveryChannelsResult::DeliveryChannel> ListAggregateConfigDeliveryChannelsResult::getDeliveryChannels()const
|
||||
{
|
||||
return deliveryChannels_;
|
||||
}
|
||||
|
||||
@@ -84,6 +84,8 @@ void ListAggregateConfigRuleEvaluationResultsResult::parse(const std::string &pa
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString();
|
||||
if(!evaluationResultQualifierNode["CompliancePackId"].isNull())
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.compliancePackId = evaluationResultQualifierNode["CompliancePackId"].asString();
|
||||
if(!evaluationResultQualifierNode["IgnoreDate"].isNull())
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString();
|
||||
evaluationResults_.evaluationResultList.push_back(evaluationResultObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ void ListAggregateDiscoveredResourcesResult::parse(const std::string &payload)
|
||||
discoveredResourceProfiles_.nextToken = discoveredResourceProfilesNode["NextToken"].asString();
|
||||
if(!discoveredResourceProfilesNode["MaxResults"].isNull())
|
||||
discoveredResourceProfiles_.maxResults = std::stoi(discoveredResourceProfilesNode["MaxResults"].asString());
|
||||
if(!discoveredResourceProfilesNode["PreviousToken"].isNull())
|
||||
discoveredResourceProfiles_.previousToken = discoveredResourceProfilesNode["PreviousToken"].asString();
|
||||
if(!discoveredResourceProfilesNode["TotalCount"].isNull())
|
||||
discoveredResourceProfiles_.totalCount = std::stoi(discoveredResourceProfilesNode["TotalCount"].asString());
|
||||
auto allDiscoveredResourceProfileListNode = discoveredResourceProfilesNode["DiscoveredResourceProfileList"]["DiscoveredResourceProfile"];
|
||||
for (auto discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile : allDiscoveredResourceProfileListNode)
|
||||
{
|
||||
|
||||
@@ -67,6 +67,8 @@ void ListAggregateRemediationsResult::parse(const std::string &payload)
|
||||
remediationsObject.configRuleId = valueRemediationsRemediation["ConfigRuleId"].asString();
|
||||
if(!valueRemediationsRemediation["LastSuccessfulInvocationTime"].isNull())
|
||||
remediationsObject.lastSuccessfulInvocationTime = std::stol(valueRemediationsRemediation["LastSuccessfulInvocationTime"].asString());
|
||||
if(!valueRemediationsRemediation["RemediaitonOriginParams"].isNull())
|
||||
remediationsObject.remediaitonOriginParams = valueRemediationsRemediation["RemediaitonOriginParams"].asString();
|
||||
remediations_.push_back(remediationsObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,8 @@ void ListAggregateResourceEvaluationResultsResult::parse(const std::string &payl
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString();
|
||||
if(!evaluationResultQualifierNode["RegionId"].isNull())
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString();
|
||||
if(!evaluationResultQualifierNode["IgnoreDate"].isNull())
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString();
|
||||
evaluationResults_.evaluationResultList.push_back(evaluationResultObject);
|
||||
}
|
||||
|
||||
|
||||
36
config/src/model/ListConfigDeliveryChannelsRequest.cc
Normal file
36
config/src/model/ListConfigDeliveryChannelsRequest.cc
Normal 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/config/model/ListConfigDeliveryChannelsRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::ListConfigDeliveryChannelsRequest;
|
||||
|
||||
ListConfigDeliveryChannelsRequest::ListConfigDeliveryChannelsRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "ListConfigDeliveryChannels") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListConfigDeliveryChannelsRequest::~ListConfigDeliveryChannelsRequest() {}
|
||||
|
||||
std::string ListConfigDeliveryChannelsRequest::getDeliveryChannelIds() const {
|
||||
return deliveryChannelIds_;
|
||||
}
|
||||
|
||||
void ListConfigDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) {
|
||||
deliveryChannelIds_ = deliveryChannelIds;
|
||||
setParameter(std::string("DeliveryChannelIds"), deliveryChannelIds);
|
||||
}
|
||||
|
||||
81
config/src/model/ListConfigDeliveryChannelsResult.cc
Normal file
81
config/src/model/ListConfigDeliveryChannelsResult.cc
Normal 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/config/model/ListConfigDeliveryChannelsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
ListConfigDeliveryChannelsResult::ListConfigDeliveryChannelsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListConfigDeliveryChannelsResult::ListConfigDeliveryChannelsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListConfigDeliveryChannelsResult::~ListConfigDeliveryChannelsResult()
|
||||
{}
|
||||
|
||||
void ListConfigDeliveryChannelsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDeliveryChannelsNode = value["DeliveryChannels"]["DeliveryChannel"];
|
||||
for (auto valueDeliveryChannelsDeliveryChannel : allDeliveryChannelsNode)
|
||||
{
|
||||
DeliveryChannel deliveryChannelsObject;
|
||||
if(!valueDeliveryChannelsDeliveryChannel["Status"].isNull())
|
||||
deliveryChannelsObject.status = std::stoi(valueDeliveryChannelsDeliveryChannel["Status"].asString());
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelName = valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelId = valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelType = valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelTargetArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelAssumeRoleArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull())
|
||||
deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].isNull())
|
||||
deliveryChannelsObject.oversizedDataOSSTargetArn = valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["Description"].isNull())
|
||||
deliveryChannelsObject.description = valueDeliveryChannelsDeliveryChannel["Description"].asString();
|
||||
if(!valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].isNull())
|
||||
deliveryChannelsObject.configurationSnapshot = valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].asString() == "true";
|
||||
if(!valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].isNull())
|
||||
deliveryChannelsObject.configurationItemChangeNotification = valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].asString() == "true";
|
||||
if(!valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].isNull())
|
||||
deliveryChannelsObject.nonCompliantNotification = valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].asString() == "true";
|
||||
if(!valueDeliveryChannelsDeliveryChannel["AccountId"].isNull())
|
||||
deliveryChannelsObject.accountId = std::stol(valueDeliveryChannelsDeliveryChannel["AccountId"].asString());
|
||||
deliveryChannels_.push_back(deliveryChannelsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListConfigDeliveryChannelsResult::DeliveryChannel> ListConfigDeliveryChannelsResult::getDeliveryChannels()const
|
||||
{
|
||||
return deliveryChannels_;
|
||||
}
|
||||
|
||||
@@ -84,6 +84,8 @@ void ListConfigRuleEvaluationResultsResult::parse(const std::string &payload)
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString();
|
||||
if(!evaluationResultQualifierNode["CompliancePackId"].isNull())
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.compliancePackId = evaluationResultQualifierNode["CompliancePackId"].asString();
|
||||
if(!evaluationResultQualifierNode["IgnoreDate"].isNull())
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString();
|
||||
evaluationResults_.evaluationResultList.push_back(evaluationResultObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ void ListDiscoveredResourcesResult::parse(const std::string &payload)
|
||||
discoveredResourceProfiles_.nextToken = discoveredResourceProfilesNode["NextToken"].asString();
|
||||
if(!discoveredResourceProfilesNode["MaxResults"].isNull())
|
||||
discoveredResourceProfiles_.maxResults = std::stoi(discoveredResourceProfilesNode["MaxResults"].asString());
|
||||
if(!discoveredResourceProfilesNode["PreviousToken"].isNull())
|
||||
discoveredResourceProfiles_.previousToken = discoveredResourceProfilesNode["PreviousToken"].asString();
|
||||
if(!discoveredResourceProfilesNode["TotalCount"].isNull())
|
||||
discoveredResourceProfiles_.totalCount = std::stoi(discoveredResourceProfilesNode["TotalCount"].asString());
|
||||
auto allDiscoveredResourceProfileListNode = discoveredResourceProfilesNode["DiscoveredResourceProfileList"]["DiscoveredResourceProfile"];
|
||||
for (auto discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile : allDiscoveredResourceProfileListNode)
|
||||
{
|
||||
|
||||
@@ -80,6 +80,8 @@ void ListResourceEvaluationResultsResult::parse(const std::string &payload)
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString();
|
||||
if(!evaluationResultQualifierNode["RegionId"].isNull())
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString();
|
||||
if(!evaluationResultQualifierNode["IgnoreDate"].isNull())
|
||||
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString();
|
||||
evaluationResults_.evaluationResultList.push_back(evaluationResultObject);
|
||||
}
|
||||
|
||||
|
||||
27
config/src/model/ListTagResourcesRequest.cc
Normal file
27
config/src/model/ListTagResourcesRequest.cc
Normal 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/config/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "ListTagResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest() {}
|
||||
|
||||
70
config/src/model/ListTagResourcesResult.cc
Normal file
70
config/src/model/ListTagResourcesResult.cc
Normal 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/config/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagResourcesResult::~ListTagResourcesResult()
|
||||
{}
|
||||
|
||||
void ListTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagResourcesNode = value["TagResources"]["TagResource"];
|
||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
if(!valueTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
27
config/src/model/TagResourcesRequest.cc
Normal file
27
config/src/model/TagResourcesRequest.cc
Normal 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/config/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "TagResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest() {}
|
||||
|
||||
44
config/src/model/TagResourcesResult.cc
Normal file
44
config/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
TagResourcesResult::TagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagResourcesResult::~TagResourcesResult()
|
||||
{}
|
||||
|
||||
void TagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
27
config/src/model/UntagResourcesRequest.cc
Normal file
27
config/src/model/UntagResourcesRequest.cc
Normal 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/config/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "UntagResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest() {}
|
||||
|
||||
44
config/src/model/UntagResourcesResult.cc
Normal file
44
config/src/model/UntagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UntagResourcesResult::~UntagResourcesResult()
|
||||
{}
|
||||
|
||||
void UntagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
135
config/src/model/UpdateAggregateConfigDeliveryChannelRequest.cc
Normal file
135
config/src/model/UpdateAggregateConfigDeliveryChannelRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::UpdateAggregateConfigDeliveryChannelRequest;
|
||||
|
||||
UpdateAggregateConfigDeliveryChannelRequest::UpdateAggregateConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "UpdateAggregateConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAggregateConfigDeliveryChannelRequest::~UpdateAggregateConfigDeliveryChannelRequest() {}
|
||||
|
||||
bool UpdateAggregateConfigDeliveryChannelRequest::getNonCompliantNotification() const {
|
||||
return nonCompliantNotification_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) {
|
||||
nonCompliantNotification_ = nonCompliantNotification;
|
||||
setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateAggregateConfigDeliveryChannelRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool UpdateAggregateConfigDeliveryChannelRequest::getConfigurationSnapshot() const {
|
||||
return configurationSnapshot_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) {
|
||||
configurationSnapshot_ = configurationSnapshot;
|
||||
setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateAggregateConfigDeliveryChannelRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateAggregateConfigDeliveryChannelRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const {
|
||||
return deliveryChannelTargetArn_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) {
|
||||
deliveryChannelTargetArn_ = deliveryChannelTargetArn;
|
||||
setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn);
|
||||
}
|
||||
|
||||
std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const {
|
||||
return deliveryChannelCondition_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) {
|
||||
deliveryChannelCondition_ = deliveryChannelCondition;
|
||||
setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition);
|
||||
}
|
||||
|
||||
bool UpdateAggregateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const {
|
||||
return configurationItemChangeNotification_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) {
|
||||
configurationItemChangeNotification_ = configurationItemChangeNotification;
|
||||
setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelName() const {
|
||||
return deliveryChannelName_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) {
|
||||
deliveryChannelName_ = deliveryChannelName;
|
||||
setParameter(std::string("DeliveryChannelName"), deliveryChannelName);
|
||||
}
|
||||
|
||||
std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelId() const {
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) {
|
||||
deliveryChannelId_ = deliveryChannelId;
|
||||
setParameter(std::string("DeliveryChannelId"), deliveryChannelId);
|
||||
}
|
||||
|
||||
std::string UpdateAggregateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const {
|
||||
return oversizedDataOSSTargetArn_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) {
|
||||
oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn;
|
||||
setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn);
|
||||
}
|
||||
|
||||
long UpdateAggregateConfigDeliveryChannelRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelRequest::setStatus(long status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
UpdateAggregateConfigDeliveryChannelResult::UpdateAggregateConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAggregateConfigDeliveryChannelResult::UpdateAggregateConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAggregateConfigDeliveryChannelResult::~UpdateAggregateConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void UpdateAggregateConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeliveryChannelId"].isNull())
|
||||
deliveryChannelId_ = value["DeliveryChannelId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateAggregateConfigDeliveryChannelResult::getDeliveryChannelId()const
|
||||
{
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
126
config/src/model/UpdateConfigDeliveryChannelRequest.cc
Normal file
126
config/src/model/UpdateConfigDeliveryChannelRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/UpdateConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::UpdateConfigDeliveryChannelRequest;
|
||||
|
||||
UpdateConfigDeliveryChannelRequest::UpdateConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "UpdateConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateConfigDeliveryChannelRequest::~UpdateConfigDeliveryChannelRequest() {}
|
||||
|
||||
bool UpdateConfigDeliveryChannelRequest::getNonCompliantNotification() const {
|
||||
return nonCompliantNotification_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) {
|
||||
nonCompliantNotification_ = nonCompliantNotification;
|
||||
setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateConfigDeliveryChannelRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool UpdateConfigDeliveryChannelRequest::getConfigurationSnapshot() const {
|
||||
return configurationSnapshot_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) {
|
||||
configurationSnapshot_ = configurationSnapshot;
|
||||
setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateConfigDeliveryChannelRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const {
|
||||
return deliveryChannelTargetArn_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) {
|
||||
deliveryChannelTargetArn_ = deliveryChannelTargetArn;
|
||||
setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn);
|
||||
}
|
||||
|
||||
std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const {
|
||||
return deliveryChannelCondition_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) {
|
||||
deliveryChannelCondition_ = deliveryChannelCondition;
|
||||
setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition);
|
||||
}
|
||||
|
||||
bool UpdateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const {
|
||||
return configurationItemChangeNotification_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) {
|
||||
configurationItemChangeNotification_ = configurationItemChangeNotification;
|
||||
setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelName() const {
|
||||
return deliveryChannelName_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) {
|
||||
deliveryChannelName_ = deliveryChannelName;
|
||||
setParameter(std::string("DeliveryChannelName"), deliveryChannelName);
|
||||
}
|
||||
|
||||
std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelId() const {
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) {
|
||||
deliveryChannelId_ = deliveryChannelId;
|
||||
setParameter(std::string("DeliveryChannelId"), deliveryChannelId);
|
||||
}
|
||||
|
||||
std::string UpdateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const {
|
||||
return oversizedDataOSSTargetArn_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) {
|
||||
oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn;
|
||||
setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn);
|
||||
}
|
||||
|
||||
long UpdateConfigDeliveryChannelRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateConfigDeliveryChannelRequest::setStatus(long status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
51
config/src/model/UpdateConfigDeliveryChannelResult.cc
Normal file
51
config/src/model/UpdateConfigDeliveryChannelResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/UpdateConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
UpdateConfigDeliveryChannelResult::UpdateConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateConfigDeliveryChannelResult::UpdateConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateConfigDeliveryChannelResult::~UpdateConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void UpdateConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeliveryChannelId"].isNull())
|
||||
deliveryChannelId_ = value["DeliveryChannelId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateConfigDeliveryChannelResult::getDeliveryChannelId()const
|
||||
{
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user