Compare commits
60 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8b197b741 | ||
|
|
2344a2c7cc | ||
|
|
217a9b18ed | ||
|
|
78f4dae59d | ||
|
|
55bf08e936 | ||
|
|
996847f7aa | ||
|
|
d24791dc62 | ||
|
|
1fa00fa025 | ||
|
|
d0b781c4c5 | ||
|
|
e922990dbc | ||
|
|
07d1480059 | ||
|
|
a0e90cc606 | ||
|
|
d93b632d3b | ||
|
|
6cbb9bf950 | ||
|
|
752399d8fa | ||
|
|
15f0e363ca | ||
|
|
1637cf567e | ||
|
|
28732a4b06 | ||
|
|
c94a2b34a1 | ||
|
|
436e293e96 | ||
|
|
518c2f8c75 | ||
|
|
d486290c14 | ||
|
|
2b84cadd9d | ||
|
|
879e8b9359 | ||
|
|
005ea30e5d | ||
|
|
fa259f93ff | ||
|
|
0f77f88873 | ||
|
|
cf3bbdf2ba | ||
|
|
708bcbb678 | ||
|
|
70dddee991 | ||
|
|
096bedd0df | ||
|
|
b6d2db14fe | ||
|
|
8fc9b8125b | ||
|
|
a16636b8bd | ||
|
|
2c0d297a8d | ||
|
|
f0d0ef6cd0 | ||
|
|
11136905db | ||
|
|
5c4cdd976d | ||
|
|
760426f29b | ||
|
|
99697bde91 | ||
|
|
1b19d44bc2 | ||
|
|
84ae3ef04e | ||
|
|
bb8790e63c | ||
|
|
d75a986e9f | ||
|
|
ef568baa30 | ||
|
|
2eae2fe5c9 | ||
|
|
a4995661a5 | ||
|
|
7eb4574903 | ||
|
|
5021fa7e0a | ||
|
|
71e4c1576e | ||
|
|
5550c66a4c | ||
|
|
9c47520d45 | ||
|
|
9b6827d238 | ||
|
|
2d60eb1a66 | ||
|
|
a3c08aa6f7 | ||
|
|
df9aacc5a5 | ||
|
|
d209714cb0 | ||
|
|
3cee194b0f | ||
|
|
c52c445fa1 | ||
|
|
4f8cf9d05f |
16
.github/workflows/test.yaml
vendored
16
.github/workflows/test.yaml
vendored
@@ -8,22 +8,14 @@ on:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macosx-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
name: CPP
|
||||
env:
|
||||
CPLUS_INCLUDE_PATH: "/usr/local/include/:/usr/include/jsoncpp/:/usr/local/opt/openssl/include/:/usr/lib/"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
|
||||
- if: ${{ matrix.os == 'macosx-latest' }}
|
||||
run: brew install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
|
||||
|
||||
- run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
|
||||
- run: bash ./unit_test.sh
|
||||
- run: bash ./generate_code_cov.sh
|
||||
- run: bash ./generate_code_cov.sh
|
||||
- run: bash ./function_test.sh
|
||||
- run: bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
@@ -46,7 +46,7 @@ Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
yum install jsoncpp-devel openssl-devel libuuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
|
||||
@@ -47,7 +47,7 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
yum install jsoncpp-devel openssl-devel libuuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
|
||||
@@ -135,8 +135,6 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeProcessListResult.h
|
||||
include/alibabacloud/adb/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPatternAttributeRequest.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPatternAttributeResult.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPatternsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPatternsResult.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPlanRequest.h
|
||||
@@ -163,14 +161,14 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoResult.h
|
||||
include/alibabacloud/adb/model/DescribeVSwitchesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeVSwitchesResult.h
|
||||
include/alibabacloud/adb/model/DetachUserENIRequest.h
|
||||
include/alibabacloud/adb/model/DetachUserENIResult.h
|
||||
include/alibabacloud/adb/model/DisableAdviceServiceRequest.h
|
||||
include/alibabacloud/adb/model/DisableAdviceServiceResult.h
|
||||
include/alibabacloud/adb/model/DownloadDiagnosisRecordsRequest.h
|
||||
include/alibabacloud/adb/model/DownloadDiagnosisRecordsResult.h
|
||||
include/alibabacloud/adb/model/DryRunClusterRequest.h
|
||||
include/alibabacloud/adb/model/DryRunClusterResult.h
|
||||
include/alibabacloud/adb/model/EnableAdviceServiceRequest.h
|
||||
include/alibabacloud/adb/model/EnableAdviceServiceResult.h
|
||||
include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h
|
||||
@@ -344,8 +342,6 @@ set(adb_src
|
||||
src/model/DescribeProcessListResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeSQLPatternAttributeRequest.cc
|
||||
src/model/DescribeSQLPatternAttributeResult.cc
|
||||
src/model/DescribeSQLPatternsRequest.cc
|
||||
src/model/DescribeSQLPatternsResult.cc
|
||||
src/model/DescribeSQLPlanRequest.cc
|
||||
@@ -372,14 +368,14 @@ set(adb_src
|
||||
src/model/DescribeTablesResult.cc
|
||||
src/model/DescribeTaskInfoRequest.cc
|
||||
src/model/DescribeTaskInfoResult.cc
|
||||
src/model/DescribeVSwitchesRequest.cc
|
||||
src/model/DescribeVSwitchesResult.cc
|
||||
src/model/DetachUserENIRequest.cc
|
||||
src/model/DetachUserENIResult.cc
|
||||
src/model/DisableAdviceServiceRequest.cc
|
||||
src/model/DisableAdviceServiceResult.cc
|
||||
src/model/DownloadDiagnosisRecordsRequest.cc
|
||||
src/model/DownloadDiagnosisRecordsResult.cc
|
||||
src/model/DryRunClusterRequest.cc
|
||||
src/model/DryRunClusterResult.cc
|
||||
src/model/EnableAdviceServiceRequest.cc
|
||||
src/model/EnableAdviceServiceResult.cc
|
||||
src/model/GrantOperatorPermissionRequest.cc
|
||||
|
||||
@@ -136,8 +136,6 @@
|
||||
#include "model/DescribeProcessListResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeSQLPatternAttributeRequest.h"
|
||||
#include "model/DescribeSQLPatternAttributeResult.h"
|
||||
#include "model/DescribeSQLPatternsRequest.h"
|
||||
#include "model/DescribeSQLPatternsResult.h"
|
||||
#include "model/DescribeSQLPlanRequest.h"
|
||||
@@ -164,14 +162,14 @@
|
||||
#include "model/DescribeTablesResult.h"
|
||||
#include "model/DescribeTaskInfoRequest.h"
|
||||
#include "model/DescribeTaskInfoResult.h"
|
||||
#include "model/DescribeVSwitchesRequest.h"
|
||||
#include "model/DescribeVSwitchesResult.h"
|
||||
#include "model/DetachUserENIRequest.h"
|
||||
#include "model/DetachUserENIResult.h"
|
||||
#include "model/DisableAdviceServiceRequest.h"
|
||||
#include "model/DisableAdviceServiceResult.h"
|
||||
#include "model/DownloadDiagnosisRecordsRequest.h"
|
||||
#include "model/DownloadDiagnosisRecordsResult.h"
|
||||
#include "model/DryRunClusterRequest.h"
|
||||
#include "model/DryRunClusterResult.h"
|
||||
#include "model/EnableAdviceServiceRequest.h"
|
||||
#include "model/EnableAdviceServiceResult.h"
|
||||
#include "model/GrantOperatorPermissionRequest.h"
|
||||
@@ -408,9 +406,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLPatternAttributeResult> DescribeSQLPatternAttributeOutcome;
|
||||
typedef std::future<DescribeSQLPatternAttributeOutcome> DescribeSQLPatternAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeSQLPatternAttributeRequest&, const DescribeSQLPatternAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLPatternAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLPatternsResult> DescribeSQLPatternsOutcome;
|
||||
typedef std::future<DescribeSQLPatternsOutcome> DescribeSQLPatternsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeSQLPatternsRequest&, const DescribeSQLPatternsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLPatternsAsyncHandler;
|
||||
@@ -450,6 +445,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTaskInfoResult> DescribeTaskInfoOutcome;
|
||||
typedef std::future<DescribeTaskInfoOutcome> DescribeTaskInfoOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTaskInfoRequest&, const DescribeTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTaskInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVSwitchesResult> DescribeVSwitchesOutcome;
|
||||
typedef std::future<DescribeVSwitchesOutcome> DescribeVSwitchesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeVSwitchesRequest&, const DescribeVSwitchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVSwitchesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachUserENIResult> DetachUserENIOutcome;
|
||||
typedef std::future<DetachUserENIOutcome> DetachUserENIOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DetachUserENIRequest&, const DetachUserENIOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachUserENIAsyncHandler;
|
||||
@@ -459,9 +457,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DownloadDiagnosisRecordsResult> DownloadDiagnosisRecordsOutcome;
|
||||
typedef std::future<DownloadDiagnosisRecordsOutcome> DownloadDiagnosisRecordsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DownloadDiagnosisRecordsRequest&, const DownloadDiagnosisRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadDiagnosisRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DryRunClusterResult> DryRunClusterOutcome;
|
||||
typedef std::future<DryRunClusterOutcome> DryRunClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DryRunClusterRequest&, const DryRunClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DryRunClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableAdviceServiceResult> EnableAdviceServiceOutcome;
|
||||
typedef std::future<EnableAdviceServiceOutcome> EnableAdviceServiceOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::EnableAdviceServiceRequest&, const EnableAdviceServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableAdviceServiceAsyncHandler;
|
||||
@@ -722,9 +717,6 @@ namespace AlibabaCloud
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
DescribeSQLPatternAttributeOutcome describeSQLPatternAttribute(const Model::DescribeSQLPatternAttributeRequest &request)const;
|
||||
void describeSQLPatternAttributeAsync(const Model::DescribeSQLPatternAttributeRequest& request, const DescribeSQLPatternAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLPatternAttributeOutcomeCallable describeSQLPatternAttributeCallable(const Model::DescribeSQLPatternAttributeRequest& request) const;
|
||||
DescribeSQLPatternsOutcome describeSQLPatterns(const Model::DescribeSQLPatternsRequest &request)const;
|
||||
void describeSQLPatternsAsync(const Model::DescribeSQLPatternsRequest& request, const DescribeSQLPatternsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLPatternsOutcomeCallable describeSQLPatternsCallable(const Model::DescribeSQLPatternsRequest& request) const;
|
||||
@@ -764,6 +756,9 @@ namespace AlibabaCloud
|
||||
DescribeTaskInfoOutcome describeTaskInfo(const Model::DescribeTaskInfoRequest &request)const;
|
||||
void describeTaskInfoAsync(const Model::DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTaskInfoOutcomeCallable describeTaskInfoCallable(const Model::DescribeTaskInfoRequest& request) const;
|
||||
DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const;
|
||||
void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const;
|
||||
DetachUserENIOutcome detachUserENI(const Model::DetachUserENIRequest &request)const;
|
||||
void detachUserENIAsync(const Model::DetachUserENIRequest& request, const DetachUserENIAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachUserENIOutcomeCallable detachUserENICallable(const Model::DetachUserENIRequest& request) const;
|
||||
@@ -773,9 +768,6 @@ namespace AlibabaCloud
|
||||
DownloadDiagnosisRecordsOutcome downloadDiagnosisRecords(const Model::DownloadDiagnosisRecordsRequest &request)const;
|
||||
void downloadDiagnosisRecordsAsync(const Model::DownloadDiagnosisRecordsRequest& request, const DownloadDiagnosisRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadDiagnosisRecordsOutcomeCallable downloadDiagnosisRecordsCallable(const Model::DownloadDiagnosisRecordsRequest& request) const;
|
||||
DryRunClusterOutcome dryRunCluster(const Model::DryRunClusterRequest &request)const;
|
||||
void dryRunClusterAsync(const Model::DryRunClusterRequest& request, const DryRunClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DryRunClusterOutcomeCallable dryRunClusterCallable(const Model::DryRunClusterRequest& request) const;
|
||||
EnableAdviceServiceOutcome enableAdviceService(const Model::EnableAdviceServiceRequest &request)const;
|
||||
void enableAdviceServiceAsync(const Model::EnableAdviceServiceRequest& request, const EnableAdviceServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableAdviceServiceOutcomeCallable enableAdviceServiceCallable(const Model::EnableAdviceServiceRequest& request) const;
|
||||
|
||||
@@ -32,12 +32,6 @@ public:
|
||||
~DescribeDBClusterPerformanceRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getKey() const;
|
||||
void setKey(const std::string &key);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getDBClusterId() const;
|
||||
@@ -46,19 +40,31 @@ public:
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getResourcePools() const;
|
||||
void setResourcePools(const std::string &resourcePools);
|
||||
std::string getKey() const;
|
||||
void setKey(const std::string &key);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string startTime_;
|
||||
std::string accessKeyId_;
|
||||
std::string key_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string resourcePools_;
|
||||
std::string key_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
struct SeriesItem
|
||||
{
|
||||
std::vector<std::string> values;
|
||||
std::string tags;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<PerformanceItem::SeriesItem> series;
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeVSwitchesRequest();
|
||||
~DescribeVSwitchesRequest();
|
||||
std::string getVswId() const;
|
||||
void setVswId(const std::string &vswId);
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getSecurityToken() const;
|
||||
void setSecurityToken(const std::string &securityToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getVpcId() const;
|
||||
void setVpcId(const std::string &vpcId);
|
||||
std::string getZoneId() const;
|
||||
void setZoneId(const std::string &zoneId);
|
||||
|
||||
private:
|
||||
std::string vswId_;
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string vpcId_;
|
||||
std::string zoneId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
|
||||
69
adb/include/alibabacloud/adb/model/DescribeVSwitchesResult.h
Normal file
69
adb/include/alibabacloud/adb/model/DescribeVSwitchesResult.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeVSwitchesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct VSwitches
|
||||
{
|
||||
struct VSwitchItem
|
||||
{
|
||||
std::string status;
|
||||
bool isDefault;
|
||||
std::string regionNo;
|
||||
std::string izNo;
|
||||
std::string gmtCreate;
|
||||
std::string vSwitchId;
|
||||
std::string gmtModified;
|
||||
std::string cidrBlock;
|
||||
std::string vSwitchName;
|
||||
std::string bid;
|
||||
std::string aliUid;
|
||||
};
|
||||
std::vector<VSwitchItem> vSwitch;
|
||||
};
|
||||
|
||||
|
||||
DescribeVSwitchesResult();
|
||||
explicit DescribeVSwitchesResult(const std::string &payload);
|
||||
~DescribeVSwitchesResult();
|
||||
VSwitches getVSwitches()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
VSwitches vSwitches_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESRESULT_H_
|
||||
@@ -1,87 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADB_EXPORT DryRunClusterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DryRunClusterRequest();
|
||||
~DryRunClusterRequest();
|
||||
std::string getDBClusterDescription() const;
|
||||
void setDBClusterDescription(const std::string &dBClusterDescription);
|
||||
bool getEnableDefaultResourcePool() const;
|
||||
void setEnableDefaultResourcePool(bool enableDefaultResourcePool);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getStorageResource() const;
|
||||
void setStorageResource(const std::string &storageResource);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getDBClusterNetworkType() const;
|
||||
void setDBClusterNetworkType(const std::string &dBClusterNetworkType);
|
||||
std::string getPeriod() const;
|
||||
void setPeriod(const std::string &period);
|
||||
std::string getDBClusterId() const;
|
||||
void setDBClusterId(const std::string &dBClusterId);
|
||||
std::string getDBClusterVersion() const;
|
||||
void setDBClusterVersion(const std::string &dBClusterVersion);
|
||||
std::string getUsedTime() const;
|
||||
void setUsedTime(const std::string &usedTime);
|
||||
std::string getVSwitchId() const;
|
||||
void setVSwitchId(const std::string &vSwitchId);
|
||||
std::string getVPCId() const;
|
||||
void setVPCId(const std::string &vPCId);
|
||||
std::string getZoneId() const;
|
||||
void setZoneId(const std::string &zoneId);
|
||||
std::string getComputeResource() const;
|
||||
void setComputeResource(const std::string &computeResource);
|
||||
std::string getPayType() const;
|
||||
void setPayType(const std::string &payType);
|
||||
std::string getOperation() const;
|
||||
void setOperation(const std::string &operation);
|
||||
|
||||
private:
|
||||
std::string dBClusterDescription_;
|
||||
bool enableDefaultResourcePool_;
|
||||
std::string accessKeyId_;
|
||||
std::string storageResource_;
|
||||
std::string regionId_;
|
||||
std::string dBClusterNetworkType_;
|
||||
std::string period_;
|
||||
std::string dBClusterId_;
|
||||
std::string dBClusterVersion_;
|
||||
std::string usedTime_;
|
||||
std::string vSwitchId_;
|
||||
std::string vPCId_;
|
||||
std::string zoneId_;
|
||||
std::string computeResource_;
|
||||
std::string payType_;
|
||||
std::string operation_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERREQUEST_H_
|
||||
@@ -2103,42 +2103,6 @@ AdbClient::DescribeRegionsOutcomeCallable AdbClient::describeRegionsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPatternAttributeOutcome AdbClient::describeSQLPatternAttribute(const DescribeSQLPatternAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLPatternAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLPatternAttributeOutcome(DescribeSQLPatternAttributeResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLPatternAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeSQLPatternAttributeAsync(const DescribeSQLPatternAttributeRequest& request, const DescribeSQLPatternAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLPatternAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPatternAttributeOutcomeCallable AdbClient::describeSQLPatternAttributeCallable(const DescribeSQLPatternAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLPatternAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLPatternAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPatternsOutcome AdbClient::describeSQLPatterns(const DescribeSQLPatternsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2607,6 +2571,42 @@ AdbClient::DescribeTaskInfoOutcomeCallable AdbClient::describeTaskInfoCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeVSwitchesOutcome AdbClient::describeVSwitches(const DescribeVSwitchesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVSwitchesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVSwitchesOutcome(DescribeVSwitchesResult(outcome.result()));
|
||||
else
|
||||
return DescribeVSwitchesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeVSwitchesAsync(const DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVSwitches(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeVSwitchesOutcomeCallable AdbClient::describeVSwitchesCallable(const DescribeVSwitchesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVSwitchesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVSwitches(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DetachUserENIOutcome AdbClient::detachUserENI(const DetachUserENIRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2715,42 +2715,6 @@ AdbClient::DownloadDiagnosisRecordsOutcomeCallable AdbClient::downloadDiagnosisR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DryRunClusterOutcome AdbClient::dryRunCluster(const DryRunClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DryRunClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DryRunClusterOutcome(DryRunClusterResult(outcome.result()));
|
||||
else
|
||||
return DryRunClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::dryRunClusterAsync(const DryRunClusterRequest& request, const DryRunClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, dryRunCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DryRunClusterOutcomeCallable AdbClient::dryRunClusterCallable(const DryRunClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DryRunClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->dryRunCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::EnableAdviceServiceOutcome AdbClient::enableAdviceService(const EnableAdviceServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -34,33 +34,6 @@ void DescribeDBClusterPerformanceRequest::setResourceOwnerId(long resourceOwnerI
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
@@ -97,6 +70,15 @@ void DescribeDBClusterPerformanceRequest::setEndTime(const std::string &endTime)
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
long DescribeDBClusterPerformanceRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -106,3 +88,39 @@ void DescribeDBClusterPerformanceRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getResourcePools() const {
|
||||
return resourcePools_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setResourcePools(const std::string &resourcePools) {
|
||||
resourcePools_ = resourcePools;
|
||||
setParameter(std::string("ResourcePools"), resourcePools);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,8 @@ void DescribeDBClusterPerformanceResult::parse(const std::string &payload)
|
||||
PerformanceItem::SeriesItem seriesObject;
|
||||
if(!valuePerformancesPerformanceItemSeriesSeriesItem["Name"].isNull())
|
||||
seriesObject.name = valuePerformancesPerformanceItemSeriesSeriesItem["Name"].asString();
|
||||
if(!valuePerformancesPerformanceItemSeriesSeriesItem["Tags"].isNull())
|
||||
seriesObject.tags = valuePerformancesPerformanceItemSeriesSeriesItem["Tags"].asString();
|
||||
auto allValues = value["Values"]["Values"];
|
||||
for (auto value : allValues)
|
||||
seriesObject.values.push_back(value.asString());
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeSQLPatternAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeSQLPatternAttributeRequest;
|
||||
|
||||
DescribeSQLPatternAttributeRequest::DescribeSQLPatternAttributeRequest()
|
||||
: RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPatternAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLPatternAttributeRequest::~DescribeSQLPatternAttributeRequest() {}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
long DescribeSQLPatternAttributeRequest::getPatternId() const {
|
||||
return patternId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setPatternId(long patternId) {
|
||||
patternId_ = patternId;
|
||||
setParameter(std::string("PatternId"), std::to_string(patternId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeSQLPatternAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeSQLPatternAttributeResult::DescribeSQLPatternAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLPatternAttributeResult::DescribeSQLPatternAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLPatternAttributeResult::~DescribeSQLPatternAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLPatternAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto patternDetailNode = value["PatternDetail"];
|
||||
if(!patternDetailNode["SQLPattern"].isNull())
|
||||
patternDetail_.sQLPattern = patternDetailNode["SQLPattern"].asString();
|
||||
if(!patternDetailNode["QueryCount"].isNull())
|
||||
patternDetail_.queryCount = std::stol(patternDetailNode["QueryCount"].asString());
|
||||
if(!patternDetailNode["TotalQueryTime"].isNull())
|
||||
patternDetail_.totalQueryTime = patternDetailNode["TotalQueryTime"].asString();
|
||||
if(!patternDetailNode["AverageQueryTime"].isNull())
|
||||
patternDetail_.averageQueryTime = patternDetailNode["AverageQueryTime"].asString();
|
||||
if(!patternDetailNode["AverageMemory"].isNull())
|
||||
patternDetail_.averageMemory = patternDetailNode["AverageMemory"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeSQLPatternAttributeResult::PatternDetail DescribeSQLPatternAttributeResult::getPatternDetail()const
|
||||
{
|
||||
return patternDetail_;
|
||||
}
|
||||
|
||||
117
adb/src/model/DescribeVSwitchesRequest.cc
Normal file
117
adb/src/model/DescribeVSwitchesRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeVSwitchesRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeVSwitchesRequest;
|
||||
|
||||
DescribeVSwitchesRequest::DescribeVSwitchesRequest()
|
||||
: RpcServiceRequest("adb", "2019-03-15", "DescribeVSwitches") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVSwitchesRequest::~DescribeVSwitchesRequest() {}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getVswId() const {
|
||||
return vswId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setVswId(const std::string &vswId) {
|
||||
vswId_ = vswId;
|
||||
setParameter(std::string("VswId"), vswId);
|
||||
}
|
||||
|
||||
long DescribeVSwitchesRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeVSwitchesRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
78
adb/src/model/DescribeVSwitchesResult.cc
Normal file
78
adb/src/model/DescribeVSwitchesResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeVSwitchesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeVSwitchesResult::DescribeVSwitchesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVSwitchesResult::DescribeVSwitchesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVSwitchesResult::~DescribeVSwitchesResult()
|
||||
{}
|
||||
|
||||
void DescribeVSwitchesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto vSwitchesNode = value["VSwitches"];
|
||||
auto allVSwitchNode = vSwitchesNode["VSwitch"]["VSwitchItem"];
|
||||
for (auto vSwitchesNodeVSwitchVSwitchItem : allVSwitchNode)
|
||||
{
|
||||
VSwitches::VSwitchItem vSwitchItemObject;
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["Status"].isNull())
|
||||
vSwitchItemObject.status = vSwitchesNodeVSwitchVSwitchItem["Status"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["IsDefault"].isNull())
|
||||
vSwitchItemObject.isDefault = vSwitchesNodeVSwitchVSwitchItem["IsDefault"].asString() == "true";
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["VSwitchId"].isNull())
|
||||
vSwitchItemObject.vSwitchId = vSwitchesNodeVSwitchVSwitchItem["VSwitchId"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["CidrBlock"].isNull())
|
||||
vSwitchItemObject.cidrBlock = vSwitchesNodeVSwitchVSwitchItem["CidrBlock"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["RegionNo"].isNull())
|
||||
vSwitchItemObject.regionNo = vSwitchesNodeVSwitchVSwitchItem["RegionNo"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["GmtCreate"].isNull())
|
||||
vSwitchItemObject.gmtCreate = vSwitchesNodeVSwitchVSwitchItem["GmtCreate"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["AliUid"].isNull())
|
||||
vSwitchItemObject.aliUid = vSwitchesNodeVSwitchVSwitchItem["AliUid"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["GmtModified"].isNull())
|
||||
vSwitchItemObject.gmtModified = vSwitchesNodeVSwitchVSwitchItem["GmtModified"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["Bid"].isNull())
|
||||
vSwitchItemObject.bid = vSwitchesNodeVSwitchVSwitchItem["Bid"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["IzNo"].isNull())
|
||||
vSwitchItemObject.izNo = vSwitchesNodeVSwitchVSwitchItem["IzNo"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["VSwitchName"].isNull())
|
||||
vSwitchItemObject.vSwitchName = vSwitchesNodeVSwitchVSwitchItem["VSwitchName"].asString();
|
||||
vSwitches_.vSwitch.push_back(vSwitchItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeVSwitchesResult::VSwitches DescribeVSwitchesResult::getVSwitches()const
|
||||
{
|
||||
return vSwitches_;
|
||||
}
|
||||
|
||||
@@ -1,171 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DryRunClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DryRunClusterRequest;
|
||||
|
||||
DryRunClusterRequest::DryRunClusterRequest()
|
||||
: RpcServiceRequest("adb", "2019-03-15", "DryRunCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DryRunClusterRequest::~DryRunClusterRequest() {}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterDescription() const {
|
||||
return dBClusterDescription_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterDescription(const std::string &dBClusterDescription) {
|
||||
dBClusterDescription_ = dBClusterDescription;
|
||||
setParameter(std::string("DBClusterDescription"), dBClusterDescription);
|
||||
}
|
||||
|
||||
bool DryRunClusterRequest::getEnableDefaultResourcePool() const {
|
||||
return enableDefaultResourcePool_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setEnableDefaultResourcePool(bool enableDefaultResourcePool) {
|
||||
enableDefaultResourcePool_ = enableDefaultResourcePool;
|
||||
setParameter(std::string("EnableDefaultResourcePool"), enableDefaultResourcePool ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getStorageResource() const {
|
||||
return storageResource_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setStorageResource(const std::string &storageResource) {
|
||||
storageResource_ = storageResource;
|
||||
setParameter(std::string("StorageResource"), storageResource);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterNetworkType() const {
|
||||
return dBClusterNetworkType_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterNetworkType(const std::string &dBClusterNetworkType) {
|
||||
dBClusterNetworkType_ = dBClusterNetworkType;
|
||||
setParameter(std::string("DBClusterNetworkType"), dBClusterNetworkType);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setPeriod(const std::string &period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), period);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterVersion() const {
|
||||
return dBClusterVersion_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterVersion(const std::string &dBClusterVersion) {
|
||||
dBClusterVersion_ = dBClusterVersion;
|
||||
setParameter(std::string("DBClusterVersion"), dBClusterVersion);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getUsedTime() const {
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setUsedTime(const std::string &usedTime) {
|
||||
usedTime_ = usedTime;
|
||||
setParameter(std::string("UsedTime"), usedTime);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getVPCId() const {
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setVPCId(const std::string &vPCId) {
|
||||
vPCId_ = vPCId;
|
||||
setParameter(std::string("VPCId"), vPCId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getComputeResource() const {
|
||||
return computeResource_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setComputeResource(const std::string &computeResource) {
|
||||
computeResource_ = computeResource;
|
||||
setParameter(std::string("ComputeResource"), computeResource);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setPayType(const std::string &payType) {
|
||||
payType_ = payType;
|
||||
setParameter(std::string("PayType"), payType);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getOperation() const {
|
||||
return operation_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setOperation(const std::string &operation) {
|
||||
operation_ = operation;
|
||||
setParameter(std::string("Operation"), operation);
|
||||
}
|
||||
|
||||
@@ -21,14 +21,20 @@ set(amqp-open_public_header
|
||||
include/alibabacloud/amqp-open/Amqp_openExport.h )
|
||||
|
||||
set(amqp-open_public_header_model
|
||||
include/alibabacloud/amqp-open/model/CreateAccountRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateAccountResult.h
|
||||
include/alibabacloud/amqp-open/model/CreateBindingRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateBindingResult.h
|
||||
include/alibabacloud/amqp-open/model/CreateExchangeRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateExchangeResult.h
|
||||
include/alibabacloud/amqp-open/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateInstanceResult.h
|
||||
include/alibabacloud/amqp-open/model/CreateQueueRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateQueueResult.h
|
||||
include/alibabacloud/amqp-open/model/CreateVirtualHostRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateVirtualHostResult.h
|
||||
include/alibabacloud/amqp-open/model/DeleteAccountRequest.h
|
||||
include/alibabacloud/amqp-open/model/DeleteAccountResult.h
|
||||
include/alibabacloud/amqp-open/model/DeleteBindingRequest.h
|
||||
include/alibabacloud/amqp-open/model/DeleteBindingResult.h
|
||||
include/alibabacloud/amqp-open/model/DeleteExchangeRequest.h
|
||||
@@ -39,6 +45,8 @@ set(amqp-open_public_header_model
|
||||
include/alibabacloud/amqp-open/model/DeleteVirtualHostResult.h
|
||||
include/alibabacloud/amqp-open/model/GetMetadataAmountRequest.h
|
||||
include/alibabacloud/amqp-open/model/GetMetadataAmountResult.h
|
||||
include/alibabacloud/amqp-open/model/ListAccountsRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListAccountsResult.h
|
||||
include/alibabacloud/amqp-open/model/ListBindingsRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListBindingsResult.h
|
||||
include/alibabacloud/amqp-open/model/ListDownStreamBindingsRequest.h
|
||||
@@ -56,18 +64,26 @@ set(amqp-open_public_header_model
|
||||
include/alibabacloud/amqp-open/model/ListQueuesRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListQueuesResult.h
|
||||
include/alibabacloud/amqp-open/model/ListVirtualHostsRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListVirtualHostsResult.h )
|
||||
include/alibabacloud/amqp-open/model/ListVirtualHostsResult.h
|
||||
include/alibabacloud/amqp-open/model/UpdateInstanceNameRequest.h
|
||||
include/alibabacloud/amqp-open/model/UpdateInstanceNameResult.h )
|
||||
|
||||
set(amqp-open_src
|
||||
src/Amqp-openClient.cc
|
||||
src/model/CreateAccountRequest.cc
|
||||
src/model/CreateAccountResult.cc
|
||||
src/model/CreateBindingRequest.cc
|
||||
src/model/CreateBindingResult.cc
|
||||
src/model/CreateExchangeRequest.cc
|
||||
src/model/CreateExchangeResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/CreateQueueRequest.cc
|
||||
src/model/CreateQueueResult.cc
|
||||
src/model/CreateVirtualHostRequest.cc
|
||||
src/model/CreateVirtualHostResult.cc
|
||||
src/model/DeleteAccountRequest.cc
|
||||
src/model/DeleteAccountResult.cc
|
||||
src/model/DeleteBindingRequest.cc
|
||||
src/model/DeleteBindingResult.cc
|
||||
src/model/DeleteExchangeRequest.cc
|
||||
@@ -78,6 +94,8 @@ set(amqp-open_src
|
||||
src/model/DeleteVirtualHostResult.cc
|
||||
src/model/GetMetadataAmountRequest.cc
|
||||
src/model/GetMetadataAmountResult.cc
|
||||
src/model/ListAccountsRequest.cc
|
||||
src/model/ListAccountsResult.cc
|
||||
src/model/ListBindingsRequest.cc
|
||||
src/model/ListBindingsResult.cc
|
||||
src/model/ListDownStreamBindingsRequest.cc
|
||||
@@ -95,7 +113,9 @@ set(amqp-open_src
|
||||
src/model/ListQueuesRequest.cc
|
||||
src/model/ListQueuesResult.cc
|
||||
src/model/ListVirtualHostsRequest.cc
|
||||
src/model/ListVirtualHostsResult.cc )
|
||||
src/model/ListVirtualHostsResult.cc
|
||||
src/model/UpdateInstanceNameRequest.cc
|
||||
src/model/UpdateInstanceNameResult.cc )
|
||||
|
||||
add_library(amqp-open ${LIB_TYPE}
|
||||
${amqp-open_public_header}
|
||||
|
||||
@@ -22,14 +22,20 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Amqp_openExport.h"
|
||||
#include "model/CreateAccountRequest.h"
|
||||
#include "model/CreateAccountResult.h"
|
||||
#include "model/CreateBindingRequest.h"
|
||||
#include "model/CreateBindingResult.h"
|
||||
#include "model/CreateExchangeRequest.h"
|
||||
#include "model/CreateExchangeResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/CreateQueueRequest.h"
|
||||
#include "model/CreateQueueResult.h"
|
||||
#include "model/CreateVirtualHostRequest.h"
|
||||
#include "model/CreateVirtualHostResult.h"
|
||||
#include "model/DeleteAccountRequest.h"
|
||||
#include "model/DeleteAccountResult.h"
|
||||
#include "model/DeleteBindingRequest.h"
|
||||
#include "model/DeleteBindingResult.h"
|
||||
#include "model/DeleteExchangeRequest.h"
|
||||
@@ -40,6 +46,8 @@
|
||||
#include "model/DeleteVirtualHostResult.h"
|
||||
#include "model/GetMetadataAmountRequest.h"
|
||||
#include "model/GetMetadataAmountResult.h"
|
||||
#include "model/ListAccountsRequest.h"
|
||||
#include "model/ListAccountsResult.h"
|
||||
#include "model/ListBindingsRequest.h"
|
||||
#include "model/ListBindingsResult.h"
|
||||
#include "model/ListDownStreamBindingsRequest.h"
|
||||
@@ -58,6 +66,8 @@
|
||||
#include "model/ListQueuesResult.h"
|
||||
#include "model/ListVirtualHostsRequest.h"
|
||||
#include "model/ListVirtualHostsResult.h"
|
||||
#include "model/UpdateInstanceNameRequest.h"
|
||||
#include "model/UpdateInstanceNameResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -67,18 +77,27 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT Amqp_openClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateAccountResult> CreateAccountOutcome;
|
||||
typedef std::future<CreateAccountOutcome> CreateAccountOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateAccountRequest&, const CreateAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBindingResult> CreateBindingOutcome;
|
||||
typedef std::future<CreateBindingOutcome> CreateBindingOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateBindingRequest&, const CreateBindingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBindingAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateExchangeResult> CreateExchangeOutcome;
|
||||
typedef std::future<CreateExchangeOutcome> CreateExchangeOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateExchangeRequest&, const CreateExchangeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateExchangeAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateQueueResult> CreateQueueOutcome;
|
||||
typedef std::future<CreateQueueOutcome> CreateQueueOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateQueueRequest&, const CreateQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateQueueAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVirtualHostResult> CreateVirtualHostOutcome;
|
||||
typedef std::future<CreateVirtualHostOutcome> CreateVirtualHostOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateVirtualHostRequest&, const CreateVirtualHostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVirtualHostAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteAccountResult> DeleteAccountOutcome;
|
||||
typedef std::future<DeleteAccountOutcome> DeleteAccountOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::DeleteAccountRequest&, const DeleteAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteBindingResult> DeleteBindingOutcome;
|
||||
typedef std::future<DeleteBindingOutcome> DeleteBindingOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::DeleteBindingRequest&, const DeleteBindingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBindingAsyncHandler;
|
||||
@@ -94,6 +113,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetMetadataAmountResult> GetMetadataAmountOutcome;
|
||||
typedef std::future<GetMetadataAmountOutcome> GetMetadataAmountOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::GetMetadataAmountRequest&, const GetMetadataAmountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMetadataAmountAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListAccountsResult> ListAccountsOutcome;
|
||||
typedef std::future<ListAccountsOutcome> ListAccountsOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListAccountsRequest&, const ListAccountsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAccountsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListBindingsResult> ListBindingsOutcome;
|
||||
typedef std::future<ListBindingsOutcome> ListBindingsOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListBindingsRequest&, const ListBindingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBindingsAsyncHandler;
|
||||
@@ -121,23 +143,35 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListVirtualHostsResult> ListVirtualHostsOutcome;
|
||||
typedef std::future<ListVirtualHostsOutcome> ListVirtualHostsOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListVirtualHostsRequest&, const ListVirtualHostsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVirtualHostsAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateInstanceNameResult> UpdateInstanceNameOutcome;
|
||||
typedef std::future<UpdateInstanceNameOutcome> UpdateInstanceNameOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::UpdateInstanceNameRequest&, const UpdateInstanceNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceNameAsyncHandler;
|
||||
|
||||
Amqp_openClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Amqp_openClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Amqp_openClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Amqp_openClient();
|
||||
CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const;
|
||||
void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const;
|
||||
CreateBindingOutcome createBinding(const Model::CreateBindingRequest &request)const;
|
||||
void createBindingAsync(const Model::CreateBindingRequest& request, const CreateBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBindingOutcomeCallable createBindingCallable(const Model::CreateBindingRequest& request) const;
|
||||
CreateExchangeOutcome createExchange(const Model::CreateExchangeRequest &request)const;
|
||||
void createExchangeAsync(const Model::CreateExchangeRequest& request, const CreateExchangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateExchangeOutcomeCallable createExchangeCallable(const Model::CreateExchangeRequest& request) const;
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
CreateQueueOutcome createQueue(const Model::CreateQueueRequest &request)const;
|
||||
void createQueueAsync(const Model::CreateQueueRequest& request, const CreateQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateQueueOutcomeCallable createQueueCallable(const Model::CreateQueueRequest& request) const;
|
||||
CreateVirtualHostOutcome createVirtualHost(const Model::CreateVirtualHostRequest &request)const;
|
||||
void createVirtualHostAsync(const Model::CreateVirtualHostRequest& request, const CreateVirtualHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVirtualHostOutcomeCallable createVirtualHostCallable(const Model::CreateVirtualHostRequest& request) const;
|
||||
DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const;
|
||||
void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAccountOutcomeCallable deleteAccountCallable(const Model::DeleteAccountRequest& request) const;
|
||||
DeleteBindingOutcome deleteBinding(const Model::DeleteBindingRequest &request)const;
|
||||
void deleteBindingAsync(const Model::DeleteBindingRequest& request, const DeleteBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteBindingOutcomeCallable deleteBindingCallable(const Model::DeleteBindingRequest& request) const;
|
||||
@@ -153,6 +187,9 @@ namespace AlibabaCloud
|
||||
GetMetadataAmountOutcome getMetadataAmount(const Model::GetMetadataAmountRequest &request)const;
|
||||
void getMetadataAmountAsync(const Model::GetMetadataAmountRequest& request, const GetMetadataAmountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMetadataAmountOutcomeCallable getMetadataAmountCallable(const Model::GetMetadataAmountRequest& request) const;
|
||||
ListAccountsOutcome listAccounts(const Model::ListAccountsRequest &request)const;
|
||||
void listAccountsAsync(const Model::ListAccountsRequest& request, const ListAccountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAccountsOutcomeCallable listAccountsCallable(const Model::ListAccountsRequest& request) const;
|
||||
ListBindingsOutcome listBindings(const Model::ListBindingsRequest &request)const;
|
||||
void listBindingsAsync(const Model::ListBindingsRequest& request, const ListBindingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListBindingsOutcomeCallable listBindingsCallable(const Model::ListBindingsRequest& request) const;
|
||||
@@ -180,6 +217,9 @@ namespace AlibabaCloud
|
||||
ListVirtualHostsOutcome listVirtualHosts(const Model::ListVirtualHostsRequest &request)const;
|
||||
void listVirtualHostsAsync(const Model::ListVirtualHostsRequest& request, const ListVirtualHostsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListVirtualHostsOutcomeCallable listVirtualHostsCallable(const Model::ListVirtualHostsRequest& request) const;
|
||||
UpdateInstanceNameOutcome updateInstanceName(const Model::UpdateInstanceNameRequest &request)const;
|
||||
void updateInstanceNameAsync(const Model::UpdateInstanceNameRequest& request, const UpdateInstanceNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateInstanceNameOutcomeCallable updateInstanceNameCallable(const Model::UpdateInstanceNameRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEACCOUNTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateAccountRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateAccountRequest();
|
||||
~CreateAccountRequest();
|
||||
std::string getSignature() const;
|
||||
void setSignature(const std::string &signature);
|
||||
std::string getSecretSign() const;
|
||||
void setSecretSign(const std::string &secretSign);
|
||||
std::string getAccountAccessKey() const;
|
||||
void setAccountAccessKey(const std::string &accountAccessKey);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
long getCreateTimestamp() const;
|
||||
void setCreateTimestamp(long createTimestamp);
|
||||
std::string getUserName() const;
|
||||
void setUserName(const std::string &userName);
|
||||
|
||||
private:
|
||||
std::string signature_;
|
||||
std::string secretSign_;
|
||||
std::string accountAccessKey_;
|
||||
std::string instanceId_;
|
||||
long createTimestamp_;
|
||||
std::string userName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEACCOUNTREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEACCOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateAccountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string userName;
|
||||
long masterUId;
|
||||
std::string instanceId;
|
||||
std::string accessKey;
|
||||
long createTimeStamp;
|
||||
std::string password;
|
||||
};
|
||||
|
||||
|
||||
CreateAccountResult();
|
||||
explicit CreateAccountResult(const std::string &payload);
|
||||
~CreateAccountResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEACCOUNTRESULT_H_
|
||||
@@ -1,66 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateBindingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBindingRequest();
|
||||
~CreateBindingRequest();
|
||||
|
||||
std::string getArgument()const;
|
||||
void setArgument(const std::string& argument);
|
||||
std::string getDestinationName()const;
|
||||
void setDestinationName(const std::string& destinationName);
|
||||
std::string getSourceExchange()const;
|
||||
void setSourceExchange(const std::string& sourceExchange);
|
||||
std::string getBindingKey()const;
|
||||
void setBindingKey(const std::string& bindingKey);
|
||||
std::string getBindingType()const;
|
||||
void setBindingType(const std::string& bindingType);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string argument_;
|
||||
std::string destinationName_;
|
||||
std::string sourceExchange_;
|
||||
std::string bindingKey_;
|
||||
std::string bindingType_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateBindingRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateBindingRequest();
|
||||
~CreateBindingRequest();
|
||||
std::string getArgument() const;
|
||||
void setArgument(const std::string &argument);
|
||||
std::string getDestinationName() const;
|
||||
void setDestinationName(const std::string &destinationName);
|
||||
std::string getSourceExchange() const;
|
||||
void setSourceExchange(const std::string &sourceExchange);
|
||||
std::string getBindingKey() const;
|
||||
void setBindingKey(const std::string &bindingKey);
|
||||
std::string getBindingType() const;
|
||||
void setBindingType(const std::string &bindingType);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string argument_;
|
||||
std::string destinationName_;
|
||||
std::string sourceExchange_;
|
||||
std::string bindingKey_;
|
||||
std::string bindingType_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGREQUEST_H_
|
||||
|
||||
@@ -1,66 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateExchangeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateExchangeRequest();
|
||||
~CreateExchangeRequest();
|
||||
|
||||
bool getInternal()const;
|
||||
void setInternal(bool internal);
|
||||
std::string getExchangeName()const;
|
||||
void setExchangeName(const std::string& exchangeName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getAlternateExchange()const;
|
||||
void setAlternateExchange(const std::string& alternateExchange);
|
||||
bool getAutoDeleteState()const;
|
||||
void setAutoDeleteState(bool autoDeleteState);
|
||||
std::string getExchangeType()const;
|
||||
void setExchangeType(const std::string& exchangeType);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
bool internal_;
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string alternateExchange_;
|
||||
bool autoDeleteState_;
|
||||
std::string exchangeType_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateExchangeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateExchangeRequest();
|
||||
~CreateExchangeRequest();
|
||||
bool getInternal() const;
|
||||
void setInternal(bool internal);
|
||||
std::string getExchangeName() const;
|
||||
void setExchangeName(const std::string &exchangeName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getAlternateExchange() const;
|
||||
void setAlternateExchange(const std::string &alternateExchange);
|
||||
bool getAutoDeleteState() const;
|
||||
void setAutoDeleteState(bool autoDeleteState);
|
||||
std::string getExchangeType() const;
|
||||
void setExchangeType(const std::string &exchangeType);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
bool internal_;
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string alternateExchange_;
|
||||
bool autoDeleteState_;
|
||||
std::string exchangeType_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGEREQUEST_H_
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateInstanceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateInstanceRequest();
|
||||
~CreateInstanceRequest();
|
||||
long getMaxPrivateTps() const;
|
||||
void setMaxPrivateTps(long maxPrivateTps);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getPeriodCycle() const;
|
||||
void setPeriodCycle(const std::string &periodCycle);
|
||||
int getStorageSize() const;
|
||||
void setStorageSize(int storageSize);
|
||||
int getQueueCapacity() const;
|
||||
void setQueueCapacity(int queueCapacity);
|
||||
int getTracingStorageTime() const;
|
||||
void setTracingStorageTime(int tracingStorageTime);
|
||||
int getMaxConnections() const;
|
||||
void setMaxConnections(int maxConnections);
|
||||
bool getSupportTracing() const;
|
||||
void setSupportTracing(bool supportTracing);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
int getAutoRenewPeriod() const;
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getPeriod() const;
|
||||
void setPeriod(int period);
|
||||
bool getAutoRenew() const;
|
||||
void setAutoRenew(bool autoRenew);
|
||||
bool getSupportEip() const;
|
||||
void setSupportEip(bool supportEip);
|
||||
long getMaxEipTps() const;
|
||||
void setMaxEipTps(long maxEipTps);
|
||||
std::string getPaymentType() const;
|
||||
void setPaymentType(const std::string &paymentType);
|
||||
|
||||
private:
|
||||
long maxPrivateTps_;
|
||||
std::string clientToken_;
|
||||
std::string periodCycle_;
|
||||
int storageSize_;
|
||||
int queueCapacity_;
|
||||
int tracingStorageTime_;
|
||||
int maxConnections_;
|
||||
bool supportTracing_;
|
||||
std::string instanceType_;
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
bool autoRenew_;
|
||||
bool supportEip_;
|
||||
long maxEipTps_;
|
||||
std::string paymentType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateInstanceResult();
|
||||
explicit CreateInstanceResult(const std::string &payload);
|
||||
~CreateInstanceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEINSTANCERESULT_H_
|
||||
@@ -1,78 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateQueueRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateQueueRequest();
|
||||
~CreateQueueRequest();
|
||||
|
||||
std::string getQueueName()const;
|
||||
void setQueueName(const std::string& queueName);
|
||||
std::string getDeadLetterRoutingKey()const;
|
||||
void setDeadLetterRoutingKey(const std::string& deadLetterRoutingKey);
|
||||
long getMaxLength()const;
|
||||
void setMaxLength(long maxLength);
|
||||
long getAutoExpireState()const;
|
||||
void setAutoExpireState(long autoExpireState);
|
||||
std::string getDeadLetterExchange()const;
|
||||
void setDeadLetterExchange(const std::string& deadLetterExchange);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
bool getExclusiveState()const;
|
||||
void setExclusiveState(bool exclusiveState);
|
||||
bool getAutoDeleteState()const;
|
||||
void setAutoDeleteState(bool autoDeleteState);
|
||||
long getMessageTTL()const;
|
||||
void setMessageTTL(long messageTTL);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
int getMaximumPriority()const;
|
||||
void setMaximumPriority(int maximumPriority);
|
||||
|
||||
private:
|
||||
std::string queueName_;
|
||||
std::string deadLetterRoutingKey_;
|
||||
long maxLength_;
|
||||
long autoExpireState_;
|
||||
std::string deadLetterExchange_;
|
||||
std::string instanceId_;
|
||||
bool exclusiveState_;
|
||||
bool autoDeleteState_;
|
||||
long messageTTL_;
|
||||
std::string virtualHost_;
|
||||
int maximumPriority_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateQueueRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateQueueRequest();
|
||||
~CreateQueueRequest();
|
||||
std::string getQueueName() const;
|
||||
void setQueueName(const std::string &queueName);
|
||||
std::string getDeadLetterRoutingKey() const;
|
||||
void setDeadLetterRoutingKey(const std::string &deadLetterRoutingKey);
|
||||
long getMaxLength() const;
|
||||
void setMaxLength(long maxLength);
|
||||
long getAutoExpireState() const;
|
||||
void setAutoExpireState(long autoExpireState);
|
||||
std::string getDeadLetterExchange() const;
|
||||
void setDeadLetterExchange(const std::string &deadLetterExchange);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
bool getExclusiveState() const;
|
||||
void setExclusiveState(bool exclusiveState);
|
||||
bool getAutoDeleteState() const;
|
||||
void setAutoDeleteState(bool autoDeleteState);
|
||||
long getMessageTTL() const;
|
||||
void setMessageTTL(long messageTTL);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
int getMaximumPriority() const;
|
||||
void setMaximumPriority(int maximumPriority);
|
||||
|
||||
private:
|
||||
std::string queueName_;
|
||||
std::string deadLetterRoutingKey_;
|
||||
long maxLength_;
|
||||
long autoExpireState_;
|
||||
std::string deadLetterExchange_;
|
||||
std::string instanceId_;
|
||||
bool exclusiveState_;
|
||||
bool autoDeleteState_;
|
||||
long messageTTL_;
|
||||
std::string virtualHost_;
|
||||
int maximumPriority_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUEREQUEST_H_
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateVirtualHostRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVirtualHostRequest();
|
||||
~CreateVirtualHostRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateVirtualHostRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateVirtualHostRequest();
|
||||
~CreateVirtualHostRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTREQUEST_H_
|
||||
|
||||
@@ -14,35 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTVEHICLEREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTVEHICLEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEACCOUNTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/imageseg/ImagesegExport.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Imageseg {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_IMAGESEG_EXPORT SegmentVehicleRequest : public RpcServiceRequest {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteAccountRequest : public RpcServiceRequest {
|
||||
public:
|
||||
SegmentVehicleRequest();
|
||||
~SegmentVehicleRequest();
|
||||
std::string getOssFile() const;
|
||||
void setOssFile(const std::string &ossFile);
|
||||
std::string getRequestProxyBy() const;
|
||||
void setRequestProxyBy(const std::string &requestProxyBy);
|
||||
std::string getImageURL() const;
|
||||
void setImageURL(const std::string &imageURL);
|
||||
DeleteAccountRequest();
|
||||
~DeleteAccountRequest();
|
||||
long getCreateTimestamp() const;
|
||||
void setCreateTimestamp(long createTimestamp);
|
||||
std::string getUserName() const;
|
||||
void setUserName(const std::string &userName);
|
||||
|
||||
private:
|
||||
std::string ossFile_;
|
||||
std::string requestProxyBy_;
|
||||
std::string imageURL_;
|
||||
long createTimestamp_;
|
||||
std::string userName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Imageseg
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTVEHICLEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEACCOUNTREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEACCOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteAccountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteAccountResult();
|
||||
explicit DeleteAccountResult(const std::string &payload);
|
||||
~DeleteAccountResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEACCOUNTRESULT_H_
|
||||
@@ -1,63 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteBindingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteBindingRequest();
|
||||
~DeleteBindingRequest();
|
||||
|
||||
std::string getDestinationName()const;
|
||||
void setDestinationName(const std::string& destinationName);
|
||||
std::string getSourceExchange()const;
|
||||
void setSourceExchange(const std::string& sourceExchange);
|
||||
std::string getBindingKey()const;
|
||||
void setBindingKey(const std::string& bindingKey);
|
||||
std::string getBindingType()const;
|
||||
void setBindingType(const std::string& bindingType);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string destinationName_;
|
||||
std::string sourceExchange_;
|
||||
std::string bindingKey_;
|
||||
std::string bindingType_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteBindingRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteBindingRequest();
|
||||
~DeleteBindingRequest();
|
||||
std::string getDestinationName() const;
|
||||
void setDestinationName(const std::string &destinationName);
|
||||
std::string getSourceExchange() const;
|
||||
void setSourceExchange(const std::string &sourceExchange);
|
||||
std::string getBindingKey() const;
|
||||
void setBindingKey(const std::string &bindingKey);
|
||||
std::string getBindingType() const;
|
||||
void setBindingType(const std::string &bindingType);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string destinationName_;
|
||||
std::string sourceExchange_;
|
||||
std::string bindingKey_;
|
||||
std::string bindingType_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGREQUEST_H_
|
||||
|
||||
@@ -1,54 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteExchangeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteExchangeRequest();
|
||||
~DeleteExchangeRequest();
|
||||
|
||||
std::string getExchangeName()const;
|
||||
void setExchangeName(const std::string& exchangeName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteExchangeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteExchangeRequest();
|
||||
~DeleteExchangeRequest();
|
||||
std::string getExchangeName() const;
|
||||
void setExchangeName(const std::string &exchangeName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGEREQUEST_H_
|
||||
|
||||
@@ -1,54 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteQueueRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteQueueRequest();
|
||||
~DeleteQueueRequest();
|
||||
|
||||
std::string getQueueName()const;
|
||||
void setQueueName(const std::string& queueName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string queueName_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUEREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteQueueRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteQueueRequest();
|
||||
~DeleteQueueRequest();
|
||||
std::string getQueueName() const;
|
||||
void setQueueName(const std::string &queueName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string queueName_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUEREQUEST_H_
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteVirtualHostRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteVirtualHostRequest();
|
||||
~DeleteVirtualHostRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteVirtualHostRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteVirtualHostRequest();
|
||||
~DeleteVirtualHostRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTREQUEST_H_
|
||||
|
||||
@@ -1,48 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_GETMETADATAAMOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_GETMETADATAAMOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT GetMetadataAmountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMetadataAmountRequest();
|
||||
~GetMetadataAmountRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_GETMETADATAAMOUNTREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_GETMETADATAAMOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_GETMETADATAAMOUNTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT GetMetadataAmountRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetMetadataAmountRequest();
|
||||
~GetMetadataAmountRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_GETMETADATAAMOUNTREQUEST_H_
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
int maxExchanges;
|
||||
int maxVirtualHosts;
|
||||
int currentExchanges;
|
||||
int maxQueues;
|
||||
int currentExchanges;
|
||||
int currentVirtualHosts;
|
||||
int currentQueues;
|
||||
};
|
||||
|
||||
@@ -14,35 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTLOGOREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTLOGOREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTACCOUNTSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTACCOUNTSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/imageseg/ImagesegExport.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Imageseg {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_IMAGESEG_EXPORT SegmentLogoRequest : public RpcServiceRequest {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListAccountsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
SegmentLogoRequest();
|
||||
~SegmentLogoRequest();
|
||||
std::string getOssFile() const;
|
||||
void setOssFile(const std::string &ossFile);
|
||||
std::string getRequestProxyBy() const;
|
||||
void setRequestProxyBy(const std::string &requestProxyBy);
|
||||
std::string getImageURL() const;
|
||||
void setImageURL(const std::string &imageURL);
|
||||
ListAccountsRequest();
|
||||
~ListAccountsRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string ossFile_;
|
||||
std::string requestProxyBy_;
|
||||
std::string imageURL_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Imageseg
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTLOGOREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTACCOUNTSREQUEST_H_
|
||||
@@ -14,38 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTACCOUNTSRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTACCOUNTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DryRunClusterResult : public ServiceResult
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListAccountsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DryRunClusterResult();
|
||||
explicit DryRunClusterResult(const std::string &payload);
|
||||
~DryRunClusterResult();
|
||||
bool getSuccess()const;
|
||||
ListAccountsResult();
|
||||
explicit ListAccountsResult(const std::string &payload);
|
||||
~ListAccountsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTACCOUNTSRESULT_H_
|
||||
@@ -1,57 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListBindingsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListBindingsRequest();
|
||||
~ListBindingsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListBindingsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListBindingsRequest();
|
||||
~ListBindingsRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSREQUEST_H_
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string sourceExchange;
|
||||
std::string argument;
|
||||
std::string bindingType;
|
||||
std::string bindingKey;
|
||||
std::string bindingType;
|
||||
std::string destinationName;
|
||||
};
|
||||
std::string nextToken;
|
||||
|
||||
@@ -1,60 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListDownStreamBindingsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDownStreamBindingsRequest();
|
||||
~ListDownStreamBindingsRequest();
|
||||
|
||||
std::string getExchangeName()const;
|
||||
void setExchangeName(const std::string& exchangeName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListDownStreamBindingsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListDownStreamBindingsRequest();
|
||||
~ListDownStreamBindingsRequest();
|
||||
std::string getExchangeName() const;
|
||||
void setExchangeName(const std::string &exchangeName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string sourceExchange;
|
||||
std::string argument;
|
||||
std::string bindingType;
|
||||
std::string bindingKey;
|
||||
std::string bindingType;
|
||||
std::string destinationName;
|
||||
};
|
||||
std::string nextToken;
|
||||
|
||||
@@ -1,60 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListExchangeUpStreamBindingsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListExchangeUpStreamBindingsRequest();
|
||||
~ListExchangeUpStreamBindingsRequest();
|
||||
|
||||
std::string getExchangeName()const;
|
||||
void setExchangeName(const std::string& exchangeName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListExchangeUpStreamBindingsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListExchangeUpStreamBindingsRequest();
|
||||
~ListExchangeUpStreamBindingsRequest();
|
||||
std::string getExchangeName() const;
|
||||
void setExchangeName(const std::string &exchangeName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string sourceExchange;
|
||||
std::string argument;
|
||||
std::string bindingType;
|
||||
std::string bindingKey;
|
||||
std::string bindingType;
|
||||
std::string destinationName;
|
||||
};
|
||||
std::string nextToken;
|
||||
|
||||
@@ -1,57 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGESREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListExchangesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListExchangesRequest();
|
||||
~ListExchangesRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGESREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGESREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListExchangesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListExchangesRequest();
|
||||
~ListExchangesRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGESREQUEST_H_
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTINSTANCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListInstancesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListInstancesRequest();
|
||||
~ListInstancesRequest();
|
||||
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTINSTANCESREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTINSTANCESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListInstancesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListInstancesRequest();
|
||||
~ListInstancesRequest();
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTINSTANCESREQUEST_H_
|
||||
|
||||
@@ -36,17 +36,29 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct InstanceVO
|
||||
{
|
||||
std::string instanceName;
|
||||
struct TagsItem
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string orderType;
|
||||
long orderCreateTime;
|
||||
int maxTps;
|
||||
int maxEipTps;
|
||||
std::string classicEndpoint;
|
||||
std::string instanceId;
|
||||
int maxQueue;
|
||||
bool supportEIP;
|
||||
int storageSize;
|
||||
std::string instanceName;
|
||||
long orderCreateTime;
|
||||
int maxVhost;
|
||||
std::string orderType;
|
||||
std::string publicEndpoint;
|
||||
std::string instanceType;
|
||||
long expireTime;
|
||||
std::string instanceType;
|
||||
bool autoRenewInstance;
|
||||
std::string privateEndpoint;
|
||||
std::vector<InstanceVO::TagsItem> tags;
|
||||
};
|
||||
std::vector<InstanceVO> instances;
|
||||
std::string nextToken;
|
||||
|
||||
@@ -1,60 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUECONSUMERSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUECONSUMERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListQueueConsumersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListQueueConsumersRequest();
|
||||
~ListQueueConsumersRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getQueryCount()const;
|
||||
void setQueryCount(int queryCount);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
std::string getQueue()const;
|
||||
void setQueue(const std::string& queue);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int queryCount_;
|
||||
std::string virtualHost_;
|
||||
std::string queue_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUECONSUMERSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUECONSUMERSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUECONSUMERSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListQueueConsumersRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListQueueConsumersRequest();
|
||||
~ListQueueConsumersRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getQueryCount() const;
|
||||
void setQueryCount(int queryCount);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
std::string getQueue() const;
|
||||
void setQueue(const std::string &queue);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int queryCount_;
|
||||
std::string virtualHost_;
|
||||
std::string queue_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUECONSUMERSREQUEST_H_
|
||||
|
||||
@@ -1,60 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUEUPSTREAMBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUEUPSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListQueueUpStreamBindingsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListQueueUpStreamBindingsRequest();
|
||||
~ListQueueUpStreamBindingsRequest();
|
||||
|
||||
std::string getQueueName()const;
|
||||
void setQueueName(const std::string& queueName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string queueName_;
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUEUPSTREAMBINDINGSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUEUPSTREAMBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUEUPSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListQueueUpStreamBindingsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListQueueUpStreamBindingsRequest();
|
||||
~ListQueueUpStreamBindingsRequest();
|
||||
std::string getQueueName() const;
|
||||
void setQueueName(const std::string &queueName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string queueName_;
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUEUPSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string sourceExchange;
|
||||
std::string argument;
|
||||
std::string bindingType;
|
||||
std::string bindingKey;
|
||||
std::string bindingType;
|
||||
std::string destinationName;
|
||||
};
|
||||
std::string nextToken;
|
||||
|
||||
@@ -1,57 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUESREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListQueuesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListQueuesRequest();
|
||||
~ListQueuesRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUESREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUESREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListQueuesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListQueuesRequest();
|
||||
~ListQueuesRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost() const;
|
||||
void setVirtualHost(const std::string &virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTQUEUESREQUEST_H_
|
||||
|
||||
@@ -1,54 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTVIRTUALHOSTSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTVIRTUALHOSTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListVirtualHostsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListVirtualHostsRequest();
|
||||
~ListVirtualHostsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTVIRTUALHOSTSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTVIRTUALHOSTSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTVIRTUALHOSTSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListVirtualHostsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListVirtualHostsRequest();
|
||||
~ListVirtualHostsRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTVIRTUALHOSTSREQUEST_H_
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCENAMEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCENAMEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Amqp_open {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT UpdateInstanceNameRequest : public RpcServiceRequest {
|
||||
public:
|
||||
UpdateInstanceNameRequest();
|
||||
~UpdateInstanceNameRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getInstanceName() const;
|
||||
void setInstanceName(const std::string &instanceName);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string instanceName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Amqp_open
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCENAMEREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCENAMERESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCENAMERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT UpdateInstanceNameResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateInstanceNameResult();
|
||||
explicit UpdateInstanceNameResult(const std::string &payload);
|
||||
~UpdateInstanceNameResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCENAMERESULT_H_
|
||||
@@ -51,6 +51,42 @@ Amqp_openClient::Amqp_openClient(const std::string & accessKeyId, const std::str
|
||||
Amqp_openClient::~Amqp_openClient()
|
||||
{}
|
||||
|
||||
Amqp_openClient::CreateAccountOutcome Amqp_openClient::createAccount(const CreateAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAccountOutcome(CreateAccountResult(outcome.result()));
|
||||
else
|
||||
return CreateAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Amqp_openClient::createAccountAsync(const CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Amqp_openClient::CreateAccountOutcomeCallable Amqp_openClient::createAccountCallable(const CreateAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Amqp_openClient::CreateBindingOutcome Amqp_openClient::createBinding(const CreateBindingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -123,6 +159,42 @@ Amqp_openClient::CreateExchangeOutcomeCallable Amqp_openClient::createExchangeCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Amqp_openClient::CreateInstanceOutcome Amqp_openClient::createInstance(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateInstanceOutcome(CreateInstanceResult(outcome.result()));
|
||||
else
|
||||
return CreateInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Amqp_openClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Amqp_openClient::CreateInstanceOutcomeCallable Amqp_openClient::createInstanceCallable(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Amqp_openClient::CreateQueueOutcome Amqp_openClient::createQueue(const CreateQueueRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +267,42 @@ Amqp_openClient::CreateVirtualHostOutcomeCallable Amqp_openClient::createVirtual
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Amqp_openClient::DeleteAccountOutcome Amqp_openClient::deleteAccount(const DeleteAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteAccountOutcome(DeleteAccountResult(outcome.result()));
|
||||
else
|
||||
return DeleteAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Amqp_openClient::deleteAccountAsync(const DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Amqp_openClient::DeleteAccountOutcomeCallable Amqp_openClient::deleteAccountCallable(const DeleteAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Amqp_openClient::DeleteBindingOutcome Amqp_openClient::deleteBinding(const DeleteBindingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +483,42 @@ Amqp_openClient::GetMetadataAmountOutcomeCallable Amqp_openClient::getMetadataAm
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Amqp_openClient::ListAccountsOutcome Amqp_openClient::listAccounts(const ListAccountsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAccountsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAccountsOutcome(ListAccountsResult(outcome.result()));
|
||||
else
|
||||
return ListAccountsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Amqp_openClient::listAccountsAsync(const ListAccountsRequest& request, const ListAccountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAccounts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Amqp_openClient::ListAccountsOutcomeCallable Amqp_openClient::listAccountsCallable(const ListAccountsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAccountsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAccounts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Amqp_openClient::ListBindingsOutcome Amqp_openClient::listBindings(const ListBindingsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,3 +843,39 @@ Amqp_openClient::ListVirtualHostsOutcomeCallable Amqp_openClient::listVirtualHos
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Amqp_openClient::UpdateInstanceNameOutcome Amqp_openClient::updateInstanceName(const UpdateInstanceNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateInstanceNameOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateInstanceNameOutcome(UpdateInstanceNameResult(outcome.result()));
|
||||
else
|
||||
return UpdateInstanceNameOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Amqp_openClient::updateInstanceNameAsync(const UpdateInstanceNameRequest& request, const UpdateInstanceNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateInstanceName(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Amqp_openClient::UpdateInstanceNameOutcomeCallable Amqp_openClient::updateInstanceNameCallable(const UpdateInstanceNameRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateInstanceNameOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateInstanceName(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
81
amqp-open/src/model/CreateAccountRequest.cc
Normal file
81
amqp-open/src/model/CreateAccountRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateAccountRequest;
|
||||
|
||||
CreateAccountRequest::CreateAccountRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "CreateAccount") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAccountRequest::~CreateAccountRequest() {}
|
||||
|
||||
std::string CreateAccountRequest::getSignature() const {
|
||||
return signature_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setSignature(const std::string &signature) {
|
||||
signature_ = signature;
|
||||
setParameter(std::string("signature"), signature);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getSecretSign() const {
|
||||
return secretSign_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setSecretSign(const std::string &secretSign) {
|
||||
secretSign_ = secretSign;
|
||||
setParameter(std::string("secretSign"), secretSign);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getAccountAccessKey() const {
|
||||
return accountAccessKey_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setAccountAccessKey(const std::string &accountAccessKey) {
|
||||
accountAccessKey_ = accountAccessKey;
|
||||
setParameter(std::string("accountAccessKey"), accountAccessKey);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("instanceId"), instanceId);
|
||||
}
|
||||
|
||||
long CreateAccountRequest::getCreateTimestamp() const {
|
||||
return createTimestamp_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setCreateTimestamp(long createTimestamp) {
|
||||
createTimestamp_ = createTimestamp;
|
||||
setParameter(std::string("createTimestamp"), std::to_string(createTimestamp));
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("userName"), userName);
|
||||
}
|
||||
|
||||
83
amqp-open/src/model/CreateAccountResult.cc
Normal file
83
amqp-open/src/model/CreateAccountResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Amqp_open;
|
||||
using namespace AlibabaCloud::Amqp_open::Model;
|
||||
|
||||
CreateAccountResult::CreateAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAccountResult::CreateAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAccountResult::~CreateAccountResult()
|
||||
{}
|
||||
|
||||
void CreateAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AccessKey"].isNull())
|
||||
data_.accessKey = dataNode["AccessKey"].asString();
|
||||
if(!dataNode["Password"].isNull())
|
||||
data_.password = dataNode["Password"].asString();
|
||||
if(!dataNode["CreateTimeStamp"].isNull())
|
||||
data_.createTimeStamp = std::stol(dataNode["CreateTimeStamp"].asString());
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["MasterUId"].isNull())
|
||||
data_.masterUId = std::stol(dataNode["MasterUId"].asString());
|
||||
if(!dataNode["UserName"].isNull())
|
||||
data_.userName = dataNode["UserName"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAccountResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateAccountResult::Data CreateAccountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateAccountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateAccountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateBindingRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateBindingRequest;
|
||||
|
||||
CreateBindingRequest::CreateBindingRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "CreateBinding")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBindingRequest::~CreateBindingRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBindingRequest::getArgument()const
|
||||
{
|
||||
return argument_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateBindingRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateBindingRequest;
|
||||
|
||||
CreateBindingRequest::CreateBindingRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "CreateBinding") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateBindingRequest::setArgument(const std::string& argument)
|
||||
{
|
||||
argument_ = argument;
|
||||
setBodyParameter("Argument", argument);
|
||||
CreateBindingRequest::~CreateBindingRequest() {}
|
||||
|
||||
std::string CreateBindingRequest::getArgument() const {
|
||||
return argument_;
|
||||
}
|
||||
|
||||
std::string CreateBindingRequest::getDestinationName()const
|
||||
{
|
||||
return destinationName_;
|
||||
void CreateBindingRequest::setArgument(const std::string &argument) {
|
||||
argument_ = argument;
|
||||
setBodyParameter(std::string("Argument"), argument);
|
||||
}
|
||||
|
||||
void CreateBindingRequest::setDestinationName(const std::string& destinationName)
|
||||
{
|
||||
destinationName_ = destinationName;
|
||||
setBodyParameter("DestinationName", destinationName);
|
||||
std::string CreateBindingRequest::getDestinationName() const {
|
||||
return destinationName_;
|
||||
}
|
||||
|
||||
std::string CreateBindingRequest::getSourceExchange()const
|
||||
{
|
||||
return sourceExchange_;
|
||||
void CreateBindingRequest::setDestinationName(const std::string &destinationName) {
|
||||
destinationName_ = destinationName;
|
||||
setBodyParameter(std::string("DestinationName"), destinationName);
|
||||
}
|
||||
|
||||
void CreateBindingRequest::setSourceExchange(const std::string& sourceExchange)
|
||||
{
|
||||
sourceExchange_ = sourceExchange;
|
||||
setBodyParameter("SourceExchange", sourceExchange);
|
||||
std::string CreateBindingRequest::getSourceExchange() const {
|
||||
return sourceExchange_;
|
||||
}
|
||||
|
||||
std::string CreateBindingRequest::getBindingKey()const
|
||||
{
|
||||
return bindingKey_;
|
||||
void CreateBindingRequest::setSourceExchange(const std::string &sourceExchange) {
|
||||
sourceExchange_ = sourceExchange;
|
||||
setBodyParameter(std::string("SourceExchange"), sourceExchange);
|
||||
}
|
||||
|
||||
void CreateBindingRequest::setBindingKey(const std::string& bindingKey)
|
||||
{
|
||||
bindingKey_ = bindingKey;
|
||||
setBodyParameter("BindingKey", bindingKey);
|
||||
std::string CreateBindingRequest::getBindingKey() const {
|
||||
return bindingKey_;
|
||||
}
|
||||
|
||||
std::string CreateBindingRequest::getBindingType()const
|
||||
{
|
||||
return bindingType_;
|
||||
void CreateBindingRequest::setBindingKey(const std::string &bindingKey) {
|
||||
bindingKey_ = bindingKey;
|
||||
setBodyParameter(std::string("BindingKey"), bindingKey);
|
||||
}
|
||||
|
||||
void CreateBindingRequest::setBindingType(const std::string& bindingType)
|
||||
{
|
||||
bindingType_ = bindingType;
|
||||
setBodyParameter("BindingType", bindingType);
|
||||
std::string CreateBindingRequest::getBindingType() const {
|
||||
return bindingType_;
|
||||
}
|
||||
|
||||
std::string CreateBindingRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateBindingRequest::setBindingType(const std::string &bindingType) {
|
||||
bindingType_ = bindingType;
|
||||
setBodyParameter(std::string("BindingType"), bindingType);
|
||||
}
|
||||
|
||||
void CreateBindingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter("InstanceId", instanceId);
|
||||
std::string CreateBindingRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateBindingRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void CreateBindingRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateBindingRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter("VirtualHost", virtualHost);
|
||||
std::string CreateBindingRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void CreateBindingRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateExchangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateExchangeRequest;
|
||||
|
||||
CreateExchangeRequest::CreateExchangeRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "CreateExchange")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateExchangeRequest::~CreateExchangeRequest()
|
||||
{}
|
||||
|
||||
bool CreateExchangeRequest::getInternal()const
|
||||
{
|
||||
return internal_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateExchangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateExchangeRequest;
|
||||
|
||||
CreateExchangeRequest::CreateExchangeRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "CreateExchange") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateExchangeRequest::setInternal(bool internal)
|
||||
{
|
||||
internal_ = internal;
|
||||
setBodyParameter("Internal", internal ? "true" : "false");
|
||||
CreateExchangeRequest::~CreateExchangeRequest() {}
|
||||
|
||||
bool CreateExchangeRequest::getInternal() const {
|
||||
return internal_;
|
||||
}
|
||||
|
||||
std::string CreateExchangeRequest::getExchangeName()const
|
||||
{
|
||||
return exchangeName_;
|
||||
void CreateExchangeRequest::setInternal(bool internal) {
|
||||
internal_ = internal;
|
||||
setBodyParameter(std::string("Internal"), internal ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateExchangeRequest::setExchangeName(const std::string& exchangeName)
|
||||
{
|
||||
exchangeName_ = exchangeName;
|
||||
setBodyParameter("ExchangeName", exchangeName);
|
||||
std::string CreateExchangeRequest::getExchangeName() const {
|
||||
return exchangeName_;
|
||||
}
|
||||
|
||||
std::string CreateExchangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateExchangeRequest::setExchangeName(const std::string &exchangeName) {
|
||||
exchangeName_ = exchangeName;
|
||||
setBodyParameter(std::string("ExchangeName"), exchangeName);
|
||||
}
|
||||
|
||||
void CreateExchangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter("InstanceId", instanceId);
|
||||
std::string CreateExchangeRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateExchangeRequest::getAlternateExchange()const
|
||||
{
|
||||
return alternateExchange_;
|
||||
void CreateExchangeRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateExchangeRequest::setAlternateExchange(const std::string& alternateExchange)
|
||||
{
|
||||
alternateExchange_ = alternateExchange;
|
||||
setBodyParameter("AlternateExchange", alternateExchange);
|
||||
std::string CreateExchangeRequest::getAlternateExchange() const {
|
||||
return alternateExchange_;
|
||||
}
|
||||
|
||||
bool CreateExchangeRequest::getAutoDeleteState()const
|
||||
{
|
||||
return autoDeleteState_;
|
||||
void CreateExchangeRequest::setAlternateExchange(const std::string &alternateExchange) {
|
||||
alternateExchange_ = alternateExchange;
|
||||
setBodyParameter(std::string("AlternateExchange"), alternateExchange);
|
||||
}
|
||||
|
||||
void CreateExchangeRequest::setAutoDeleteState(bool autoDeleteState)
|
||||
{
|
||||
autoDeleteState_ = autoDeleteState;
|
||||
setBodyParameter("AutoDeleteState", autoDeleteState ? "true" : "false");
|
||||
bool CreateExchangeRequest::getAutoDeleteState() const {
|
||||
return autoDeleteState_;
|
||||
}
|
||||
|
||||
std::string CreateExchangeRequest::getExchangeType()const
|
||||
{
|
||||
return exchangeType_;
|
||||
void CreateExchangeRequest::setAutoDeleteState(bool autoDeleteState) {
|
||||
autoDeleteState_ = autoDeleteState;
|
||||
setBodyParameter(std::string("AutoDeleteState"), autoDeleteState ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateExchangeRequest::setExchangeType(const std::string& exchangeType)
|
||||
{
|
||||
exchangeType_ = exchangeType;
|
||||
setBodyParameter("ExchangeType", exchangeType);
|
||||
std::string CreateExchangeRequest::getExchangeType() const {
|
||||
return exchangeType_;
|
||||
}
|
||||
|
||||
std::string CreateExchangeRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void CreateExchangeRequest::setExchangeType(const std::string &exchangeType) {
|
||||
exchangeType_ = exchangeType;
|
||||
setBodyParameter(std::string("ExchangeType"), exchangeType);
|
||||
}
|
||||
|
||||
void CreateExchangeRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter("VirtualHost", virtualHost);
|
||||
std::string CreateExchangeRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void CreateExchangeRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
162
amqp-open/src/model/CreateInstanceRequest.cc
Normal file
162
amqp-open/src/model/CreateInstanceRequest.cc
Normal file
@@ -0,0 +1,162 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "CreateInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceRequest::~CreateInstanceRequest() {}
|
||||
|
||||
long CreateInstanceRequest::getMaxPrivateTps() const {
|
||||
return maxPrivateTps_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setMaxPrivateTps(long maxPrivateTps) {
|
||||
maxPrivateTps_ = maxPrivateTps;
|
||||
setParameter(std::string("MaxPrivateTps"), std::to_string(maxPrivateTps));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getPeriodCycle() const {
|
||||
return periodCycle_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPeriodCycle(const std::string &periodCycle) {
|
||||
periodCycle_ = periodCycle;
|
||||
setParameter(std::string("PeriodCycle"), periodCycle);
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getStorageSize() const {
|
||||
return storageSize_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setStorageSize(int storageSize) {
|
||||
storageSize_ = storageSize;
|
||||
setParameter(std::string("StorageSize"), std::to_string(storageSize));
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getQueueCapacity() const {
|
||||
return queueCapacity_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setQueueCapacity(int queueCapacity) {
|
||||
queueCapacity_ = queueCapacity;
|
||||
setParameter(std::string("QueueCapacity"), std::to_string(queueCapacity));
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getTracingStorageTime() const {
|
||||
return tracingStorageTime_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setTracingStorageTime(int tracingStorageTime) {
|
||||
tracingStorageTime_ = tracingStorageTime;
|
||||
setParameter(std::string("TracingStorageTime"), std::to_string(tracingStorageTime));
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getMaxConnections() const {
|
||||
return maxConnections_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setMaxConnections(int maxConnections) {
|
||||
maxConnections_ = maxConnections;
|
||||
setParameter(std::string("MaxConnections"), std::to_string(maxConnections));
|
||||
}
|
||||
|
||||
bool CreateInstanceRequest::getSupportTracing() const {
|
||||
return supportTracing_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setSupportTracing(bool supportTracing) {
|
||||
supportTracing_ = supportTracing;
|
||||
setParameter(std::string("SupportTracing"), supportTracing ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setInstanceType(const std::string &instanceType) {
|
||||
instanceType_ = instanceType;
|
||||
setParameter(std::string("InstanceType"), instanceType);
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getAutoRenewPeriod() const {
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAutoRenewPeriod(int autoRenewPeriod) {
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateInstanceRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPeriod(int period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateInstanceRequest::getAutoRenew() const {
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAutoRenew(bool autoRenew) {
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateInstanceRequest::getSupportEip() const {
|
||||
return supportEip_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setSupportEip(bool supportEip) {
|
||||
supportEip_ = supportEip;
|
||||
setParameter(std::string("SupportEip"), supportEip ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateInstanceRequest::getMaxEipTps() const {
|
||||
return maxEipTps_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setMaxEipTps(long maxEipTps) {
|
||||
maxEipTps_ = maxEipTps;
|
||||
setParameter(std::string("MaxEipTps"), std::to_string(maxEipTps));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getPaymentType() const {
|
||||
return paymentType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPaymentType(const std::string &paymentType) {
|
||||
paymentType_ = paymentType;
|
||||
setParameter(std::string("PaymentType"), paymentType);
|
||||
}
|
||||
|
||||
44
amqp-open/src/model/CreateInstanceResult.cc
Normal file
44
amqp-open/src/model/CreateInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Amqp_open;
|
||||
using namespace AlibabaCloud::Amqp_open::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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,150 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateQueueRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateQueueRequest;
|
||||
|
||||
CreateQueueRequest::CreateQueueRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "CreateQueue")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateQueueRequest::~CreateQueueRequest()
|
||||
{}
|
||||
|
||||
std::string CreateQueueRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateQueueRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateQueueRequest;
|
||||
|
||||
CreateQueueRequest::CreateQueueRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "CreateQueue") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setBodyParameter("QueueName", queueName);
|
||||
CreateQueueRequest::~CreateQueueRequest() {}
|
||||
|
||||
std::string CreateQueueRequest::getQueueName() const {
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
std::string CreateQueueRequest::getDeadLetterRoutingKey()const
|
||||
{
|
||||
return deadLetterRoutingKey_;
|
||||
void CreateQueueRequest::setQueueName(const std::string &queueName) {
|
||||
queueName_ = queueName;
|
||||
setBodyParameter(std::string("QueueName"), queueName);
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setDeadLetterRoutingKey(const std::string& deadLetterRoutingKey)
|
||||
{
|
||||
deadLetterRoutingKey_ = deadLetterRoutingKey;
|
||||
setBodyParameter("DeadLetterRoutingKey", deadLetterRoutingKey);
|
||||
std::string CreateQueueRequest::getDeadLetterRoutingKey() const {
|
||||
return deadLetterRoutingKey_;
|
||||
}
|
||||
|
||||
long CreateQueueRequest::getMaxLength()const
|
||||
{
|
||||
return maxLength_;
|
||||
void CreateQueueRequest::setDeadLetterRoutingKey(const std::string &deadLetterRoutingKey) {
|
||||
deadLetterRoutingKey_ = deadLetterRoutingKey;
|
||||
setBodyParameter(std::string("DeadLetterRoutingKey"), deadLetterRoutingKey);
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setMaxLength(long maxLength)
|
||||
{
|
||||
maxLength_ = maxLength;
|
||||
setBodyParameter("MaxLength", std::to_string(maxLength));
|
||||
long CreateQueueRequest::getMaxLength() const {
|
||||
return maxLength_;
|
||||
}
|
||||
|
||||
long CreateQueueRequest::getAutoExpireState()const
|
||||
{
|
||||
return autoExpireState_;
|
||||
void CreateQueueRequest::setMaxLength(long maxLength) {
|
||||
maxLength_ = maxLength;
|
||||
setBodyParameter(std::string("MaxLength"), std::to_string(maxLength));
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setAutoExpireState(long autoExpireState)
|
||||
{
|
||||
autoExpireState_ = autoExpireState;
|
||||
setBodyParameter("AutoExpireState", std::to_string(autoExpireState));
|
||||
long CreateQueueRequest::getAutoExpireState() const {
|
||||
return autoExpireState_;
|
||||
}
|
||||
|
||||
std::string CreateQueueRequest::getDeadLetterExchange()const
|
||||
{
|
||||
return deadLetterExchange_;
|
||||
void CreateQueueRequest::setAutoExpireState(long autoExpireState) {
|
||||
autoExpireState_ = autoExpireState;
|
||||
setBodyParameter(std::string("AutoExpireState"), std::to_string(autoExpireState));
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setDeadLetterExchange(const std::string& deadLetterExchange)
|
||||
{
|
||||
deadLetterExchange_ = deadLetterExchange;
|
||||
setBodyParameter("DeadLetterExchange", deadLetterExchange);
|
||||
std::string CreateQueueRequest::getDeadLetterExchange() const {
|
||||
return deadLetterExchange_;
|
||||
}
|
||||
|
||||
std::string CreateQueueRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateQueueRequest::setDeadLetterExchange(const std::string &deadLetterExchange) {
|
||||
deadLetterExchange_ = deadLetterExchange;
|
||||
setBodyParameter(std::string("DeadLetterExchange"), deadLetterExchange);
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter("InstanceId", instanceId);
|
||||
std::string CreateQueueRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
bool CreateQueueRequest::getExclusiveState()const
|
||||
{
|
||||
return exclusiveState_;
|
||||
void CreateQueueRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setExclusiveState(bool exclusiveState)
|
||||
{
|
||||
exclusiveState_ = exclusiveState;
|
||||
setBodyParameter("ExclusiveState", exclusiveState ? "true" : "false");
|
||||
bool CreateQueueRequest::getExclusiveState() const {
|
||||
return exclusiveState_;
|
||||
}
|
||||
|
||||
bool CreateQueueRequest::getAutoDeleteState()const
|
||||
{
|
||||
return autoDeleteState_;
|
||||
void CreateQueueRequest::setExclusiveState(bool exclusiveState) {
|
||||
exclusiveState_ = exclusiveState;
|
||||
setBodyParameter(std::string("ExclusiveState"), exclusiveState ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setAutoDeleteState(bool autoDeleteState)
|
||||
{
|
||||
autoDeleteState_ = autoDeleteState;
|
||||
setBodyParameter("AutoDeleteState", autoDeleteState ? "true" : "false");
|
||||
bool CreateQueueRequest::getAutoDeleteState() const {
|
||||
return autoDeleteState_;
|
||||
}
|
||||
|
||||
long CreateQueueRequest::getMessageTTL()const
|
||||
{
|
||||
return messageTTL_;
|
||||
void CreateQueueRequest::setAutoDeleteState(bool autoDeleteState) {
|
||||
autoDeleteState_ = autoDeleteState;
|
||||
setBodyParameter(std::string("AutoDeleteState"), autoDeleteState ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setMessageTTL(long messageTTL)
|
||||
{
|
||||
messageTTL_ = messageTTL;
|
||||
setBodyParameter("MessageTTL", std::to_string(messageTTL));
|
||||
long CreateQueueRequest::getMessageTTL() const {
|
||||
return messageTTL_;
|
||||
}
|
||||
|
||||
std::string CreateQueueRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void CreateQueueRequest::setMessageTTL(long messageTTL) {
|
||||
messageTTL_ = messageTTL;
|
||||
setBodyParameter(std::string("MessageTTL"), std::to_string(messageTTL));
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter("VirtualHost", virtualHost);
|
||||
std::string CreateQueueRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
int CreateQueueRequest::getMaximumPriority()const
|
||||
{
|
||||
return maximumPriority_;
|
||||
void CreateQueueRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setMaximumPriority(int maximumPriority)
|
||||
{
|
||||
maximumPriority_ = maximumPriority;
|
||||
setBodyParameter("MaximumPriority", std::to_string(maximumPriority));
|
||||
int CreateQueueRequest::getMaximumPriority() const {
|
||||
return maximumPriority_;
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setMaximumPriority(int maximumPriority) {
|
||||
maximumPriority_ = maximumPriority;
|
||||
setBodyParameter(std::string("MaximumPriority"), std::to_string(maximumPriority));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateVirtualHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateVirtualHostRequest;
|
||||
|
||||
CreateVirtualHostRequest::CreateVirtualHostRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "CreateVirtualHost")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVirtualHostRequest::~CreateVirtualHostRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVirtualHostRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/CreateVirtualHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::CreateVirtualHostRequest;
|
||||
|
||||
CreateVirtualHostRequest::CreateVirtualHostRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "CreateVirtualHost") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateVirtualHostRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter("InstanceId", instanceId);
|
||||
CreateVirtualHostRequest::~CreateVirtualHostRequest() {}
|
||||
|
||||
std::string CreateVirtualHostRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateVirtualHostRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void CreateVirtualHostRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateVirtualHostRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter("VirtualHost", virtualHost);
|
||||
std::string CreateVirtualHostRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void CreateVirtualHostRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
45
amqp-open/src/model/DeleteAccountRequest.cc
Normal file
45
amqp-open/src/model/DeleteAccountRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::DeleteAccountRequest;
|
||||
|
||||
DeleteAccountRequest::DeleteAccountRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "DeleteAccount") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAccountRequest::~DeleteAccountRequest() {}
|
||||
|
||||
long DeleteAccountRequest::getCreateTimestamp() const {
|
||||
return createTimestamp_;
|
||||
}
|
||||
|
||||
void DeleteAccountRequest::setCreateTimestamp(long createTimestamp) {
|
||||
createTimestamp_ = createTimestamp;
|
||||
setParameter(std::string("CreateTimestamp"), std::to_string(createTimestamp));
|
||||
}
|
||||
|
||||
std::string DeleteAccountRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void DeleteAccountRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
72
amqp-open/src/model/DeleteAccountResult.cc
Normal file
72
amqp-open/src/model/DeleteAccountResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Amqp_open;
|
||||
using namespace AlibabaCloud::Amqp_open::Model;
|
||||
|
||||
DeleteAccountResult::DeleteAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAccountResult::DeleteAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAccountResult::~DeleteAccountResult()
|
||||
{}
|
||||
|
||||
void DeleteAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAccountResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DeleteAccountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteAccountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteAccountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteBindingRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::DeleteBindingRequest;
|
||||
|
||||
DeleteBindingRequest::DeleteBindingRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "DeleteBinding")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBindingRequest::~DeleteBindingRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteBindingRequest::getDestinationName()const
|
||||
{
|
||||
return destinationName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteBindingRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::DeleteBindingRequest;
|
||||
|
||||
DeleteBindingRequest::DeleteBindingRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "DeleteBinding") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteBindingRequest::setDestinationName(const std::string& destinationName)
|
||||
{
|
||||
destinationName_ = destinationName;
|
||||
setBodyParameter("DestinationName", destinationName);
|
||||
DeleteBindingRequest::~DeleteBindingRequest() {}
|
||||
|
||||
std::string DeleteBindingRequest::getDestinationName() const {
|
||||
return destinationName_;
|
||||
}
|
||||
|
||||
std::string DeleteBindingRequest::getSourceExchange()const
|
||||
{
|
||||
return sourceExchange_;
|
||||
void DeleteBindingRequest::setDestinationName(const std::string &destinationName) {
|
||||
destinationName_ = destinationName;
|
||||
setBodyParameter(std::string("DestinationName"), destinationName);
|
||||
}
|
||||
|
||||
void DeleteBindingRequest::setSourceExchange(const std::string& sourceExchange)
|
||||
{
|
||||
sourceExchange_ = sourceExchange;
|
||||
setBodyParameter("SourceExchange", sourceExchange);
|
||||
std::string DeleteBindingRequest::getSourceExchange() const {
|
||||
return sourceExchange_;
|
||||
}
|
||||
|
||||
std::string DeleteBindingRequest::getBindingKey()const
|
||||
{
|
||||
return bindingKey_;
|
||||
void DeleteBindingRequest::setSourceExchange(const std::string &sourceExchange) {
|
||||
sourceExchange_ = sourceExchange;
|
||||
setBodyParameter(std::string("SourceExchange"), sourceExchange);
|
||||
}
|
||||
|
||||
void DeleteBindingRequest::setBindingKey(const std::string& bindingKey)
|
||||
{
|
||||
bindingKey_ = bindingKey;
|
||||
setBodyParameter("BindingKey", bindingKey);
|
||||
std::string DeleteBindingRequest::getBindingKey() const {
|
||||
return bindingKey_;
|
||||
}
|
||||
|
||||
std::string DeleteBindingRequest::getBindingType()const
|
||||
{
|
||||
return bindingType_;
|
||||
void DeleteBindingRequest::setBindingKey(const std::string &bindingKey) {
|
||||
bindingKey_ = bindingKey;
|
||||
setBodyParameter(std::string("BindingKey"), bindingKey);
|
||||
}
|
||||
|
||||
void DeleteBindingRequest::setBindingType(const std::string& bindingType)
|
||||
{
|
||||
bindingType_ = bindingType;
|
||||
setBodyParameter("BindingType", bindingType);
|
||||
std::string DeleteBindingRequest::getBindingType() const {
|
||||
return bindingType_;
|
||||
}
|
||||
|
||||
std::string DeleteBindingRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteBindingRequest::setBindingType(const std::string &bindingType) {
|
||||
bindingType_ = bindingType;
|
||||
setBodyParameter(std::string("BindingType"), bindingType);
|
||||
}
|
||||
|
||||
void DeleteBindingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter("InstanceId", instanceId);
|
||||
std::string DeleteBindingRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteBindingRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void DeleteBindingRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DeleteBindingRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter("VirtualHost", virtualHost);
|
||||
std::string DeleteBindingRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void DeleteBindingRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteExchangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::DeleteExchangeRequest;
|
||||
|
||||
DeleteExchangeRequest::DeleteExchangeRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "DeleteExchange")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteExchangeRequest::~DeleteExchangeRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteExchangeRequest::getExchangeName()const
|
||||
{
|
||||
return exchangeName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteExchangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::DeleteExchangeRequest;
|
||||
|
||||
DeleteExchangeRequest::DeleteExchangeRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "DeleteExchange") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteExchangeRequest::setExchangeName(const std::string& exchangeName)
|
||||
{
|
||||
exchangeName_ = exchangeName;
|
||||
setBodyParameter("ExchangeName", exchangeName);
|
||||
DeleteExchangeRequest::~DeleteExchangeRequest() {}
|
||||
|
||||
std::string DeleteExchangeRequest::getExchangeName() const {
|
||||
return exchangeName_;
|
||||
}
|
||||
|
||||
std::string DeleteExchangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteExchangeRequest::setExchangeName(const std::string &exchangeName) {
|
||||
exchangeName_ = exchangeName;
|
||||
setBodyParameter(std::string("ExchangeName"), exchangeName);
|
||||
}
|
||||
|
||||
void DeleteExchangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter("InstanceId", instanceId);
|
||||
std::string DeleteExchangeRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteExchangeRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void DeleteExchangeRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DeleteExchangeRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter("VirtualHost", virtualHost);
|
||||
std::string DeleteExchangeRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void DeleteExchangeRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteQueueRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::DeleteQueueRequest;
|
||||
|
||||
DeleteQueueRequest::DeleteQueueRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "DeleteQueue")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteQueueRequest::~DeleteQueueRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteQueueRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteQueueRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::DeleteQueueRequest;
|
||||
|
||||
DeleteQueueRequest::DeleteQueueRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "DeleteQueue") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteQueueRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setBodyParameter("QueueName", queueName);
|
||||
DeleteQueueRequest::~DeleteQueueRequest() {}
|
||||
|
||||
std::string DeleteQueueRequest::getQueueName() const {
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
std::string DeleteQueueRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteQueueRequest::setQueueName(const std::string &queueName) {
|
||||
queueName_ = queueName;
|
||||
setBodyParameter(std::string("QueueName"), queueName);
|
||||
}
|
||||
|
||||
void DeleteQueueRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter("InstanceId", instanceId);
|
||||
std::string DeleteQueueRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteQueueRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void DeleteQueueRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DeleteQueueRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter("VirtualHost", virtualHost);
|
||||
std::string DeleteQueueRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void DeleteQueueRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteVirtualHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::DeleteVirtualHostRequest;
|
||||
|
||||
DeleteVirtualHostRequest::DeleteVirtualHostRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "DeleteVirtualHost")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteVirtualHostRequest::~DeleteVirtualHostRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteVirtualHostRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/DeleteVirtualHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::DeleteVirtualHostRequest;
|
||||
|
||||
DeleteVirtualHostRequest::DeleteVirtualHostRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "DeleteVirtualHost") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteVirtualHostRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter("InstanceId", instanceId);
|
||||
DeleteVirtualHostRequest::~DeleteVirtualHostRequest() {}
|
||||
|
||||
std::string DeleteVirtualHostRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteVirtualHostRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void DeleteVirtualHostRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DeleteVirtualHostRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter("VirtualHost", virtualHost);
|
||||
std::string DeleteVirtualHostRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void DeleteVirtualHostRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setBodyParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/GetMetadataAmountRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::GetMetadataAmountRequest;
|
||||
|
||||
GetMetadataAmountRequest::GetMetadataAmountRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "GetMetadataAmount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetMetadataAmountRequest::~GetMetadataAmountRequest()
|
||||
{}
|
||||
|
||||
std::string GetMetadataAmountRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/GetMetadataAmountRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::GetMetadataAmountRequest;
|
||||
|
||||
GetMetadataAmountRequest::GetMetadataAmountRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "GetMetadataAmount") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetMetadataAmountRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
GetMetadataAmountRequest::~GetMetadataAmountRequest() {}
|
||||
|
||||
std::string GetMetadataAmountRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetMetadataAmountRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,18 @@ void GetMetadataAmountResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentVirtualHosts"].isNull())
|
||||
data_.currentVirtualHosts = std::stoi(dataNode["CurrentVirtualHosts"].asString());
|
||||
if(!dataNode["MaxVirtualHosts"].isNull())
|
||||
data_.maxVirtualHosts = std::stoi(dataNode["MaxVirtualHosts"].asString());
|
||||
if(!dataNode["CurrentVirtualHosts"].isNull())
|
||||
data_.currentVirtualHosts = std::stoi(dataNode["CurrentVirtualHosts"].asString());
|
||||
if(!dataNode["MaxQueues"].isNull())
|
||||
data_.maxQueues = std::stoi(dataNode["MaxQueues"].asString());
|
||||
if(!dataNode["CurrentExchanges"].isNull())
|
||||
data_.currentExchanges = std::stoi(dataNode["CurrentExchanges"].asString());
|
||||
if(!dataNode["MaxExchanges"].isNull())
|
||||
data_.maxExchanges = std::stoi(dataNode["MaxExchanges"].asString());
|
||||
if(!dataNode["CurrentQueues"].isNull())
|
||||
data_.currentQueues = std::stoi(dataNode["CurrentQueues"].asString());
|
||||
if(!dataNode["MaxQueues"].isNull())
|
||||
data_.maxQueues = std::stoi(dataNode["MaxQueues"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
36
amqp-open/src/model/ListAccountsRequest.cc
Normal file
36
amqp-open/src/model/ListAccountsRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListAccountsRequest;
|
||||
|
||||
ListAccountsRequest::ListAccountsRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListAccounts") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAccountsRequest::~ListAccountsRequest() {}
|
||||
|
||||
std::string ListAccountsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListAccountsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
44
amqp-open/src/model/ListAccountsResult.cc
Normal file
44
amqp-open/src/model/ListAccountsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Amqp_open;
|
||||
using namespace AlibabaCloud::Amqp_open::Model;
|
||||
|
||||
ListAccountsResult::ListAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAccountsResult::ListAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAccountsResult::~ListAccountsResult()
|
||||
{}
|
||||
|
||||
void ListAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListBindingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListBindingsRequest;
|
||||
|
||||
ListBindingsRequest::ListBindingsRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "ListBindings")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListBindingsRequest::~ListBindingsRequest()
|
||||
{}
|
||||
|
||||
std::string ListBindingsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListBindingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListBindingsRequest;
|
||||
|
||||
ListBindingsRequest::ListBindingsRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListBindings") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListBindingsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
ListBindingsRequest::~ListBindingsRequest() {}
|
||||
|
||||
std::string ListBindingsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListBindingsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListBindingsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListBindingsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListBindingsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListBindingsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListBindingsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListBindingsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListBindingsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListBindingsRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void ListBindingsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListBindingsRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter("VirtualHost", virtualHost);
|
||||
std::string ListBindingsRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void ListBindingsRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void ListBindingsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allBindingsNode = dataNode["Bindings"]["BindingDO"];
|
||||
for (auto dataNodeBindingsBindingDO : allBindingsNode)
|
||||
{
|
||||
Data::BindingDO bindingDOObject;
|
||||
if(!dataNodeBindingsBindingDO["SourceExchange"].isNull())
|
||||
bindingDOObject.sourceExchange = dataNodeBindingsBindingDO["SourceExchange"].asString();
|
||||
if(!dataNodeBindingsBindingDO["DestinationName"].isNull())
|
||||
bindingDOObject.destinationName = dataNodeBindingsBindingDO["DestinationName"].asString();
|
||||
if(!dataNodeBindingsBindingDO["BindingType"].isNull())
|
||||
bindingDOObject.bindingType = dataNodeBindingsBindingDO["BindingType"].asString();
|
||||
if(!dataNodeBindingsBindingDO["BindingKey"].isNull())
|
||||
bindingDOObject.bindingKey = dataNodeBindingsBindingDO["BindingKey"].asString();
|
||||
if(!dataNodeBindingsBindingDO["Argument"].isNull())
|
||||
bindingDOObject.argument = dataNodeBindingsBindingDO["Argument"].asString();
|
||||
if(!dataNodeBindingsBindingDO["BindingKey"].isNull())
|
||||
bindingDOObject.bindingKey = dataNodeBindingsBindingDO["BindingKey"].asString();
|
||||
if(!dataNodeBindingsBindingDO["BindingType"].isNull())
|
||||
bindingDOObject.bindingType = dataNodeBindingsBindingDO["BindingType"].asString();
|
||||
if(!dataNodeBindingsBindingDO["DestinationName"].isNull())
|
||||
bindingDOObject.destinationName = dataNodeBindingsBindingDO["DestinationName"].asString();
|
||||
data_.bindings.push_back(bindingDOObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListDownStreamBindingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListDownStreamBindingsRequest;
|
||||
|
||||
ListDownStreamBindingsRequest::ListDownStreamBindingsRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "ListDownStreamBindings")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListDownStreamBindingsRequest::~ListDownStreamBindingsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDownStreamBindingsRequest::getExchangeName()const
|
||||
{
|
||||
return exchangeName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListDownStreamBindingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListDownStreamBindingsRequest;
|
||||
|
||||
ListDownStreamBindingsRequest::ListDownStreamBindingsRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListDownStreamBindings") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListDownStreamBindingsRequest::setExchangeName(const std::string& exchangeName)
|
||||
{
|
||||
exchangeName_ = exchangeName;
|
||||
setParameter("ExchangeName", exchangeName);
|
||||
ListDownStreamBindingsRequest::~ListDownStreamBindingsRequest() {}
|
||||
|
||||
std::string ListDownStreamBindingsRequest::getExchangeName() const {
|
||||
return exchangeName_;
|
||||
}
|
||||
|
||||
std::string ListDownStreamBindingsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void ListDownStreamBindingsRequest::setExchangeName(const std::string &exchangeName) {
|
||||
exchangeName_ = exchangeName;
|
||||
setParameter(std::string("ExchangeName"), exchangeName);
|
||||
}
|
||||
|
||||
void ListDownStreamBindingsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string ListDownStreamBindingsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListDownStreamBindingsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListDownStreamBindingsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListDownStreamBindingsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListDownStreamBindingsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListDownStreamBindingsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListDownStreamBindingsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListDownStreamBindingsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListDownStreamBindingsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListDownStreamBindingsRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void ListDownStreamBindingsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListDownStreamBindingsRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter("VirtualHost", virtualHost);
|
||||
std::string ListDownStreamBindingsRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void ListDownStreamBindingsRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void ListDownStreamBindingsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allBindingsNode = dataNode["Bindings"]["BindingVO"];
|
||||
for (auto dataNodeBindingsBindingVO : allBindingsNode)
|
||||
{
|
||||
Data::BindingVO bindingVOObject;
|
||||
if(!dataNodeBindingsBindingVO["SourceExchange"].isNull())
|
||||
bindingVOObject.sourceExchange = dataNodeBindingsBindingVO["SourceExchange"].asString();
|
||||
if(!dataNodeBindingsBindingVO["DestinationName"].isNull())
|
||||
bindingVOObject.destinationName = dataNodeBindingsBindingVO["DestinationName"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingType"].isNull())
|
||||
bindingVOObject.bindingType = dataNodeBindingsBindingVO["BindingType"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingKey"].isNull())
|
||||
bindingVOObject.bindingKey = dataNodeBindingsBindingVO["BindingKey"].asString();
|
||||
if(!dataNodeBindingsBindingVO["Argument"].isNull())
|
||||
bindingVOObject.argument = dataNodeBindingsBindingVO["Argument"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingKey"].isNull())
|
||||
bindingVOObject.bindingKey = dataNodeBindingsBindingVO["BindingKey"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingType"].isNull())
|
||||
bindingVOObject.bindingType = dataNodeBindingsBindingVO["BindingType"].asString();
|
||||
if(!dataNodeBindingsBindingVO["DestinationName"].isNull())
|
||||
bindingVOObject.destinationName = dataNodeBindingsBindingVO["DestinationName"].asString();
|
||||
data_.bindings.push_back(bindingVOObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListExchangeUpStreamBindingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListExchangeUpStreamBindingsRequest;
|
||||
|
||||
ListExchangeUpStreamBindingsRequest::ListExchangeUpStreamBindingsRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "ListExchangeUpStreamBindings")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListExchangeUpStreamBindingsRequest::~ListExchangeUpStreamBindingsRequest()
|
||||
{}
|
||||
|
||||
std::string ListExchangeUpStreamBindingsRequest::getExchangeName()const
|
||||
{
|
||||
return exchangeName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListExchangeUpStreamBindingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListExchangeUpStreamBindingsRequest;
|
||||
|
||||
ListExchangeUpStreamBindingsRequest::ListExchangeUpStreamBindingsRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListExchangeUpStreamBindings") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListExchangeUpStreamBindingsRequest::setExchangeName(const std::string& exchangeName)
|
||||
{
|
||||
exchangeName_ = exchangeName;
|
||||
setParameter("ExchangeName", exchangeName);
|
||||
ListExchangeUpStreamBindingsRequest::~ListExchangeUpStreamBindingsRequest() {}
|
||||
|
||||
std::string ListExchangeUpStreamBindingsRequest::getExchangeName() const {
|
||||
return exchangeName_;
|
||||
}
|
||||
|
||||
std::string ListExchangeUpStreamBindingsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void ListExchangeUpStreamBindingsRequest::setExchangeName(const std::string &exchangeName) {
|
||||
exchangeName_ = exchangeName;
|
||||
setParameter(std::string("ExchangeName"), exchangeName);
|
||||
}
|
||||
|
||||
void ListExchangeUpStreamBindingsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string ListExchangeUpStreamBindingsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListExchangeUpStreamBindingsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListExchangeUpStreamBindingsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListExchangeUpStreamBindingsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListExchangeUpStreamBindingsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListExchangeUpStreamBindingsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListExchangeUpStreamBindingsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListExchangeUpStreamBindingsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListExchangeUpStreamBindingsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListExchangeUpStreamBindingsRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void ListExchangeUpStreamBindingsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListExchangeUpStreamBindingsRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter("VirtualHost", virtualHost);
|
||||
std::string ListExchangeUpStreamBindingsRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void ListExchangeUpStreamBindingsRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void ListExchangeUpStreamBindingsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allBindingsNode = dataNode["Bindings"]["BindingVO"];
|
||||
for (auto dataNodeBindingsBindingVO : allBindingsNode)
|
||||
{
|
||||
Data::BindingVO bindingVOObject;
|
||||
if(!dataNodeBindingsBindingVO["SourceExchange"].isNull())
|
||||
bindingVOObject.sourceExchange = dataNodeBindingsBindingVO["SourceExchange"].asString();
|
||||
if(!dataNodeBindingsBindingVO["DestinationName"].isNull())
|
||||
bindingVOObject.destinationName = dataNodeBindingsBindingVO["DestinationName"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingType"].isNull())
|
||||
bindingVOObject.bindingType = dataNodeBindingsBindingVO["BindingType"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingKey"].isNull())
|
||||
bindingVOObject.bindingKey = dataNodeBindingsBindingVO["BindingKey"].asString();
|
||||
if(!dataNodeBindingsBindingVO["Argument"].isNull())
|
||||
bindingVOObject.argument = dataNodeBindingsBindingVO["Argument"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingKey"].isNull())
|
||||
bindingVOObject.bindingKey = dataNodeBindingsBindingVO["BindingKey"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingType"].isNull())
|
||||
bindingVOObject.bindingType = dataNodeBindingsBindingVO["BindingType"].asString();
|
||||
if(!dataNodeBindingsBindingVO["DestinationName"].isNull())
|
||||
bindingVOObject.destinationName = dataNodeBindingsBindingVO["DestinationName"].asString();
|
||||
data_.bindings.push_back(bindingVOObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListExchangesRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListExchangesRequest;
|
||||
|
||||
ListExchangesRequest::ListExchangesRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "ListExchanges")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListExchangesRequest::~ListExchangesRequest()
|
||||
{}
|
||||
|
||||
std::string ListExchangesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListExchangesRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListExchangesRequest;
|
||||
|
||||
ListExchangesRequest::ListExchangesRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListExchanges") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListExchangesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
ListExchangesRequest::~ListExchangesRequest() {}
|
||||
|
||||
std::string ListExchangesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListExchangesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListExchangesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListExchangesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListExchangesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListExchangesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListExchangesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListExchangesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListExchangesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListExchangesRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void ListExchangesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListExchangesRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter("VirtualHost", virtualHost);
|
||||
std::string ListExchangesRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void ListExchangesRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void ListExchangesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allExchangesNode = dataNode["Exchanges"]["ExchangeVO"];
|
||||
for (auto dataNodeExchangesExchangeVO : allExchangesNode)
|
||||
{
|
||||
Data::ExchangeVO exchangeVOObject;
|
||||
if(!dataNodeExchangesExchangeVO["Name"].isNull())
|
||||
exchangeVOObject.name = dataNodeExchangesExchangeVO["Name"].asString();
|
||||
if(!dataNodeExchangesExchangeVO["VHostName"].isNull())
|
||||
exchangeVOObject.vHostName = dataNodeExchangesExchangeVO["VHostName"].asString();
|
||||
if(!dataNodeExchangesExchangeVO["ExchangeType"].isNull())
|
||||
exchangeVOObject.exchangeType = dataNodeExchangesExchangeVO["ExchangeType"].asString();
|
||||
if(!dataNodeExchangesExchangeVO["AutoDeleteState"].isNull())
|
||||
exchangeVOObject.autoDeleteState = dataNodeExchangesExchangeVO["AutoDeleteState"].asString() == "true";
|
||||
if(!dataNodeExchangesExchangeVO["Attributes"].isNull())
|
||||
exchangeVOObject.attributes = dataNodeExchangesExchangeVO["Attributes"].asString();
|
||||
if(!dataNodeExchangesExchangeVO["CreateTime"].isNull())
|
||||
exchangeVOObject.createTime = std::stol(dataNodeExchangesExchangeVO["CreateTime"].asString());
|
||||
if(!dataNodeExchangesExchangeVO["Attributes"].isNull())
|
||||
exchangeVOObject.attributes = dataNodeExchangesExchangeVO["Attributes"].asString();
|
||||
if(!dataNodeExchangesExchangeVO["VHostName"].isNull())
|
||||
exchangeVOObject.vHostName = dataNodeExchangesExchangeVO["VHostName"].asString();
|
||||
if(!dataNodeExchangesExchangeVO["Name"].isNull())
|
||||
exchangeVOObject.name = dataNodeExchangesExchangeVO["Name"].asString();
|
||||
if(!dataNodeExchangesExchangeVO["ExchangeType"].isNull())
|
||||
exchangeVOObject.exchangeType = dataNodeExchangesExchangeVO["ExchangeType"].asString();
|
||||
data_.exchanges.push_back(exchangeVOObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListInstancesRequest;
|
||||
|
||||
ListInstancesRequest::ListInstancesRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "ListInstances")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListInstancesRequest::~ListInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string ListInstancesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListInstancesRequest;
|
||||
|
||||
ListInstancesRequest::ListInstancesRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListInstances") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListInstancesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
ListInstancesRequest::~ListInstancesRequest() {}
|
||||
|
||||
std::string ListInstancesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListInstancesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListInstancesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListInstancesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListInstancesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListInstancesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,36 +40,58 @@ void ListInstancesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
auto allInstancesNode = dataNode["Instances"]["InstanceVO"];
|
||||
for (auto dataNodeInstancesInstanceVO : allInstancesNode)
|
||||
{
|
||||
Data::InstanceVO instanceVOObject;
|
||||
if(!dataNodeInstancesInstanceVO["InstanceId"].isNull())
|
||||
instanceVOObject.instanceId = dataNodeInstancesInstanceVO["InstanceId"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["InstanceName"].isNull())
|
||||
instanceVOObject.instanceName = dataNodeInstancesInstanceVO["InstanceName"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["InstanceType"].isNull())
|
||||
instanceVOObject.instanceType = dataNodeInstancesInstanceVO["InstanceType"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["Status"].isNull())
|
||||
instanceVOObject.status = dataNodeInstancesInstanceVO["Status"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["OrderType"].isNull())
|
||||
instanceVOObject.orderType = dataNodeInstancesInstanceVO["OrderType"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["OrderCreateTime"].isNull())
|
||||
instanceVOObject.orderCreateTime = std::stol(dataNodeInstancesInstanceVO["OrderCreateTime"].asString());
|
||||
if(!dataNodeInstancesInstanceVO["ExpireTime"].isNull())
|
||||
instanceVOObject.expireTime = std::stol(dataNodeInstancesInstanceVO["ExpireTime"].asString());
|
||||
if(!dataNodeInstancesInstanceVO["AutoRenewInstance"].isNull())
|
||||
instanceVOObject.autoRenewInstance = dataNodeInstancesInstanceVO["AutoRenewInstance"].asString() == "true";
|
||||
if(!dataNodeInstancesInstanceVO["SupportEIP"].isNull())
|
||||
instanceVOObject.supportEIP = dataNodeInstancesInstanceVO["SupportEIP"].asString() == "true";
|
||||
if(!dataNodeInstancesInstanceVO["ExpireTime"].isNull())
|
||||
instanceVOObject.expireTime = std::stol(dataNodeInstancesInstanceVO["ExpireTime"].asString());
|
||||
if(!dataNodeInstancesInstanceVO["OrderCreateTime"].isNull())
|
||||
instanceVOObject.orderCreateTime = std::stol(dataNodeInstancesInstanceVO["OrderCreateTime"].asString());
|
||||
if(!dataNodeInstancesInstanceVO["PrivateEndpoint"].isNull())
|
||||
instanceVOObject.privateEndpoint = dataNodeInstancesInstanceVO["PrivateEndpoint"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["StorageSize"].isNull())
|
||||
instanceVOObject.storageSize = std::stoi(dataNodeInstancesInstanceVO["StorageSize"].asString());
|
||||
if(!dataNodeInstancesInstanceVO["MaxEipTps"].isNull())
|
||||
instanceVOObject.maxEipTps = std::stoi(dataNodeInstancesInstanceVO["MaxEipTps"].asString());
|
||||
if(!dataNodeInstancesInstanceVO["InstanceId"].isNull())
|
||||
instanceVOObject.instanceId = dataNodeInstancesInstanceVO["InstanceId"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["InstanceType"].isNull())
|
||||
instanceVOObject.instanceType = dataNodeInstancesInstanceVO["InstanceType"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["PublicEndpoint"].isNull())
|
||||
instanceVOObject.publicEndpoint = dataNodeInstancesInstanceVO["PublicEndpoint"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["ClassicEndpoint"].isNull())
|
||||
instanceVOObject.classicEndpoint = dataNodeInstancesInstanceVO["ClassicEndpoint"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["MaxVhost"].isNull())
|
||||
instanceVOObject.maxVhost = std::stoi(dataNodeInstancesInstanceVO["MaxVhost"].asString());
|
||||
if(!dataNodeInstancesInstanceVO["MaxTps"].isNull())
|
||||
instanceVOObject.maxTps = std::stoi(dataNodeInstancesInstanceVO["MaxTps"].asString());
|
||||
if(!dataNodeInstancesInstanceVO["AutoRenewInstance"].isNull())
|
||||
instanceVOObject.autoRenewInstance = dataNodeInstancesInstanceVO["AutoRenewInstance"].asString() == "true";
|
||||
if(!dataNodeInstancesInstanceVO["InstanceName"].isNull())
|
||||
instanceVOObject.instanceName = dataNodeInstancesInstanceVO["InstanceName"].asString();
|
||||
if(!dataNodeInstancesInstanceVO["MaxQueue"].isNull())
|
||||
instanceVOObject.maxQueue = std::stoi(dataNodeInstancesInstanceVO["MaxQueue"].asString());
|
||||
if(!dataNodeInstancesInstanceVO["OrderType"].isNull())
|
||||
instanceVOObject.orderType = dataNodeInstancesInstanceVO["OrderType"].asString();
|
||||
auto allTagsNode = dataNodeInstancesInstanceVO["Tags"]["tagsItem"];
|
||||
for (auto dataNodeInstancesInstanceVOTagstagsItem : allTagsNode)
|
||||
{
|
||||
Data::InstanceVO::TagsItem tagsObject;
|
||||
if(!dataNodeInstancesInstanceVOTagstagsItem["Key"].isNull())
|
||||
tagsObject.key = dataNodeInstancesInstanceVOTagstagsItem["Key"].asString();
|
||||
if(!dataNodeInstancesInstanceVOTagstagsItem["Value"].isNull())
|
||||
tagsObject.value = dataNodeInstancesInstanceVOTagstagsItem["Value"].asString();
|
||||
instanceVOObject.tags.push_back(tagsObject);
|
||||
}
|
||||
data_.instances.push_back(instanceVOObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListQueueConsumersRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListQueueConsumersRequest;
|
||||
|
||||
ListQueueConsumersRequest::ListQueueConsumersRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "ListQueueConsumers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListQueueConsumersRequest::~ListQueueConsumersRequest()
|
||||
{}
|
||||
|
||||
std::string ListQueueConsumersRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListQueueConsumersRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListQueueConsumersRequest;
|
||||
|
||||
ListQueueConsumersRequest::ListQueueConsumersRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListQueueConsumers") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListQueueConsumersRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
ListQueueConsumersRequest::~ListQueueConsumersRequest() {}
|
||||
|
||||
std::string ListQueueConsumersRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListQueueConsumersRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListQueueConsumersRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListQueueConsumersRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListQueueConsumersRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListQueueConsumersRequest::getQueryCount()const
|
||||
{
|
||||
return queryCount_;
|
||||
void ListQueueConsumersRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListQueueConsumersRequest::setQueryCount(int queryCount)
|
||||
{
|
||||
queryCount_ = queryCount;
|
||||
setParameter("QueryCount", std::to_string(queryCount));
|
||||
int ListQueueConsumersRequest::getQueryCount() const {
|
||||
return queryCount_;
|
||||
}
|
||||
|
||||
std::string ListQueueConsumersRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void ListQueueConsumersRequest::setQueryCount(int queryCount) {
|
||||
queryCount_ = queryCount;
|
||||
setParameter(std::string("QueryCount"), std::to_string(queryCount));
|
||||
}
|
||||
|
||||
void ListQueueConsumersRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter("VirtualHost", virtualHost);
|
||||
std::string ListQueueConsumersRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
std::string ListQueueConsumersRequest::getQueue()const
|
||||
{
|
||||
return queue_;
|
||||
void ListQueueConsumersRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
void ListQueueConsumersRequest::setQueue(const std::string& queue)
|
||||
{
|
||||
queue_ = queue;
|
||||
setParameter("Queue", queue);
|
||||
std::string ListQueueConsumersRequest::getQueue() const {
|
||||
return queue_;
|
||||
}
|
||||
|
||||
void ListQueueConsumersRequest::setQueue(const std::string &queue) {
|
||||
queue_ = queue;
|
||||
setParameter(std::string("Queue"), queue);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void ListQueueConsumersResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allConsumersNode = dataNode["Consumers"]["QueueConsumerVO"];
|
||||
for (auto dataNodeConsumersQueueConsumerVO : allConsumersNode)
|
||||
{
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListQueueUpStreamBindingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListQueueUpStreamBindingsRequest;
|
||||
|
||||
ListQueueUpStreamBindingsRequest::ListQueueUpStreamBindingsRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "ListQueueUpStreamBindings")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListQueueUpStreamBindingsRequest::~ListQueueUpStreamBindingsRequest()
|
||||
{}
|
||||
|
||||
std::string ListQueueUpStreamBindingsRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListQueueUpStreamBindingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListQueueUpStreamBindingsRequest;
|
||||
|
||||
ListQueueUpStreamBindingsRequest::ListQueueUpStreamBindingsRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListQueueUpStreamBindings") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListQueueUpStreamBindingsRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setParameter("QueueName", queueName);
|
||||
ListQueueUpStreamBindingsRequest::~ListQueueUpStreamBindingsRequest() {}
|
||||
|
||||
std::string ListQueueUpStreamBindingsRequest::getQueueName() const {
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
std::string ListQueueUpStreamBindingsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void ListQueueUpStreamBindingsRequest::setQueueName(const std::string &queueName) {
|
||||
queueName_ = queueName;
|
||||
setParameter(std::string("QueueName"), queueName);
|
||||
}
|
||||
|
||||
void ListQueueUpStreamBindingsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string ListQueueUpStreamBindingsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListQueueUpStreamBindingsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListQueueUpStreamBindingsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListQueueUpStreamBindingsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListQueueUpStreamBindingsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListQueueUpStreamBindingsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListQueueUpStreamBindingsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListQueueUpStreamBindingsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListQueueUpStreamBindingsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListQueueUpStreamBindingsRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void ListQueueUpStreamBindingsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListQueueUpStreamBindingsRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter("VirtualHost", virtualHost);
|
||||
std::string ListQueueUpStreamBindingsRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void ListQueueUpStreamBindingsRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void ListQueueUpStreamBindingsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = dataNode["MaxResults"].asString();
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allBindingsNode = dataNode["Bindings"]["BindingVO"];
|
||||
for (auto dataNodeBindingsBindingVO : allBindingsNode)
|
||||
{
|
||||
Data::BindingVO bindingVOObject;
|
||||
if(!dataNodeBindingsBindingVO["SourceExchange"].isNull())
|
||||
bindingVOObject.sourceExchange = dataNodeBindingsBindingVO["SourceExchange"].asString();
|
||||
if(!dataNodeBindingsBindingVO["DestinationName"].isNull())
|
||||
bindingVOObject.destinationName = dataNodeBindingsBindingVO["DestinationName"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingType"].isNull())
|
||||
bindingVOObject.bindingType = dataNodeBindingsBindingVO["BindingType"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingKey"].isNull())
|
||||
bindingVOObject.bindingKey = dataNodeBindingsBindingVO["BindingKey"].asString();
|
||||
if(!dataNodeBindingsBindingVO["Argument"].isNull())
|
||||
bindingVOObject.argument = dataNodeBindingsBindingVO["Argument"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingKey"].isNull())
|
||||
bindingVOObject.bindingKey = dataNodeBindingsBindingVO["BindingKey"].asString();
|
||||
if(!dataNodeBindingsBindingVO["BindingType"].isNull())
|
||||
bindingVOObject.bindingType = dataNodeBindingsBindingVO["BindingType"].asString();
|
||||
if(!dataNodeBindingsBindingVO["DestinationName"].isNull())
|
||||
bindingVOObject.destinationName = dataNodeBindingsBindingVO["DestinationName"].asString();
|
||||
data_.bindings.push_back(bindingVOObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListQueuesRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListQueuesRequest;
|
||||
|
||||
ListQueuesRequest::ListQueuesRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "ListQueues")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListQueuesRequest::~ListQueuesRequest()
|
||||
{}
|
||||
|
||||
std::string ListQueuesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListQueuesRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListQueuesRequest;
|
||||
|
||||
ListQueuesRequest::ListQueuesRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListQueues") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListQueuesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
ListQueuesRequest::~ListQueuesRequest() {}
|
||||
|
||||
std::string ListQueuesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListQueuesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListQueuesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListQueuesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListQueuesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListQueuesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListQueuesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListQueuesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListQueuesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListQueuesRequest::getVirtualHost()const
|
||||
{
|
||||
return virtualHost_;
|
||||
void ListQueuesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListQueuesRequest::setVirtualHost(const std::string& virtualHost)
|
||||
{
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter("VirtualHost", virtualHost);
|
||||
std::string ListQueuesRequest::getVirtualHost() const {
|
||||
return virtualHost_;
|
||||
}
|
||||
|
||||
void ListQueuesRequest::setVirtualHost(const std::string &virtualHost) {
|
||||
virtualHost_ = virtualHost;
|
||||
setParameter(std::string("VirtualHost"), virtualHost);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,30 +40,30 @@ void ListQueuesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allQueuesNode = dataNode["Queues"]["QueueVO"];
|
||||
for (auto dataNodeQueuesQueueVO : allQueuesNode)
|
||||
{
|
||||
Data::QueueVO queueVOObject;
|
||||
if(!dataNodeQueuesQueueVO["ExclusiveState"].isNull())
|
||||
queueVOObject.exclusiveState = dataNodeQueuesQueueVO["ExclusiveState"].asString() == "true";
|
||||
if(!dataNodeQueuesQueueVO["AutoDeleteState"].isNull())
|
||||
queueVOObject.autoDeleteState = dataNodeQueuesQueueVO["AutoDeleteState"].asString() == "true";
|
||||
if(!dataNodeQueuesQueueVO["CreateTime"].isNull())
|
||||
queueVOObject.createTime = std::stol(dataNodeQueuesQueueVO["CreateTime"].asString());
|
||||
if(!dataNodeQueuesQueueVO["Attributes"].isNull())
|
||||
queueVOObject.attributes = dataNodeQueuesQueueVO["Attributes"].asString();
|
||||
if(!dataNodeQueuesQueueVO["VHostName"].isNull())
|
||||
queueVOObject.vHostName = dataNodeQueuesQueueVO["VHostName"].asString();
|
||||
if(!dataNodeQueuesQueueVO["Name"].isNull())
|
||||
queueVOObject.name = dataNodeQueuesQueueVO["Name"].asString();
|
||||
if(!dataNodeQueuesQueueVO["OwnerId"].isNull())
|
||||
queueVOObject.ownerId = dataNodeQueuesQueueVO["OwnerId"].asString();
|
||||
if(!dataNodeQueuesQueueVO["VHostName"].isNull())
|
||||
queueVOObject.vHostName = dataNodeQueuesQueueVO["VHostName"].asString();
|
||||
if(!dataNodeQueuesQueueVO["AutoDeleteState"].isNull())
|
||||
queueVOObject.autoDeleteState = dataNodeQueuesQueueVO["AutoDeleteState"].asString() == "true";
|
||||
if(!dataNodeQueuesQueueVO["ExclusiveState"].isNull())
|
||||
queueVOObject.exclusiveState = dataNodeQueuesQueueVO["ExclusiveState"].asString() == "true";
|
||||
if(!dataNodeQueuesQueueVO["CreateTime"].isNull())
|
||||
queueVOObject.createTime = std::stol(dataNodeQueuesQueueVO["CreateTime"].asString());
|
||||
if(!dataNodeQueuesQueueVO["LastConsumeTime"].isNull())
|
||||
queueVOObject.lastConsumeTime = std::stol(dataNodeQueuesQueueVO["LastConsumeTime"].asString());
|
||||
if(!dataNodeQueuesQueueVO["Attributes"].isNull())
|
||||
queueVOObject.attributes = dataNodeQueuesQueueVO["Attributes"].asString();
|
||||
data_.queues.push_back(queueVOObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListVirtualHostsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListVirtualHostsRequest;
|
||||
|
||||
ListVirtualHostsRequest::ListVirtualHostsRequest() :
|
||||
RpcServiceRequest("amqp-open", "2019-12-12", "ListVirtualHosts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListVirtualHostsRequest::~ListVirtualHostsRequest()
|
||||
{}
|
||||
|
||||
std::string ListVirtualHostsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/ListVirtualHostsRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::ListVirtualHostsRequest;
|
||||
|
||||
ListVirtualHostsRequest::ListVirtualHostsRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "ListVirtualHosts") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListVirtualHostsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
ListVirtualHostsRequest::~ListVirtualHostsRequest() {}
|
||||
|
||||
std::string ListVirtualHostsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListVirtualHostsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListVirtualHostsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListVirtualHostsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListVirtualHostsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListVirtualHostsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListVirtualHostsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListVirtualHostsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListVirtualHostsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListVirtualHostsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void ListVirtualHostsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allVirtualHostsNode = dataNode["VirtualHosts"]["VhostVO"];
|
||||
for (auto dataNodeVirtualHostsVhostVO : allVirtualHostsNode)
|
||||
{
|
||||
|
||||
45
amqp-open/src/model/UpdateInstanceNameRequest.cc
Normal file
45
amqp-open/src/model/UpdateInstanceNameRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/UpdateInstanceNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Amqp_open::Model::UpdateInstanceNameRequest;
|
||||
|
||||
UpdateInstanceNameRequest::UpdateInstanceNameRequest()
|
||||
: RpcServiceRequest("amqp-open", "2019-12-12", "UpdateInstanceName") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateInstanceNameRequest::~UpdateInstanceNameRequest() {}
|
||||
|
||||
std::string UpdateInstanceNameRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpdateInstanceNameRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string UpdateInstanceNameRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
void UpdateInstanceNameRequest::setInstanceName(const std::string &instanceName) {
|
||||
instanceName_ = instanceName;
|
||||
setParameter(std::string("InstanceName"), instanceName);
|
||||
}
|
||||
|
||||
72
amqp-open/src/model/UpdateInstanceNameResult.cc
Normal file
72
amqp-open/src/model/UpdateInstanceNameResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/amqp-open/model/UpdateInstanceNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Amqp_open;
|
||||
using namespace AlibabaCloud::Amqp_open::Model;
|
||||
|
||||
UpdateInstanceNameResult::UpdateInstanceNameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateInstanceNameResult::UpdateInstanceNameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateInstanceNameResult::~UpdateInstanceNameResult()
|
||||
{}
|
||||
|
||||
void UpdateInstanceNameResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateInstanceNameResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateInstanceNameResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateInstanceNameResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateInstanceNameResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,10 @@ set(avatar_public_header
|
||||
set(avatar_public_header_model
|
||||
include/alibabacloud/avatar/model/CancelVideoTaskRequest.h
|
||||
include/alibabacloud/avatar/model/CancelVideoTaskResult.h
|
||||
include/alibabacloud/avatar/model/ClientAuthRequest.h
|
||||
include/alibabacloud/avatar/model/ClientAuthResult.h
|
||||
include/alibabacloud/avatar/model/ClientStartRequest.h
|
||||
include/alibabacloud/avatar/model/ClientStartResult.h
|
||||
include/alibabacloud/avatar/model/CloseTimedResetOperateRequest.h
|
||||
include/alibabacloud/avatar/model/CloseTimedResetOperateResult.h
|
||||
include/alibabacloud/avatar/model/Create2dAvatarRequest.h
|
||||
@@ -45,6 +49,8 @@ set(avatar_public_header_model
|
||||
include/alibabacloud/avatar/model/QueryTimedResetOperateStatusResult.h
|
||||
include/alibabacloud/avatar/model/QueryVideoTaskInfoRequest.h
|
||||
include/alibabacloud/avatar/model/QueryVideoTaskInfoResult.h
|
||||
include/alibabacloud/avatar/model/Render3dAvatarRequest.h
|
||||
include/alibabacloud/avatar/model/Render3dAvatarResult.h
|
||||
include/alibabacloud/avatar/model/SendCommandRequest.h
|
||||
include/alibabacloud/avatar/model/SendCommandResult.h
|
||||
include/alibabacloud/avatar/model/SendMessageRequest.h
|
||||
@@ -63,6 +69,8 @@ set(avatar_public_header_model
|
||||
include/alibabacloud/avatar/model/SubmitAudioTo2DAvatarVideoTaskResult.h
|
||||
include/alibabacloud/avatar/model/SubmitAudioTo3DAvatarVideoTaskRequest.h
|
||||
include/alibabacloud/avatar/model/SubmitAudioTo3DAvatarVideoTaskResult.h
|
||||
include/alibabacloud/avatar/model/SubmitAvatarVideoTaskRequest.h
|
||||
include/alibabacloud/avatar/model/SubmitAvatarVideoTaskResult.h
|
||||
include/alibabacloud/avatar/model/SubmitTextTo2DAvatarVideoTaskRequest.h
|
||||
include/alibabacloud/avatar/model/SubmitTextTo2DAvatarVideoTaskResult.h
|
||||
include/alibabacloud/avatar/model/SubmitTextTo3DAvatarVideoTaskRequest.h
|
||||
@@ -74,6 +82,10 @@ set(avatar_src
|
||||
src/AvatarClient.cc
|
||||
src/model/CancelVideoTaskRequest.cc
|
||||
src/model/CancelVideoTaskResult.cc
|
||||
src/model/ClientAuthRequest.cc
|
||||
src/model/ClientAuthResult.cc
|
||||
src/model/ClientStartRequest.cc
|
||||
src/model/ClientStartResult.cc
|
||||
src/model/CloseTimedResetOperateRequest.cc
|
||||
src/model/CloseTimedResetOperateResult.cc
|
||||
src/model/Create2dAvatarRequest.cc
|
||||
@@ -96,6 +108,8 @@ set(avatar_src
|
||||
src/model/QueryTimedResetOperateStatusResult.cc
|
||||
src/model/QueryVideoTaskInfoRequest.cc
|
||||
src/model/QueryVideoTaskInfoResult.cc
|
||||
src/model/Render3dAvatarRequest.cc
|
||||
src/model/Render3dAvatarResult.cc
|
||||
src/model/SendCommandRequest.cc
|
||||
src/model/SendCommandResult.cc
|
||||
src/model/SendMessageRequest.cc
|
||||
@@ -114,6 +128,8 @@ set(avatar_src
|
||||
src/model/SubmitAudioTo2DAvatarVideoTaskResult.cc
|
||||
src/model/SubmitAudioTo3DAvatarVideoTaskRequest.cc
|
||||
src/model/SubmitAudioTo3DAvatarVideoTaskResult.cc
|
||||
src/model/SubmitAvatarVideoTaskRequest.cc
|
||||
src/model/SubmitAvatarVideoTaskResult.cc
|
||||
src/model/SubmitTextTo2DAvatarVideoTaskRequest.cc
|
||||
src/model/SubmitTextTo2DAvatarVideoTaskResult.cc
|
||||
src/model/SubmitTextTo3DAvatarVideoTaskRequest.cc
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
#include "AvatarExport.h"
|
||||
#include "model/CancelVideoTaskRequest.h"
|
||||
#include "model/CancelVideoTaskResult.h"
|
||||
#include "model/ClientAuthRequest.h"
|
||||
#include "model/ClientAuthResult.h"
|
||||
#include "model/ClientStartRequest.h"
|
||||
#include "model/ClientStartResult.h"
|
||||
#include "model/CloseTimedResetOperateRequest.h"
|
||||
#include "model/CloseTimedResetOperateResult.h"
|
||||
#include "model/Create2dAvatarRequest.h"
|
||||
@@ -46,6 +50,8 @@
|
||||
#include "model/QueryTimedResetOperateStatusResult.h"
|
||||
#include "model/QueryVideoTaskInfoRequest.h"
|
||||
#include "model/QueryVideoTaskInfoResult.h"
|
||||
#include "model/Render3dAvatarRequest.h"
|
||||
#include "model/Render3dAvatarResult.h"
|
||||
#include "model/SendCommandRequest.h"
|
||||
#include "model/SendCommandResult.h"
|
||||
#include "model/SendMessageRequest.h"
|
||||
@@ -64,6 +70,8 @@
|
||||
#include "model/SubmitAudioTo2DAvatarVideoTaskResult.h"
|
||||
#include "model/SubmitAudioTo3DAvatarVideoTaskRequest.h"
|
||||
#include "model/SubmitAudioTo3DAvatarVideoTaskResult.h"
|
||||
#include "model/SubmitAvatarVideoTaskRequest.h"
|
||||
#include "model/SubmitAvatarVideoTaskResult.h"
|
||||
#include "model/SubmitTextTo2DAvatarVideoTaskRequest.h"
|
||||
#include "model/SubmitTextTo2DAvatarVideoTaskResult.h"
|
||||
#include "model/SubmitTextTo3DAvatarVideoTaskRequest.h"
|
||||
@@ -82,6 +90,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CancelVideoTaskResult> CancelVideoTaskOutcome;
|
||||
typedef std::future<CancelVideoTaskOutcome> CancelVideoTaskOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::CancelVideoTaskRequest&, const CancelVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelVideoTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::ClientAuthResult> ClientAuthOutcome;
|
||||
typedef std::future<ClientAuthOutcome> ClientAuthOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::ClientAuthRequest&, const ClientAuthOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClientAuthAsyncHandler;
|
||||
typedef Outcome<Error, Model::ClientStartResult> ClientStartOutcome;
|
||||
typedef std::future<ClientStartOutcome> ClientStartOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::ClientStartRequest&, const ClientStartOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClientStartAsyncHandler;
|
||||
typedef Outcome<Error, Model::CloseTimedResetOperateResult> CloseTimedResetOperateOutcome;
|
||||
typedef std::future<CloseTimedResetOperateOutcome> CloseTimedResetOperateOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::CloseTimedResetOperateRequest&, const CloseTimedResetOperateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseTimedResetOperateAsyncHandler;
|
||||
@@ -115,6 +129,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryVideoTaskInfoResult> QueryVideoTaskInfoOutcome;
|
||||
typedef std::future<QueryVideoTaskInfoOutcome> QueryVideoTaskInfoOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::QueryVideoTaskInfoRequest&, const QueryVideoTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryVideoTaskInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::Render3dAvatarResult> Render3dAvatarOutcome;
|
||||
typedef std::future<Render3dAvatarOutcome> Render3dAvatarOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::Render3dAvatarRequest&, const Render3dAvatarOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Render3dAvatarAsyncHandler;
|
||||
typedef Outcome<Error, Model::SendCommandResult> SendCommandOutcome;
|
||||
typedef std::future<SendCommandOutcome> SendCommandOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SendCommandRequest&, const SendCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendCommandAsyncHandler;
|
||||
@@ -142,6 +159,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SubmitAudioTo3DAvatarVideoTaskResult> SubmitAudioTo3DAvatarVideoTaskOutcome;
|
||||
typedef std::future<SubmitAudioTo3DAvatarVideoTaskOutcome> SubmitAudioTo3DAvatarVideoTaskOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SubmitAudioTo3DAvatarVideoTaskRequest&, const SubmitAudioTo3DAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitAudioTo3DAvatarVideoTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitAvatarVideoTaskResult> SubmitAvatarVideoTaskOutcome;
|
||||
typedef std::future<SubmitAvatarVideoTaskOutcome> SubmitAvatarVideoTaskOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SubmitAvatarVideoTaskRequest&, const SubmitAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitAvatarVideoTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitTextTo2DAvatarVideoTaskResult> SubmitTextTo2DAvatarVideoTaskOutcome;
|
||||
typedef std::future<SubmitTextTo2DAvatarVideoTaskOutcome> SubmitTextTo2DAvatarVideoTaskOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::SubmitTextTo2DAvatarVideoTaskRequest&, const SubmitTextTo2DAvatarVideoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitTextTo2DAvatarVideoTaskAsyncHandler;
|
||||
@@ -159,6 +179,12 @@ namespace AlibabaCloud
|
||||
CancelVideoTaskOutcome cancelVideoTask(const Model::CancelVideoTaskRequest &request)const;
|
||||
void cancelVideoTaskAsync(const Model::CancelVideoTaskRequest& request, const CancelVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelVideoTaskOutcomeCallable cancelVideoTaskCallable(const Model::CancelVideoTaskRequest& request) const;
|
||||
ClientAuthOutcome clientAuth(const Model::ClientAuthRequest &request)const;
|
||||
void clientAuthAsync(const Model::ClientAuthRequest& request, const ClientAuthAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ClientAuthOutcomeCallable clientAuthCallable(const Model::ClientAuthRequest& request) const;
|
||||
ClientStartOutcome clientStart(const Model::ClientStartRequest &request)const;
|
||||
void clientStartAsync(const Model::ClientStartRequest& request, const ClientStartAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ClientStartOutcomeCallable clientStartCallable(const Model::ClientStartRequest& request) const;
|
||||
CloseTimedResetOperateOutcome closeTimedResetOperate(const Model::CloseTimedResetOperateRequest &request)const;
|
||||
void closeTimedResetOperateAsync(const Model::CloseTimedResetOperateRequest& request, const CloseTimedResetOperateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseTimedResetOperateOutcomeCallable closeTimedResetOperateCallable(const Model::CloseTimedResetOperateRequest& request) const;
|
||||
@@ -192,6 +218,9 @@ namespace AlibabaCloud
|
||||
QueryVideoTaskInfoOutcome queryVideoTaskInfo(const Model::QueryVideoTaskInfoRequest &request)const;
|
||||
void queryVideoTaskInfoAsync(const Model::QueryVideoTaskInfoRequest& request, const QueryVideoTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryVideoTaskInfoOutcomeCallable queryVideoTaskInfoCallable(const Model::QueryVideoTaskInfoRequest& request) const;
|
||||
Render3dAvatarOutcome render3dAvatar(const Model::Render3dAvatarRequest &request)const;
|
||||
void render3dAvatarAsync(const Model::Render3dAvatarRequest& request, const Render3dAvatarAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
Render3dAvatarOutcomeCallable render3dAvatarCallable(const Model::Render3dAvatarRequest& request) const;
|
||||
SendCommandOutcome sendCommand(const Model::SendCommandRequest &request)const;
|
||||
void sendCommandAsync(const Model::SendCommandRequest& request, const SendCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SendCommandOutcomeCallable sendCommandCallable(const Model::SendCommandRequest& request) const;
|
||||
@@ -219,6 +248,9 @@ namespace AlibabaCloud
|
||||
SubmitAudioTo3DAvatarVideoTaskOutcome submitAudioTo3DAvatarVideoTask(const Model::SubmitAudioTo3DAvatarVideoTaskRequest &request)const;
|
||||
void submitAudioTo3DAvatarVideoTaskAsync(const Model::SubmitAudioTo3DAvatarVideoTaskRequest& request, const SubmitAudioTo3DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitAudioTo3DAvatarVideoTaskOutcomeCallable submitAudioTo3DAvatarVideoTaskCallable(const Model::SubmitAudioTo3DAvatarVideoTaskRequest& request) const;
|
||||
SubmitAvatarVideoTaskOutcome submitAvatarVideoTask(const Model::SubmitAvatarVideoTaskRequest &request)const;
|
||||
void submitAvatarVideoTaskAsync(const Model::SubmitAvatarVideoTaskRequest& request, const SubmitAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitAvatarVideoTaskOutcomeCallable submitAvatarVideoTaskCallable(const Model::SubmitAvatarVideoTaskRequest& request) const;
|
||||
SubmitTextTo2DAvatarVideoTaskOutcome submitTextTo2DAvatarVideoTask(const Model::SubmitTextTo2DAvatarVideoTaskRequest &request)const;
|
||||
void submitTextTo2DAvatarVideoTaskAsync(const Model::SubmitTextTo2DAvatarVideoTaskRequest& request, const SubmitTextTo2DAvatarVideoTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitTextTo2DAvatarVideoTaskOutcomeCallable submitTextTo2DAvatarVideoTaskCallable(const Model::SubmitTextTo2DAvatarVideoTaskRequest& request) const;
|
||||
|
||||
57
avatar/include/alibabacloud/avatar/model/ClientAuthRequest.h
Normal file
57
avatar/include/alibabacloud/avatar/model/ClientAuthRequest.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHREQUEST_H_
|
||||
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientAuthRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ClientAuthRequest();
|
||||
~ClientAuthRequest();
|
||||
std::string getDeviceId() const;
|
||||
void setDeviceId(const std::string &deviceId);
|
||||
std::string getDeviceType() const;
|
||||
void setDeviceType(const std::string &deviceType);
|
||||
std::string getLicense() const;
|
||||
void setLicense(const std::string &license);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getDeviceInfo() const;
|
||||
void setDeviceInfo(const std::string &deviceInfo);
|
||||
|
||||
private:
|
||||
std::string deviceId_;
|
||||
std::string deviceType_;
|
||||
std::string license_;
|
||||
std::string appId_;
|
||||
long tenantId_;
|
||||
std::string deviceInfo_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHREQUEST_H_
|
||||
55
avatar/include/alibabacloud/avatar/model/ClientAuthResult.h
Normal file
55
avatar/include/alibabacloud/avatar/model/ClientAuthResult.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientAuthResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ClientAuthResult();
|
||||
explicit ClientAuthResult(const std::string &payload);
|
||||
~ClientAuthResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_CLIENTAUTHRESULT_H_
|
||||
@@ -14,32 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OCR_MODEL_RECOGNIZESTAMPREQUEST_H_
|
||||
#define ALIBABACLOUD_OCR_MODEL_RECOGNIZESTAMPREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/ocr/OcrExport.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Ocr {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_OCR_EXPORT RecognizeStampRequest : public RpcServiceRequest {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientStartRequest : public RpcServiceRequest {
|
||||
public:
|
||||
RecognizeStampRequest();
|
||||
~RecognizeStampRequest();
|
||||
int getImageType() const;
|
||||
void setImageType(int imageType);
|
||||
std::string getImageURL() const;
|
||||
void setImageURL(const std::string &imageURL);
|
||||
ClientStartRequest();
|
||||
~ClientStartRequest();
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
|
||||
private:
|
||||
int imageType_;
|
||||
std::string imageURL_;
|
||||
std::string appId_;
|
||||
long tenantId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ocr
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_OCR_MODEL_RECOGNIZESTAMPREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTREQUEST_H_
|
||||
61
avatar/include/alibabacloud/avatar/model/ClientStartResult.h
Normal file
61
avatar/include/alibabacloud/avatar/model/ClientStartResult.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTRESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientStartResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string imToken;
|
||||
};
|
||||
|
||||
|
||||
ClientStartResult();
|
||||
explicit ClientStartResult(const std::string &payload);
|
||||
~ClientStartResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_CLIENTSTARTRESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user