Rebuild sdk (#60)

* rebuild sdk

* fixed ut include Utils.h
This commit is contained in:
Axios
2019-08-14 14:34:09 +08:00
committed by GitHub
parent f3d9843e63
commit c43307bc80
11893 changed files with 462166 additions and 221301 deletions

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h>
using AlibabaCloud::BssOpenApi::Model::ApplyInvoiceRequest;
ApplyInvoiceRequest::ApplyInvoiceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ApplyInvoice")
{}
ApplyInvoiceRequest::~ApplyInvoiceRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h>
using AlibabaCloud::BssOpenApi::Model::ApplyInvoiceRequest;
ApplyInvoiceRequest::ApplyInvoiceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ApplyInvoice")
{}
ApplyInvoiceRequest::~ApplyInvoiceRequest()
{}
int ApplyInvoiceRequest::getInvoicingType()const
{
return invoicingType_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ApplyInvoiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ApplyInvoiceResult::ApplyInvoiceResult() :
ServiceResult()
{}
ApplyInvoiceResult::ApplyInvoiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyInvoiceResult::~ApplyInvoiceResult()
{}
void ApplyInvoiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ApplyInvoiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ApplyInvoiceResult::ApplyInvoiceResult() :
ServiceResult()
{}
ApplyInvoiceResult::ApplyInvoiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyInvoiceResult::~ApplyInvoiceResult()
{}
void ApplyInvoiceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["InvoiceApplyId"].isNull())
data_.invoiceApplyId = std::stol(dataNode["InvoiceApplyId"].asString());
@@ -49,9 +52,9 @@ void ApplyInvoiceResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string ApplyInvoiceResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CancelOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CancelOrderResult::CancelOrderResult() :
ServiceResult()
{}
CancelOrderResult::CancelOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelOrderResult::~CancelOrderResult()
{}
void CancelOrderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CancelOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CancelOrderResult::CancelOrderResult() :
ServiceResult()
{}
CancelOrderResult::CancelOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelOrderResult::~CancelOrderResult()
{}
void CancelOrderResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["HostId"].isNull())
data_.hostId = dataNode["HostId"].asString();
@@ -49,9 +52,9 @@ void CancelOrderResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string CancelOrderResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult() :
ServiceResult()
{}
ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeResellerConsumeAmountResult::~ChangeResellerConsumeAmountResult()
{}
void ChangeResellerConsumeAmountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult() :
ServiceResult()
{}
ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeResellerConsumeAmountResult::~ChangeResellerConsumeAmountResult()
{}
void ChangeResellerConsumeAmountResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
@@ -48,9 +51,9 @@ void ChangeResellerConsumeAmountResult::parse(const std::string &payload)
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
}
std::string ChangeResellerConsumeAmountResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h>
using AlibabaCloud::BssOpenApi::Model::ConvertChargeTypeRequest;
ConvertChargeTypeRequest::ConvertChargeTypeRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ConvertChargeType")
{}
ConvertChargeTypeRequest::~ConvertChargeTypeRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h>
using AlibabaCloud::BssOpenApi::Model::ConvertChargeTypeRequest;
ConvertChargeTypeRequest::ConvertChargeTypeRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ConvertChargeType")
{}
ConvertChargeTypeRequest::~ConvertChargeTypeRequest()
{}
int ConvertChargeTypeRequest::getPeriod()const
{
return period_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ConvertChargeTypeResult::ConvertChargeTypeResult() :
ServiceResult()
{}
ConvertChargeTypeResult::ConvertChargeTypeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConvertChargeTypeResult::~ConvertChargeTypeResult()
{}
void ConvertChargeTypeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ConvertChargeTypeResult::ConvertChargeTypeResult() :
ServiceResult()
{}
ConvertChargeTypeResult::ConvertChargeTypeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConvertChargeTypeResult::~ConvertChargeTypeResult()
{}
void ConvertChargeTypeResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["OrderId"].isNull())
data_.orderId = dataNode["OrderId"].asString();
@@ -49,9 +52,9 @@ void ConvertChargeTypeResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string ConvertChargeTypeResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateAgAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateAgAccountResult::CreateAgAccountResult() :
ServiceResult()
{}
CreateAgAccountResult::CreateAgAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAgAccountResult::~CreateAgAccountResult()
{}
void CreateAgAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateAgAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateAgAccountResult::CreateAgAccountResult() :
ServiceResult()
{}
CreateAgAccountResult::CreateAgAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAgAccountResult::~CreateAgAccountResult()
{}
void CreateAgAccountResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto agRelationDtoNode = value["AgRelationDto"];
if(!agRelationDtoNode["Pk"].isNull())
agRelationDto_.pk = agRelationDtoNode["Pk"].asString();
@@ -55,9 +58,9 @@ void CreateAgAccountResult::parse(const std::string &payload)
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
}
std::string CreateAgAccountResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateInstanceResult::CreateInstanceResult() :
ServiceResult()
{}
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInstanceResult::~CreateInstanceResult()
{}
void CreateInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateInstanceResult::CreateInstanceResult() :
ServiceResult()
{}
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInstanceResult::~CreateInstanceResult()
{}
void CreateInstanceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["InstanceId"].isNull())
data_.instanceId = dataNode["InstanceId"].asString();
@@ -51,9 +54,9 @@ void CreateInstanceResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string CreateInstanceResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateResellerUserQuotaResult::CreateResellerUserQuotaResult() :
ServiceResult()
{}
CreateResellerUserQuotaResult::CreateResellerUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateResellerUserQuotaResult::~CreateResellerUserQuotaResult()
{}
void CreateResellerUserQuotaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateResellerUserQuotaResult::CreateResellerUserQuotaResult() :
ServiceResult()
{}
CreateResellerUserQuotaResult::CreateResellerUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateResellerUserQuotaResult::~CreateResellerUserQuotaResult()
{}
void CreateResellerUserQuotaResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
@@ -48,9 +51,9 @@ void CreateResellerUserQuotaResult::parse(const std::string &payload)
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
}
std::string CreateResellerUserQuotaResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h>
using AlibabaCloud::BssOpenApi::Model::CreateResourcePackageRequest;
CreateResourcePackageRequest::CreateResourcePackageRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResourcePackage")
{}
CreateResourcePackageRequest::~CreateResourcePackageRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h>
using AlibabaCloud::BssOpenApi::Model::CreateResourcePackageRequest;
CreateResourcePackageRequest::CreateResourcePackageRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResourcePackage")
{}
CreateResourcePackageRequest::~CreateResourcePackageRequest()
{}
int CreateResourcePackageRequest::getDuration()const
{
return duration_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateResourcePackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateResourcePackageResult::CreateResourcePackageResult() :
ServiceResult()
{}
CreateResourcePackageResult::CreateResourcePackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateResourcePackageResult::~CreateResourcePackageResult()
{}
void CreateResourcePackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/CreateResourcePackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateResourcePackageResult::CreateResourcePackageResult() :
ServiceResult()
{}
CreateResourcePackageResult::CreateResourcePackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateResourcePackageResult::~CreateResourcePackageResult()
{}
void CreateResourcePackageResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["OrderId"].isNull())
data_.orderId = std::stol(dataNode["OrderId"].asString());
@@ -53,9 +56,9 @@ void CreateResourcePackageResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string CreateResourcePackageResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/DescribePricingModuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
DescribePricingModuleResult::DescribePricingModuleResult() :
ServiceResult()
{}
DescribePricingModuleResult::DescribePricingModuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePricingModuleResult::~DescribePricingModuleResult()
{}
void DescribePricingModuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/DescribePricingModuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
DescribePricingModuleResult::DescribePricingModuleResult() :
ServiceResult()
{}
DescribePricingModuleResult::DescribePricingModuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePricingModuleResult::~DescribePricingModuleResult()
{}
void DescribePricingModuleResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allModuleList = value["ModuleList"]["Module"];
for (auto value : allModuleList)
@@ -90,9 +93,9 @@ void DescribePricingModuleResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string DescribePricingModuleResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/DescribeResourcePackageProductResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
DescribeResourcePackageProductResult::DescribeResourcePackageProductResult() :
ServiceResult()
{}
DescribeResourcePackageProductResult::DescribeResourcePackageProductResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeResourcePackageProductResult::~DescribeResourcePackageProductResult()
{}
void DescribeResourcePackageProductResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/DescribeResourcePackageProductResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
DescribeResourcePackageProductResult::DescribeResourcePackageProductResult() :
ServiceResult()
{}
DescribeResourcePackageProductResult::DescribeResourcePackageProductResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeResourcePackageProductResult::~DescribeResourcePackageProductResult()
{}
void DescribeResourcePackageProductResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allResourcePackages = value["ResourcePackages"]["ResourcePackage"];
for (auto value : allResourcePackages)
@@ -103,9 +106,9 @@ void DescribeResourcePackageProductResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string DescribeResourcePackageProductResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/EnableBillGenerationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
EnableBillGenerationResult::EnableBillGenerationResult() :
ServiceResult()
{}
EnableBillGenerationResult::EnableBillGenerationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableBillGenerationResult::~EnableBillGenerationResult()
{}
void EnableBillGenerationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/EnableBillGenerationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
EnableBillGenerationResult::EnableBillGenerationResult() :
ServiceResult()
{}
EnableBillGenerationResult::EnableBillGenerationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableBillGenerationResult::~EnableBillGenerationResult()
{}
void EnableBillGenerationResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Boolean"].isNull())
data_.boolean = dataNode["Boolean"].asString() == "true";
@@ -49,9 +52,9 @@ void EnableBillGenerationResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string EnableBillGenerationResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetCustomerAccountInfoRequest;
GetCustomerAccountInfoRequest::GetCustomerAccountInfoRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerAccountInfo")
{}
GetCustomerAccountInfoRequest::~GetCustomerAccountInfoRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetCustomerAccountInfoRequest;
GetCustomerAccountInfoRequest::GetCustomerAccountInfoRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerAccountInfo")
{}
GetCustomerAccountInfoRequest::~GetCustomerAccountInfoRequest()
{}
long GetCustomerAccountInfoRequest::getOwnerId()const
{
return ownerId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetCustomerAccountInfoResult::GetCustomerAccountInfoResult() :
ServiceResult()
{}
GetCustomerAccountInfoResult::GetCustomerAccountInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCustomerAccountInfoResult::~GetCustomerAccountInfoResult()
{}
void GetCustomerAccountInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetCustomerAccountInfoResult::GetCustomerAccountInfoResult() :
ServiceResult()
{}
GetCustomerAccountInfoResult::GetCustomerAccountInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCustomerAccountInfoResult::~GetCustomerAccountInfoResult()
{}
void GetCustomerAccountInfoResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["LoginEmail"].isNull())
data_.loginEmail = dataNode["LoginEmail"].asString();
@@ -59,9 +62,9 @@ void GetCustomerAccountInfoResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string GetCustomerAccountInfoResult::getMessage()const
{
return message_;

View File

@@ -1,27 +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/bssopenapi/model/GetCustomerListRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetCustomerListRequest;
GetCustomerListRequest::GetCustomerListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerList")
{}
GetCustomerListRequest::~GetCustomerListRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetCustomerListRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetCustomerListRequest;
GetCustomerListRequest::GetCustomerListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerList")
{}
GetCustomerListRequest::~GetCustomerListRequest()
{}

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetCustomerListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetCustomerListResult::GetCustomerListResult() :
ServiceResult()
{}
GetCustomerListResult::GetCustomerListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCustomerListResult::~GetCustomerListResult()
{}
void GetCustomerListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetCustomerListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetCustomerListResult::GetCustomerListResult() :
ServiceResult()
{}
GetCustomerListResult::GetCustomerListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCustomerListResult::~GetCustomerListResult()
{}
void GetCustomerListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allUidList = dataNode["UidList"]["Item"];
for (auto value : allUidList)
@@ -50,9 +53,9 @@ void GetCustomerListResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string GetCustomerListResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetOrderDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetOrderDetailResult::GetOrderDetailResult() :
ServiceResult()
{}
GetOrderDetailResult::GetOrderDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOrderDetailResult::~GetOrderDetailResult()
{}
void GetOrderDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetOrderDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetOrderDetailResult::GetOrderDetailResult() :
ServiceResult()
{}
GetOrderDetailResult::GetOrderDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOrderDetailResult::~GetOrderDetailResult()
{}
void GetOrderDetailResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["HostName"].isNull())
data_.hostName = dataNode["HostName"].asString();
@@ -113,9 +116,9 @@ void GetOrderDetailResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string GetOrderDetailResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetPayAsYouGoPriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult() :
ServiceResult()
{}
GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPayAsYouGoPriceResult::~GetPayAsYouGoPriceResult()
{}
void GetPayAsYouGoPriceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetPayAsYouGoPriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult() :
ServiceResult()
{}
GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPayAsYouGoPriceResult::~GetPayAsYouGoPriceResult()
{}
void GetPayAsYouGoPriceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Currency"].isNull())
data_.currency = dataNode["Currency"].asString();
@@ -77,9 +80,9 @@ void GetPayAsYouGoPriceResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string GetPayAsYouGoPriceResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetResourcePackagePriceRequest;
GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetResourcePackagePrice")
{}
GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetResourcePackagePriceRequest;
GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetResourcePackagePrice")
{}
GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest()
{}
int GetResourcePackagePriceRequest::getDuration()const
{
return duration_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetResourcePackagePriceResult::GetResourcePackagePriceResult() :
ServiceResult()
{}
GetResourcePackagePriceResult::GetResourcePackagePriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetResourcePackagePriceResult::~GetResourcePackagePriceResult()
{}
void GetResourcePackagePriceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetResourcePackagePriceResult::GetResourcePackagePriceResult() :
ServiceResult()
{}
GetResourcePackagePriceResult::GetResourcePackagePriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetResourcePackagePriceResult::~GetResourcePackagePriceResult()
{}
void GetResourcePackagePriceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Currency"].isNull())
data_.currency = dataNode["Currency"].asString();
@@ -65,9 +68,9 @@ void GetResourcePackagePriceResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string GetResourcePackagePriceResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetSubscriptionPriceRequest;
GetSubscriptionPriceRequest::GetSubscriptionPriceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetSubscriptionPrice")
{}
GetSubscriptionPriceRequest::~GetSubscriptionPriceRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetSubscriptionPriceRequest;
GetSubscriptionPriceRequest::GetSubscriptionPriceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetSubscriptionPrice")
{}
GetSubscriptionPriceRequest::~GetSubscriptionPriceRequest()
{}
int GetSubscriptionPriceRequest::getServicePeriodQuantity()const
{
return servicePeriodQuantity_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetSubscriptionPriceResult::GetSubscriptionPriceResult() :
ServiceResult()
{}
GetSubscriptionPriceResult::GetSubscriptionPriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSubscriptionPriceResult::~GetSubscriptionPriceResult()
{}
void GetSubscriptionPriceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetSubscriptionPriceResult::GetSubscriptionPriceResult() :
ServiceResult()
{}
GetSubscriptionPriceResult::GetSubscriptionPriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSubscriptionPriceResult::~GetSubscriptionPriceResult()
{}
void GetSubscriptionPriceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["OriginalPrice"].isNull())
data_.originalPrice = std::stof(dataNode["OriginalPrice"].asString());
@@ -85,9 +88,9 @@ void GetSubscriptionPriceResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string GetSubscriptionPriceResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ModifyInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ModifyInstanceResult::ModifyInstanceResult() :
ServiceResult()
{}
ModifyInstanceResult::ModifyInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyInstanceResult::~ModifyInstanceResult()
{}
void ModifyInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/ModifyInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ModifyInstanceResult::ModifyInstanceResult() :
ServiceResult()
{}
ModifyInstanceResult::ModifyInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyInstanceResult::~ModifyInstanceResult()
{}
void ModifyInstanceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["HostId"].isNull())
data_.hostId = dataNode["HostId"].asString();
@@ -51,9 +54,9 @@ void ModifyInstanceResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string ModifyInstanceResult::getMessage()const
{
return message_;

View File

@@ -1,27 +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/bssopenapi/model/QueryAccountBalanceRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryAccountBalanceRequest;
QueryAccountBalanceRequest::QueryAccountBalanceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBalance")
{}
QueryAccountBalanceRequest::~QueryAccountBalanceRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryAccountBalanceRequest;
QueryAccountBalanceRequest::QueryAccountBalanceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBalance")
{}
QueryAccountBalanceRequest::~QueryAccountBalanceRequest()
{}

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAccountBalanceResult::QueryAccountBalanceResult() :
ServiceResult()
{}
QueryAccountBalanceResult::QueryAccountBalanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAccountBalanceResult::~QueryAccountBalanceResult()
{}
void QueryAccountBalanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAccountBalanceResult::QueryAccountBalanceResult() :
ServiceResult()
{}
QueryAccountBalanceResult::QueryAccountBalanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAccountBalanceResult::~QueryAccountBalanceResult()
{}
void QueryAccountBalanceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["AvailableAmount"].isNull())
data_.availableAmount = dataNode["AvailableAmount"].asString();
@@ -57,9 +60,9 @@ void QueryAccountBalanceResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryAccountBalanceResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAccountTransactionsResult::QueryAccountTransactionsResult() :
ServiceResult()
{}
QueryAccountTransactionsResult::QueryAccountTransactionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAccountTransactionsResult::~QueryAccountTransactionsResult()
{}
void QueryAccountTransactionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAccountTransactionsResult::QueryAccountTransactionsResult() :
ServiceResult()
{}
QueryAccountTransactionsResult::QueryAccountTransactionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAccountTransactionsResult::~QueryAccountTransactionsResult()
{}
void QueryAccountTransactionsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["AccountName"].isNull())
data_.accountName = dataNode["AccountName"].asString();
@@ -87,9 +90,9 @@ void QueryAccountTransactionsResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryAccountTransactionsResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAvailableInstancesResult::QueryAvailableInstancesResult() :
ServiceResult()
{}
QueryAvailableInstancesResult::QueryAvailableInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAvailableInstancesResult::~QueryAvailableInstancesResult()
{}
void QueryAvailableInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAvailableInstancesResult::QueryAvailableInstancesResult() :
ServiceResult()
{}
QueryAvailableInstancesResult::QueryAvailableInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAvailableInstancesResult::~QueryAvailableInstancesResult()
{}
void QueryAvailableInstancesResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNum"].isNull())
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
@@ -95,9 +98,9 @@ void QueryAvailableInstancesResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryAvailableInstancesResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryBillOverviewResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryBillOverviewResult::QueryBillOverviewResult() :
ServiceResult()
{}
QueryBillOverviewResult::QueryBillOverviewResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryBillOverviewResult::~QueryBillOverviewResult()
{}
void QueryBillOverviewResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryBillOverviewResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryBillOverviewResult::QueryBillOverviewResult() :
ServiceResult()
{}
QueryBillOverviewResult::QueryBillOverviewResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryBillOverviewResult::~QueryBillOverviewResult()
{}
void QueryBillOverviewResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["BillingCycle"].isNull())
data_.billingCycle = dataNode["BillingCycle"].asString();
@@ -99,9 +102,9 @@ void QueryBillOverviewResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryBillOverviewResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryBillResult::QueryBillResult() :
ServiceResult()
{}
QueryBillResult::QueryBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryBillResult::~QueryBillResult()
{}
void QueryBillResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryBillResult::QueryBillResult() :
ServiceResult()
{}
QueryBillResult::QueryBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryBillResult::~QueryBillResult()
{}
void QueryBillResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["BillingCycle"].isNull())
data_.billingCycle = dataNode["BillingCycle"].asString();
@@ -119,9 +122,9 @@ void QueryBillResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryBillResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryCashCouponsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryCashCouponsResult::QueryCashCouponsResult() :
ServiceResult()
{}
QueryCashCouponsResult::QueryCashCouponsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCashCouponsResult::~QueryCashCouponsResult()
{}
void QueryCashCouponsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryCashCouponsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryCashCouponsResult::QueryCashCouponsResult() :
ServiceResult()
{}
QueryCashCouponsResult::QueryCashCouponsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCashCouponsResult::~QueryCashCouponsResult()
{}
void QueryCashCouponsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["CashCoupon"];
for (auto value : allData)
{
@@ -72,9 +75,9 @@ void QueryCashCouponsResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryCashCouponsResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryCustomerAddressListRequest;
QueryCustomerAddressListRequest::QueryCustomerAddressListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCustomerAddressList")
{}
QueryCustomerAddressListRequest::~QueryCustomerAddressListRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryCustomerAddressListRequest;
QueryCustomerAddressListRequest::QueryCustomerAddressListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCustomerAddressList")
{}
QueryCustomerAddressListRequest::~QueryCustomerAddressListRequest()
{}
long QueryCustomerAddressListRequest::getCallerBid()const
{
return callerBid_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryCustomerAddressListResult::QueryCustomerAddressListResult() :
ServiceResult()
{}
QueryCustomerAddressListResult::QueryCustomerAddressListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCustomerAddressListResult::~QueryCustomerAddressListResult()
{}
void QueryCustomerAddressListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryCustomerAddressListResult::QueryCustomerAddressListResult() :
ServiceResult()
{}
QueryCustomerAddressListResult::QueryCustomerAddressListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCustomerAddressListResult::~QueryCustomerAddressListResult()
{}
void QueryCustomerAddressListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allCustomerInvoiceAddressList = value["CustomerInvoiceAddressList"]["CustomerInvoiceAddress"];
for (auto value : allCustomerInvoiceAddressList)
@@ -77,9 +80,9 @@ void QueryCustomerAddressListResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryCustomerAddressListResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryEvaluateListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryEvaluateListResult::QueryEvaluateListResult() :
ServiceResult()
{}
QueryEvaluateListResult::QueryEvaluateListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryEvaluateListResult::~QueryEvaluateListResult()
{}
void QueryEvaluateListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryEvaluateListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryEvaluateListResult::QueryEvaluateListResult() :
ServiceResult()
{}
QueryEvaluateListResult::QueryEvaluateListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryEvaluateListResult::~QueryEvaluateListResult()
{}
void QueryEvaluateListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["HostId"].isNull())
data_.hostId = dataNode["HostId"].asString();
@@ -107,9 +110,9 @@ void QueryEvaluateListResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryEvaluateListResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryInstanceBillRequest;
QueryInstanceBillRequest::QueryInstanceBillRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceBill")
{}
QueryInstanceBillRequest::~QueryInstanceBillRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryInstanceBillRequest;
QueryInstanceBillRequest::QueryInstanceBillRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceBill")
{}
QueryInstanceBillRequest::~QueryInstanceBillRequest()
{}
bool QueryInstanceBillRequest::getIsBillingItem()const
{
return isBillingItem_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInstanceBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryInstanceBillResult::QueryInstanceBillResult() :
ServiceResult()
{}
QueryInstanceBillResult::QueryInstanceBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInstanceBillResult::~QueryInstanceBillResult()
{}
void QueryInstanceBillResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInstanceBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryInstanceBillResult::QueryInstanceBillResult() :
ServiceResult()
{}
QueryInstanceBillResult::QueryInstanceBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInstanceBillResult::~QueryInstanceBillResult()
{}
void QueryInstanceBillResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["BillingCycle"].isNull())
data_.billingCycle = dataNode["BillingCycle"].asString();
@@ -133,9 +136,9 @@ void QueryInstanceBillResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryInstanceBillResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryInstanceGaapCostResult::QueryInstanceGaapCostResult() :
ServiceResult()
{}
QueryInstanceGaapCostResult::QueryInstanceGaapCostResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInstanceGaapCostResult::~QueryInstanceGaapCostResult()
{}
void QueryInstanceGaapCostResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryInstanceGaapCostResult::QueryInstanceGaapCostResult() :
ServiceResult()
{}
QueryInstanceGaapCostResult::QueryInstanceGaapCostResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInstanceGaapCostResult::~QueryInstanceGaapCostResult()
{}
void QueryInstanceGaapCostResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["HostId"].isNull())
data_.hostId = dataNode["HostId"].asString();
@@ -165,9 +168,9 @@ void QueryInstanceGaapCostResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryInstanceGaapCostResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryInvoicingCustomerListRequest;
QueryInvoicingCustomerListRequest::QueryInvoicingCustomerListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInvoicingCustomerList")
{}
QueryInvoicingCustomerListRequest::~QueryInvoicingCustomerListRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryInvoicingCustomerListRequest;
QueryInvoicingCustomerListRequest::QueryInvoicingCustomerListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInvoicingCustomerList")
{}
QueryInvoicingCustomerListRequest::~QueryInvoicingCustomerListRequest()
{}
long QueryInvoicingCustomerListRequest::getOwnerId()const
{
return ownerId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult() :
ServiceResult()
{}
QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInvoicingCustomerListResult::~QueryInvoicingCustomerListResult()
{}
void QueryInvoicingCustomerListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult() :
ServiceResult()
{}
QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryInvoicingCustomerListResult::~QueryInvoicingCustomerListResult()
{}
void QueryInvoicingCustomerListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allCustomerInvoiceList = value["CustomerInvoiceList"]["CustomerInvoice"];
for (auto value : allCustomerInvoiceList)
@@ -95,9 +98,9 @@ void QueryInvoicingCustomerListResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryInvoicingCustomerListResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryMonthlyBillResult::QueryMonthlyBillResult() :
ServiceResult()
{}
QueryMonthlyBillResult::QueryMonthlyBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMonthlyBillResult::~QueryMonthlyBillResult()
{}
void QueryMonthlyBillResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryMonthlyBillResult::QueryMonthlyBillResult() :
ServiceResult()
{}
QueryMonthlyBillResult::QueryMonthlyBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMonthlyBillResult::~QueryMonthlyBillResult()
{}
void QueryMonthlyBillResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["OutstandingAmount"].isNull())
data_.outstandingAmount = std::stof(dataNode["OutstandingAmount"].asString());
@@ -99,9 +102,9 @@ void QueryMonthlyBillResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryMonthlyBillResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult() :
ServiceResult()
{}
QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMonthlyInstanceConsumptionResult::~QueryMonthlyInstanceConsumptionResult()
{}
void QueryMonthlyInstanceConsumptionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult() :
ServiceResult()
{}
QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMonthlyInstanceConsumptionResult::~QueryMonthlyInstanceConsumptionResult()
{}
void QueryMonthlyInstanceConsumptionResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNum"].isNull())
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
@@ -95,9 +98,9 @@ void QueryMonthlyInstanceConsumptionResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryMonthlyInstanceConsumptionResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryOrdersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryOrdersResult::QueryOrdersResult() :
ServiceResult()
{}
QueryOrdersResult::QueryOrdersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryOrdersResult::~QueryOrdersResult()
{}
void QueryOrdersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryOrdersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryOrdersResult::QueryOrdersResult() :
ServiceResult()
{}
QueryOrdersResult::QueryOrdersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryOrdersResult::~QueryOrdersResult()
{}
void QueryOrdersResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["HostName"].isNull())
data_.hostName = dataNode["HostName"].asString();
@@ -93,9 +96,9 @@ void QueryOrdersResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryOrdersResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryPrepaidCardsResult::QueryPrepaidCardsResult() :
ServiceResult()
{}
QueryPrepaidCardsResult::QueryPrepaidCardsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryPrepaidCardsResult::~QueryPrepaidCardsResult()
{}
void QueryPrepaidCardsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryPrepaidCardsResult::QueryPrepaidCardsResult() :
ServiceResult()
{}
QueryPrepaidCardsResult::QueryPrepaidCardsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryPrepaidCardsResult::~QueryPrepaidCardsResult()
{}
void QueryPrepaidCardsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["PrepaidCard"];
for (auto value : allData)
{
@@ -72,9 +75,9 @@ void QueryPrepaidCardsResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryPrepaidCardsResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryProductListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryProductListRequest;
QueryProductListRequest::QueryProductListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryProductList")
{}
QueryProductListRequest::~QueryProductListRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryProductListRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryProductListRequest;
QueryProductListRequest::QueryProductListRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryProductList")
{}
QueryProductListRequest::~QueryProductListRequest()
{}
bool QueryProductListRequest::getQueryTotalCount()const
{
return queryTotalCount_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryProductListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryProductListResult::QueryProductListResult() :
ServiceResult()
{}
QueryProductListResult::QueryProductListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryProductListResult::~QueryProductListResult()
{}
void QueryProductListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryProductListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryProductListResult::QueryProductListResult() :
ServiceResult()
{}
QueryProductListResult::QueryProductListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryProductListResult::~QueryProductListResult()
{}
void QueryProductListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
@@ -67,9 +70,9 @@ void QueryProductListResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryProductListResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryRedeemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryRedeemResult::QueryRedeemResult() :
ServiceResult()
{}
QueryRedeemResult::QueryRedeemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRedeemResult::~QueryRedeemResult()
{}
void QueryRedeemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryRedeemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryRedeemResult::QueryRedeemResult() :
ServiceResult()
{}
QueryRedeemResult::QueryRedeemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRedeemResult::~QueryRedeemResult()
{}
void QueryRedeemResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNum"].isNull())
data_.pageNum = std::stol(dataNode["PageNum"].asString());
@@ -79,9 +82,9 @@ void QueryRedeemResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryRedeemResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult() :
ServiceResult()
{}
QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryResellerAvailableQuotaResult::~QueryResellerAvailableQuotaResult()
{}
void QueryResellerAvailableQuotaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult() :
ServiceResult()
{}
QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryResellerAvailableQuotaResult::~QueryResellerAvailableQuotaResult()
{}
void QueryResellerAvailableQuotaResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
@@ -48,9 +51,9 @@ void QueryResellerAvailableQuotaResult::parse(const std::string &payload)
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
}
std::string QueryResellerAvailableQuotaResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult() :
ServiceResult()
{}
QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryResourcePackageInstancesResult::~QueryResourcePackageInstancesResult()
{}
void QueryResourcePackageInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult() :
ServiceResult()
{}
QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryResourcePackageInstancesResult::~QueryResourcePackageInstancesResult()
{}
void QueryResourcePackageInstancesResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["HostId"].isNull())
data_.hostId = dataNode["HostId"].asString();
@@ -94,9 +97,9 @@ void QueryResourcePackageInstancesResult::parse(const std::string &payload)
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
}
std::string QueryResourcePackageInstancesResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QuerySettlementBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QuerySettlementBillResult::QuerySettlementBillResult() :
ServiceResult()
{}
QuerySettlementBillResult::QuerySettlementBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySettlementBillResult::~QuerySettlementBillResult()
{}
void QuerySettlementBillResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QuerySettlementBillResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QuerySettlementBillResult::QuerySettlementBillResult() :
ServiceResult()
{}
QuerySettlementBillResult::QuerySettlementBillResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySettlementBillResult::~QuerySettlementBillResult()
{}
void QuerySettlementBillResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNum"].isNull())
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
@@ -147,9 +150,9 @@ void QuerySettlementBillResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QuerySettlementBillResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryUserOmsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryUserOmsDataResult::QueryUserOmsDataResult() :
ServiceResult()
{}
QueryUserOmsDataResult::QueryUserOmsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryUserOmsDataResult::~QueryUserOmsDataResult()
{}
void QueryUserOmsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryUserOmsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryUserOmsDataResult::QueryUserOmsDataResult() :
ServiceResult()
{}
QueryUserOmsDataResult::QueryUserOmsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryUserOmsDataResult::~QueryUserOmsDataResult()
{}
void QueryUserOmsDataResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Marker"].isNull())
data_.marker = dataNode["Marker"].asString();
@@ -54,9 +57,9 @@ void QueryUserOmsDataResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string QueryUserOmsDataResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/RenewInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
RenewInstanceResult::RenewInstanceResult() :
ServiceResult()
{}
RenewInstanceResult::RenewInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RenewInstanceResult::~RenewInstanceResult()
{}
void RenewInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/RenewInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
RenewInstanceResult::RenewInstanceResult() :
ServiceResult()
{}
RenewInstanceResult::RenewInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RenewInstanceResult::~RenewInstanceResult()
{}
void RenewInstanceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["OrderId"].isNull())
data_.orderId = dataNode["OrderId"].asString();
@@ -49,9 +52,9 @@ void RenewInstanceResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string RenewInstanceResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,54 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetRenewalResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetRenewalResult::SetRenewalResult() :
ServiceResult()
{}
SetRenewalResult::SetRenewalResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetRenewalResult::~SetRenewalResult()
{}
void SetRenewalResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetRenewalResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetRenewalResult::SetRenewalResult() :
ServiceResult()
{}
SetRenewalResult::SetRenewalResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetRenewalResult::~SetRenewalResult()
{}
void SetRenewalResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string SetRenewalResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult() :
ServiceResult()
{}
SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetResellerUserAlarmThresholdResult::~SetResellerUserAlarmThresholdResult()
{}
void SetResellerUserAlarmThresholdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult() :
ServiceResult()
{}
SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetResellerUserAlarmThresholdResult::~SetResellerUserAlarmThresholdResult()
{}
void SetResellerUserAlarmThresholdResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
@@ -48,9 +51,9 @@ void SetResellerUserAlarmThresholdResult::parse(const std::string &payload)
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
}
std::string SetResellerUserAlarmThresholdResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetResellerUserQuotaResult::SetResellerUserQuotaResult() :
ServiceResult()
{}
SetResellerUserQuotaResult::SetResellerUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetResellerUserQuotaResult::~SetResellerUserQuotaResult()
{}
void SetResellerUserQuotaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetResellerUserQuotaResult::SetResellerUserQuotaResult() :
ServiceResult()
{}
SetResellerUserQuotaResult::SetResellerUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetResellerUserQuotaResult::~SetResellerUserQuotaResult()
{}
void SetResellerUserQuotaResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
@@ -48,9 +51,9 @@ void SetResellerUserQuotaResult::parse(const std::string &payload)
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
}
std::string SetResellerUserQuotaResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetResellerUserStatusResult::SetResellerUserStatusResult() :
ServiceResult()
{}
SetResellerUserStatusResult::SetResellerUserStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetResellerUserStatusResult::~SetResellerUserStatusResult()
{}
void SetResellerUserStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetResellerUserStatusResult::SetResellerUserStatusResult() :
ServiceResult()
{}
SetResellerUserStatusResult::SetResellerUserStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetResellerUserStatusResult::~SetResellerUserStatusResult()
{}
void SetResellerUserStatusResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
@@ -48,9 +51,9 @@ void SetResellerUserStatusResult::parse(const std::string &payload)
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
}
std::string SetResellerUserStatusResult::getMessage()const
{
return message_;

View File

@@ -1,30 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h>
using AlibabaCloud::BssOpenApi::Model::SubscribeBillToOSSRequest;
SubscribeBillToOSSRequest::SubscribeBillToOSSRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeBillToOSS")
{}
SubscribeBillToOSSRequest::~SubscribeBillToOSSRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h>
using AlibabaCloud::BssOpenApi::Model::SubscribeBillToOSSRequest;
SubscribeBillToOSSRequest::SubscribeBillToOSSRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeBillToOSS")
{}
SubscribeBillToOSSRequest::~SubscribeBillToOSSRequest()
{}
long SubscribeBillToOSSRequest::getBucketOwnerId()const
{
return bucketOwnerId_;

View File

@@ -1,54 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SubscribeBillToOSSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SubscribeBillToOSSResult::SubscribeBillToOSSResult() :
ServiceResult()
{}
SubscribeBillToOSSResult::SubscribeBillToOSSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubscribeBillToOSSResult::~SubscribeBillToOSSResult()
{}
void SubscribeBillToOSSResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SubscribeBillToOSSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SubscribeBillToOSSResult::SubscribeBillToOSSResult() :
ServiceResult()
{}
SubscribeBillToOSSResult::SubscribeBillToOSSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubscribeBillToOSSResult::~SubscribeBillToOSSResult()
{}
void SubscribeBillToOSSResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string SubscribeBillToOSSResult::getMessage()const
{
return message_;

View File

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

View File

@@ -1,54 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult() :
ServiceResult()
{}
UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnsubscribeBillToOSSResult::~UnsubscribeBillToOSSResult()
{}
void UnsubscribeBillToOSSResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult() :
ServiceResult()
{}
UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnsubscribeBillToOSSResult::~UnsubscribeBillToOSSResult()
{}
void UnsubscribeBillToOSSResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::string UnsubscribeBillToOSSResult::getMessage()const
{
return message_;