Compare commits

..

1 Commits

Author SHA1 Message Date
Jackson Tian
6dd2cf4afe test: add macosx into jobs 2023-09-14 14:39:57 +08:00
4010 changed files with 10954 additions and 249842 deletions

View File

@@ -8,14 +8,22 @@ on:
jobs:
test:
runs-on: ubuntu-latest
name: CPP
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macosx-latest]
runs-on: ${{ matrix.os }}
env:
CPLUS_INCLUDE_PATH: "/usr/local/include/:/usr/include/jsoncpp/:/usr/local/opt/openssl/include/:/usr/lib/"
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
- 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: 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)

View File

@@ -46,7 +46,7 @@ Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负
```bash
# use yum
yum install jsoncpp-devel openssl-devel libuuid-devel libcurl-devel
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
# use dnf
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel

View File

@@ -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 libuuid-devel libcurl-devel
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
# use dnf
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel

View File

@@ -1 +1 @@
1.36.1881
1.36.1758

View File

@@ -135,6 +135,8 @@ 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
@@ -161,14 +163,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
@@ -342,6 +344,8 @@ 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
@@ -368,14 +372,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

View File

@@ -136,6 +136,8 @@
#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"
@@ -162,14 +164,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"
@@ -406,6 +408,9 @@ 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;
@@ -445,9 +450,6 @@ 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;
@@ -457,6 +459,9 @@ 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;
@@ -717,6 +722,9 @@ 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;
@@ -756,9 +764,6 @@ 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;
@@ -768,6 +773,9 @@ 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;

View File

@@ -32,6 +32,12 @@ 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;
@@ -40,31 +46,19 @@ 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 &regionId);
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

View File

@@ -37,7 +37,6 @@ namespace AlibabaCloud
struct SeriesItem
{
std::vector<std::string> values;
std::string tags;
std::string name;
};
std::vector<PerformanceItem::SeriesItem> series;

View File

@@ -14,44 +14,44 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLSAMPLESREQUEST_H_
#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLSAMPLESREQUEST_H_
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
#include <alibabacloud/adb/AdbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace OceanBasePro {
namespace Adb {
namespace Model {
class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeSQLSamplesRequest : public RpcServiceRequest {
class ALIBABACLOUD_ADB_EXPORT DescribeSQLPatternAttributeRequest : public RpcServiceRequest {
public:
DescribeSQLSamplesRequest();
~DescribeSQLSamplesRequest();
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getTenantId() const;
void setTenantId(const std::string &tenantId);
std::string getSqlId() const;
void setSqlId(const std::string &sqlId);
DescribeSQLPatternAttributeRequest();
~DescribeSQLPatternAttributeRequest();
std::string getDBClusterId() const;
void setDBClusterId(const std::string &dBClusterId);
long getPatternId() const;
void setPatternId(long patternId);
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getDbName() const;
void setDbName(const std::string &dbName);
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getLang() const;
void setLang(const std::string &lang);
private:
std::string startTime_;
std::string tenantId_;
std::string sqlId_;
std::string dBClusterId_;
long patternId_;
std::string endTime_;
std::string instanceId_;
std::string dbName_;
std::string startTime_;
std::string regionId_;
std::string lang_;
};
} // namespace Model
} // namespace OceanBasePro
} // namespace Adb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBESQLSAMPLESREQUEST_H_
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_

View File

@@ -14,44 +14,46 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEINSTANCERECOVERTIMERESULT_H_
#define ALIBABACLOUD_DDS_MODEL_DESCRIBEINSTANCERECOVERTIMERESULT_H_
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_
#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dds/DdsExport.h>
#include <alibabacloud/adb/AdbExport.h>
namespace AlibabaCloud
{
namespace Dds
namespace Adb
{
namespace Model
{
class ALIBABACLOUD_DDS_EXPORT DescribeInstanceRecoverTimeResult : public ServiceResult
class ALIBABACLOUD_ADB_EXPORT DescribeSQLPatternAttributeResult : public ServiceResult
{
public:
struct AvailableRestoreTime
struct PatternDetail
{
std::string restoreEndTime;
std::string restoreBeginTime;
std::string restoreType;
std::string sQLPattern;
std::string totalQueryTime;
std::string averageMemory;
long queryCount;
std::string averageQueryTime;
};
DescribeInstanceRecoverTimeResult();
explicit DescribeInstanceRecoverTimeResult(const std::string &payload);
~DescribeInstanceRecoverTimeResult();
std::vector<AvailableRestoreTime> getRestoreRanges()const;
DescribeSQLPatternAttributeResult();
explicit DescribeSQLPatternAttributeResult(const std::string &payload);
~DescribeSQLPatternAttributeResult();
PatternDetail getPatternDetail()const;
protected:
void parse(const std::string &payload);
private:
std::vector<AvailableRestoreTime> restoreRanges_;
PatternDetail patternDetail_;
};
}
}
}
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEINSTANCERECOVERTIMERESULT_H_
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_

View File

@@ -1,69 +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_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 &regionId);
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_

View File

@@ -1,69 +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_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_

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 &regionId);
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_

View File

@@ -14,36 +14,38 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DDS_MODEL_CREATEACCOUNTRESULT_H_
#define ALIBABACLOUD_DDS_MODEL_CREATEACCOUNTRESULT_H_
#ifndef ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_
#define ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dds/DdsExport.h>
#include <alibabacloud/adb/AdbExport.h>
namespace AlibabaCloud
{
namespace Dds
namespace Adb
{
namespace Model
{
class ALIBABACLOUD_DDS_EXPORT CreateAccountResult : public ServiceResult
class ALIBABACLOUD_ADB_EXPORT DryRunClusterResult : public ServiceResult
{
public:
CreateAccountResult();
explicit CreateAccountResult(const std::string &payload);
~CreateAccountResult();
DryRunClusterResult();
explicit DryRunClusterResult(const std::string &payload);
~DryRunClusterResult();
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DDS_MODEL_CREATEACCOUNTRESULT_H_
#endif // !ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_

View File

@@ -2103,6 +2103,42 @@ 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();
@@ -2571,42 +2607,6 @@ 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,6 +2715,42 @@ 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();

View File

@@ -34,6 +34,33 @@ 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_;
}
@@ -70,15 +97,6 @@ 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_;
}
@@ -88,39 +106,3 @@ 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 &regionId) {
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);
}

View File

@@ -53,8 +53,6 @@ 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());

View File

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

View File

@@ -0,0 +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.
*/
#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_;
}

View File

@@ -1,117 +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/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 &regionId) {
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);
}

View File

@@ -1,78 +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/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_;
}

View File

@@ -0,0 +1,171 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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 &regionId) {
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);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/cloud-siem/model/GetQuickQueryResult.h>
#include <alibabacloud/adb/model/DryRunClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
using namespace AlibabaCloud::Adb;
using namespace AlibabaCloud::Adb::Model;
GetQuickQueryResult::GetQuickQueryResult() :
DryRunClusterResult::DryRunClusterResult() :
ServiceResult()
{}
GetQuickQueryResult::GetQuickQueryResult(const std::string &payload) :
DryRunClusterResult::DryRunClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetQuickQueryResult::~GetQuickQueryResult()
DryRunClusterResult::~DryRunClusterResult()
{}
void GetQuickQueryResult::parse(const std::string &payload)
void DryRunClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetQuickQueryResult::getData()const
bool DryRunClusterResult::getSuccess()const
{
return data_;
return success_;
}

View File

@@ -1,102 +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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(aigen_public_header
include/alibabacloud/aigen/AigenClient.h
include/alibabacloud/aigen/AigenExport.h )
set(aigen_public_header_model
include/alibabacloud/aigen/model/GenerateCosplayImageRequest.h
include/alibabacloud/aigen/model/GenerateCosplayImageResult.h
include/alibabacloud/aigen/model/GenerateTextDeformationRequest.h
include/alibabacloud/aigen/model/GenerateTextDeformationResult.h
include/alibabacloud/aigen/model/GenerateTextTextureRequest.h
include/alibabacloud/aigen/model/GenerateTextTextureResult.h
include/alibabacloud/aigen/model/InteractiveFullSegmentationRequest.h
include/alibabacloud/aigen/model/InteractiveFullSegmentationResult.h
include/alibabacloud/aigen/model/InteractiveScribbleSegmentationRequest.h
include/alibabacloud/aigen/model/InteractiveScribbleSegmentationResult.h )
set(aigen_src
src/AigenClient.cc
src/model/GenerateCosplayImageRequest.cc
src/model/GenerateCosplayImageResult.cc
src/model/GenerateTextDeformationRequest.cc
src/model/GenerateTextDeformationResult.cc
src/model/GenerateTextTextureRequest.cc
src/model/GenerateTextTextureResult.cc
src/model/InteractiveFullSegmentationRequest.cc
src/model/InteractiveFullSegmentationResult.cc
src/model/InteractiveScribbleSegmentationRequest.cc
src/model/InteractiveScribbleSegmentationResult.cc )
add_library(aigen ${LIB_TYPE}
${aigen_public_header}
${aigen_public_header_model}
${aigen_src})
set_target_properties(aigen
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}aigen
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(aigen
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_AIGEN_LIBRARY)
endif()
target_include_directories(aigen
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(aigen
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(aigen
jsoncpp)
target_include_directories(aigen
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(aigen
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(aigen
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(aigen
PRIVATE /usr/include/jsoncpp)
target_link_libraries(aigen
jsoncpp)
endif()
install(FILES ${aigen_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aigen)
install(FILES ${aigen_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aigen/model)
install(TARGETS aigen
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -1,86 +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_AIGEN_AIGENCLIENT_H_
#define ALIBABACLOUD_AIGEN_AIGENCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "AigenExport.h"
#include "model/GenerateCosplayImageRequest.h"
#include "model/GenerateCosplayImageResult.h"
#include "model/GenerateTextDeformationRequest.h"
#include "model/GenerateTextDeformationResult.h"
#include "model/GenerateTextTextureRequest.h"
#include "model/GenerateTextTextureResult.h"
#include "model/InteractiveFullSegmentationRequest.h"
#include "model/InteractiveFullSegmentationResult.h"
#include "model/InteractiveScribbleSegmentationRequest.h"
#include "model/InteractiveScribbleSegmentationResult.h"
namespace AlibabaCloud
{
namespace Aigen
{
class ALIBABACLOUD_AIGEN_EXPORT AigenClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::GenerateCosplayImageResult> GenerateCosplayImageOutcome;
typedef std::future<GenerateCosplayImageOutcome> GenerateCosplayImageOutcomeCallable;
typedef std::function<void(const AigenClient*, const Model::GenerateCosplayImageRequest&, const GenerateCosplayImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateCosplayImageAsyncHandler;
typedef Outcome<Error, Model::GenerateTextDeformationResult> GenerateTextDeformationOutcome;
typedef std::future<GenerateTextDeformationOutcome> GenerateTextDeformationOutcomeCallable;
typedef std::function<void(const AigenClient*, const Model::GenerateTextDeformationRequest&, const GenerateTextDeformationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateTextDeformationAsyncHandler;
typedef Outcome<Error, Model::GenerateTextTextureResult> GenerateTextTextureOutcome;
typedef std::future<GenerateTextTextureOutcome> GenerateTextTextureOutcomeCallable;
typedef std::function<void(const AigenClient*, const Model::GenerateTextTextureRequest&, const GenerateTextTextureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateTextTextureAsyncHandler;
typedef Outcome<Error, Model::InteractiveFullSegmentationResult> InteractiveFullSegmentationOutcome;
typedef std::future<InteractiveFullSegmentationOutcome> InteractiveFullSegmentationOutcomeCallable;
typedef std::function<void(const AigenClient*, const Model::InteractiveFullSegmentationRequest&, const InteractiveFullSegmentationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InteractiveFullSegmentationAsyncHandler;
typedef Outcome<Error, Model::InteractiveScribbleSegmentationResult> InteractiveScribbleSegmentationOutcome;
typedef std::future<InteractiveScribbleSegmentationOutcome> InteractiveScribbleSegmentationOutcomeCallable;
typedef std::function<void(const AigenClient*, const Model::InteractiveScribbleSegmentationRequest&, const InteractiveScribbleSegmentationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InteractiveScribbleSegmentationAsyncHandler;
AigenClient(const Credentials &credentials, const ClientConfiguration &configuration);
AigenClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
AigenClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~AigenClient();
GenerateCosplayImageOutcome generateCosplayImage(const Model::GenerateCosplayImageRequest &request)const;
void generateCosplayImageAsync(const Model::GenerateCosplayImageRequest& request, const GenerateCosplayImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GenerateCosplayImageOutcomeCallable generateCosplayImageCallable(const Model::GenerateCosplayImageRequest& request) const;
GenerateTextDeformationOutcome generateTextDeformation(const Model::GenerateTextDeformationRequest &request)const;
void generateTextDeformationAsync(const Model::GenerateTextDeformationRequest& request, const GenerateTextDeformationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GenerateTextDeformationOutcomeCallable generateTextDeformationCallable(const Model::GenerateTextDeformationRequest& request) const;
GenerateTextTextureOutcome generateTextTexture(const Model::GenerateTextTextureRequest &request)const;
void generateTextTextureAsync(const Model::GenerateTextTextureRequest& request, const GenerateTextTextureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GenerateTextTextureOutcomeCallable generateTextTextureCallable(const Model::GenerateTextTextureRequest& request) const;
InteractiveFullSegmentationOutcome interactiveFullSegmentation(const Model::InteractiveFullSegmentationRequest &request)const;
void interactiveFullSegmentationAsync(const Model::InteractiveFullSegmentationRequest& request, const InteractiveFullSegmentationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InteractiveFullSegmentationOutcomeCallable interactiveFullSegmentationCallable(const Model::InteractiveFullSegmentationRequest& request) const;
InteractiveScribbleSegmentationOutcome interactiveScribbleSegmentation(const Model::InteractiveScribbleSegmentationRequest &request)const;
void interactiveScribbleSegmentationAsync(const Model::InteractiveScribbleSegmentationRequest& request, const InteractiveScribbleSegmentationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InteractiveScribbleSegmentationOutcomeCallable interactiveScribbleSegmentationCallable(const Model::InteractiveScribbleSegmentationRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_AIGEN_AIGENCLIENT_H_

View File

@@ -1,32 +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_AIGEN_AIGENEXPORT_H_
#define ALIBABACLOUD_AIGEN_AIGENEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_AIGEN_LIBRARY)
# define ALIBABACLOUD_AIGEN_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_AIGEN_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_AIGEN_EXPORT
#endif
#endif // !ALIBABACLOUD_AIGEN_AIGENEXPORT_H_

View File

@@ -1,51 +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_AIGEN_MODEL_GENERATECOSPLAYIMAGEREQUEST_H_
#define ALIBABACLOUD_AIGEN_MODEL_GENERATECOSPLAYIMAGEREQUEST_H_
#include <alibabacloud/aigen/AigenExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Aigen {
namespace Model {
class ALIBABACLOUD_AIGEN_EXPORT GenerateCosplayImageRequest : public RpcServiceRequest {
public:
GenerateCosplayImageRequest();
~GenerateCosplayImageRequest();
std::string getTemplateImageUrl() const;
void setTemplateImageUrl(const std::string &templateImageUrl);
std::string getFaceImageUrl() const;
void setFaceImageUrl(const std::string &faceImageUrl);
bool getAsync() const;
void setAsync(bool async);
long getStyle() const;
void setStyle(long style);
private:
std::string templateImageUrl_;
std::string faceImageUrl_;
bool async_;
long style_;
};
} // namespace Model
} // namespace Aigen
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATECOSPLAYIMAGEREQUEST_H_

View File

@@ -1,59 +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_AIGEN_MODEL_GENERATECOSPLAYIMAGERESULT_H_
#define ALIBABACLOUD_AIGEN_MODEL_GENERATECOSPLAYIMAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/aigen/AigenExport.h>
namespace AlibabaCloud
{
namespace Aigen
{
namespace Model
{
class ALIBABACLOUD_AIGEN_EXPORT GenerateCosplayImageResult : public ServiceResult
{
public:
struct Data
{
std::string resultUrl;
};
GenerateCosplayImageResult();
explicit GenerateCosplayImageResult(const std::string &payload);
~GenerateCosplayImageResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATECOSPLAYIMAGERESULT_H_

View File

@@ -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.
*/
#ifndef ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTDEFORMATIONREQUEST_H_
#define ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTDEFORMATIONREQUEST_H_
#include <alibabacloud/aigen/AigenExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Aigen {
namespace Model {
class ALIBABACLOUD_AIGEN_EXPORT GenerateTextDeformationRequest : public RpcServiceRequest {
public:
GenerateTextDeformationRequest();
~GenerateTextDeformationRequest();
std::string getTextContent() const;
void setTextContent(const std::string &textContent);
std::string getFontName() const;
void setFontName(const std::string &fontName);
std::string getTtfUrl() const;
void setTtfUrl(const std::string &ttfUrl);
long getN() const;
void setN(long n);
bool getAsync() const;
void setAsync(bool async);
std::string getPrompt() const;
void setPrompt(const std::string &prompt);
std::string getOutputImageRatio() const;
void setOutputImageRatio(const std::string &outputImageRatio);
private:
std::string textContent_;
std::string fontName_;
std::string ttfUrl_;
long n_;
bool async_;
std::string prompt_;
std::string outputImageRatio_;
};
} // namespace Model
} // namespace Aigen
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTDEFORMATIONREQUEST_H_

View File

@@ -1,57 +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_AIGEN_MODEL_GENERATETEXTDEFORMATIONRESULT_H_
#define ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTDEFORMATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/aigen/AigenExport.h>
namespace AlibabaCloud
{
namespace Aigen
{
namespace Model
{
class ALIBABACLOUD_AIGEN_EXPORT GenerateTextDeformationResult : public ServiceResult
{
public:
struct Data
{
std::string resultUrl;
};
GenerateTextDeformationResult();
explicit GenerateTextDeformationResult(const std::string &payload);
~GenerateTextDeformationResult();
std::string getMessage()const;
Data getData()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTDEFORMATIONRESULT_H_

View File

@@ -1,72 +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_AIGEN_MODEL_GENERATETEXTTEXTUREREQUEST_H_
#define ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTTEXTUREREQUEST_H_
#include <alibabacloud/aigen/AigenExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Aigen {
namespace Model {
class ALIBABACLOUD_AIGEN_EXPORT GenerateTextTextureRequest : public RpcServiceRequest {
public:
GenerateTextTextureRequest();
~GenerateTextTextureRequest();
std::string getTextContent() const;
void setTextContent(const std::string &textContent);
std::string getTextureStyle() const;
void setTextureStyle(const std::string &textureStyle);
std::string getFontName() const;
void setFontName(const std::string &fontName);
std::string getTtfUrl() const;
void setTtfUrl(const std::string &ttfUrl);
long getN() const;
void setN(long n);
bool getAsync() const;
void setAsync(bool async);
bool getAlphaChannel() const;
void setAlphaChannel(bool alphaChannel);
std::string getImageUrl() const;
void setImageUrl(const std::string &imageUrl);
long getImageShortSize() const;
void setImageShortSize(long imageShortSize);
std::string getPrompt() const;
void setPrompt(const std::string &prompt);
std::string getOutputImageRatio() const;
void setOutputImageRatio(const std::string &outputImageRatio);
private:
std::string textContent_;
std::string textureStyle_;
std::string fontName_;
std::string ttfUrl_;
long n_;
bool async_;
bool alphaChannel_;
std::string imageUrl_;
long imageShortSize_;
std::string prompt_;
std::string outputImageRatio_;
};
} // namespace Model
} // namespace Aigen
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTTEXTUREREQUEST_H_

View File

@@ -1,48 +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_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONREQUEST_H_
#define ALIBABACLOUD_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONREQUEST_H_
#include <alibabacloud/aigen/AigenExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Aigen {
namespace Model {
class ALIBABACLOUD_AIGEN_EXPORT InteractiveFullSegmentationRequest : public RpcServiceRequest {
public:
InteractiveFullSegmentationRequest();
~InteractiveFullSegmentationRequest();
std::string getReturnFormat() const;
void setReturnFormat(const std::string &returnFormat);
bool getAsync() const;
void setAsync(bool async);
std::string getImageUrl() const;
void setImageUrl(const std::string &imageUrl);
private:
std::string returnFormat_;
bool async_;
std::string imageUrl_;
};
} // namespace Model
} // namespace Aigen
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONREQUEST_H_

View File

@@ -1,59 +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_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONRESULT_H_
#define ALIBABACLOUD_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/aigen/AigenExport.h>
namespace AlibabaCloud
{
namespace Aigen
{
namespace Model
{
class ALIBABACLOUD_AIGEN_EXPORT InteractiveFullSegmentationResult : public ServiceResult
{
public:
struct Data
{
std::string resultUrl;
};
InteractiveFullSegmentationResult();
explicit InteractiveFullSegmentationResult(const std::string &payload);
~InteractiveFullSegmentationResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONRESULT_H_

View File

@@ -1,66 +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_AIGEN_MODEL_INTERACTIVESCRIBBLESEGMENTATIONREQUEST_H_
#define ALIBABACLOUD_AIGEN_MODEL_INTERACTIVESCRIBBLESEGMENTATIONREQUEST_H_
#include <alibabacloud/aigen/AigenExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Aigen {
namespace Model {
class ALIBABACLOUD_AIGEN_EXPORT InteractiveScribbleSegmentationRequest : public RpcServiceRequest {
public:
InteractiveScribbleSegmentationRequest();
~InteractiveScribbleSegmentationRequest();
std::string getPosScribbleImageUrl() const;
void setPosScribbleImageUrl(const std::string &posScribbleImageUrl);
std::string getIntegratedMaskUrl() const;
void setIntegratedMaskUrl(const std::string &integratedMaskUrl);
std::string getMaskImageUrl() const;
void setMaskImageUrl(const std::string &maskImageUrl);
std::string getReturnForm() const;
void setReturnForm(const std::string &returnForm);
std::string getNegScribbleImageUrl() const;
void setNegScribbleImageUrl(const std::string &negScribbleImageUrl);
std::string getReturnFormat() const;
void setReturnFormat(const std::string &returnFormat);
std::string getEdgeFeathering() const;
void setEdgeFeathering(const std::string &edgeFeathering);
std::string getImageUrl() const;
void setImageUrl(const std::string &imageUrl);
std::string getPostprocessOption() const;
void setPostprocessOption(const std::string &postprocessOption);
private:
std::string posScribbleImageUrl_;
std::string integratedMaskUrl_;
std::string maskImageUrl_;
std::string returnForm_;
std::string negScribbleImageUrl_;
std::string returnFormat_;
std::string edgeFeathering_;
std::string imageUrl_;
std::string postprocessOption_;
};
} // namespace Model
} // namespace Aigen
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AIGEN_MODEL_INTERACTIVESCRIBBLESEGMENTATIONREQUEST_H_

View File

@@ -1,233 +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/aigen/AigenClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Aigen;
using namespace AlibabaCloud::Aigen::Model;
namespace
{
const std::string SERVICE_NAME = "aigen";
}
AigenClient::AigenClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AigenClient::AigenClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AigenClient::AigenClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AigenClient::~AigenClient()
{}
AigenClient::GenerateCosplayImageOutcome AigenClient::generateCosplayImage(const GenerateCosplayImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GenerateCosplayImageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GenerateCosplayImageOutcome(GenerateCosplayImageResult(outcome.result()));
else
return GenerateCosplayImageOutcome(outcome.error());
}
void AigenClient::generateCosplayImageAsync(const GenerateCosplayImageRequest& request, const GenerateCosplayImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, generateCosplayImage(request), context);
};
asyncExecute(new Runnable(fn));
}
AigenClient::GenerateCosplayImageOutcomeCallable AigenClient::generateCosplayImageCallable(const GenerateCosplayImageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GenerateCosplayImageOutcome()>>(
[this, request]()
{
return this->generateCosplayImage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AigenClient::GenerateTextDeformationOutcome AigenClient::generateTextDeformation(const GenerateTextDeformationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GenerateTextDeformationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GenerateTextDeformationOutcome(GenerateTextDeformationResult(outcome.result()));
else
return GenerateTextDeformationOutcome(outcome.error());
}
void AigenClient::generateTextDeformationAsync(const GenerateTextDeformationRequest& request, const GenerateTextDeformationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, generateTextDeformation(request), context);
};
asyncExecute(new Runnable(fn));
}
AigenClient::GenerateTextDeformationOutcomeCallable AigenClient::generateTextDeformationCallable(const GenerateTextDeformationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GenerateTextDeformationOutcome()>>(
[this, request]()
{
return this->generateTextDeformation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AigenClient::GenerateTextTextureOutcome AigenClient::generateTextTexture(const GenerateTextTextureRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GenerateTextTextureOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GenerateTextTextureOutcome(GenerateTextTextureResult(outcome.result()));
else
return GenerateTextTextureOutcome(outcome.error());
}
void AigenClient::generateTextTextureAsync(const GenerateTextTextureRequest& request, const GenerateTextTextureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, generateTextTexture(request), context);
};
asyncExecute(new Runnable(fn));
}
AigenClient::GenerateTextTextureOutcomeCallable AigenClient::generateTextTextureCallable(const GenerateTextTextureRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GenerateTextTextureOutcome()>>(
[this, request]()
{
return this->generateTextTexture(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AigenClient::InteractiveFullSegmentationOutcome AigenClient::interactiveFullSegmentation(const InteractiveFullSegmentationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InteractiveFullSegmentationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InteractiveFullSegmentationOutcome(InteractiveFullSegmentationResult(outcome.result()));
else
return InteractiveFullSegmentationOutcome(outcome.error());
}
void AigenClient::interactiveFullSegmentationAsync(const InteractiveFullSegmentationRequest& request, const InteractiveFullSegmentationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, interactiveFullSegmentation(request), context);
};
asyncExecute(new Runnable(fn));
}
AigenClient::InteractiveFullSegmentationOutcomeCallable AigenClient::interactiveFullSegmentationCallable(const InteractiveFullSegmentationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InteractiveFullSegmentationOutcome()>>(
[this, request]()
{
return this->interactiveFullSegmentation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AigenClient::InteractiveScribbleSegmentationOutcome AigenClient::interactiveScribbleSegmentation(const InteractiveScribbleSegmentationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InteractiveScribbleSegmentationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InteractiveScribbleSegmentationOutcome(InteractiveScribbleSegmentationResult(outcome.result()));
else
return InteractiveScribbleSegmentationOutcome(outcome.error());
}
void AigenClient::interactiveScribbleSegmentationAsync(const InteractiveScribbleSegmentationRequest& request, const InteractiveScribbleSegmentationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, interactiveScribbleSegmentation(request), context);
};
asyncExecute(new Runnable(fn));
}
AigenClient::InteractiveScribbleSegmentationOutcomeCallable AigenClient::interactiveScribbleSegmentationCallable(const InteractiveScribbleSegmentationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InteractiveScribbleSegmentationOutcome()>>(
[this, request]()
{
return this->interactiveScribbleSegmentation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -1,63 +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/aigen/model/GenerateCosplayImageRequest.h>
using AlibabaCloud::Aigen::Model::GenerateCosplayImageRequest;
GenerateCosplayImageRequest::GenerateCosplayImageRequest()
: RpcServiceRequest("aigen", "2024-01-11", "GenerateCosplayImage") {
setMethod(HttpRequest::Method::Post);
}
GenerateCosplayImageRequest::~GenerateCosplayImageRequest() {}
std::string GenerateCosplayImageRequest::getTemplateImageUrl() const {
return templateImageUrl_;
}
void GenerateCosplayImageRequest::setTemplateImageUrl(const std::string &templateImageUrl) {
templateImageUrl_ = templateImageUrl;
setBodyParameter(std::string("TemplateImageUrl"), templateImageUrl);
}
std::string GenerateCosplayImageRequest::getFaceImageUrl() const {
return faceImageUrl_;
}
void GenerateCosplayImageRequest::setFaceImageUrl(const std::string &faceImageUrl) {
faceImageUrl_ = faceImageUrl;
setBodyParameter(std::string("FaceImageUrl"), faceImageUrl);
}
bool GenerateCosplayImageRequest::getAsync() const {
return async_;
}
void GenerateCosplayImageRequest::setAsync(bool async) {
async_ = async;
setBodyParameter(std::string("Async"), async ? "true" : "false");
}
long GenerateCosplayImageRequest::getStyle() const {
return style_;
}
void GenerateCosplayImageRequest::setStyle(long style) {
style_ = style;
setBodyParameter(std::string("Style"), std::to_string(style));
}

View File

@@ -1,66 +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/aigen/model/GenerateCosplayImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aigen;
using namespace AlibabaCloud::Aigen::Model;
GenerateCosplayImageResult::GenerateCosplayImageResult() :
ServiceResult()
{}
GenerateCosplayImageResult::GenerateCosplayImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GenerateCosplayImageResult::~GenerateCosplayImageResult()
{}
void GenerateCosplayImageResult::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["ResultUrl"].isNull())
data_.resultUrl = dataNode["ResultUrl"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GenerateCosplayImageResult::getMessage()const
{
return message_;
}
GenerateCosplayImageResult::Data GenerateCosplayImageResult::getData()const
{
return data_;
}
std::string GenerateCosplayImageResult::getCode()const
{
return code_;
}

View File

@@ -1,90 +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/aigen/model/GenerateTextDeformationRequest.h>
using AlibabaCloud::Aigen::Model::GenerateTextDeformationRequest;
GenerateTextDeformationRequest::GenerateTextDeformationRequest()
: RpcServiceRequest("aigen", "2024-01-11", "GenerateTextDeformation") {
setMethod(HttpRequest::Method::Post);
}
GenerateTextDeformationRequest::~GenerateTextDeformationRequest() {}
std::string GenerateTextDeformationRequest::getTextContent() const {
return textContent_;
}
void GenerateTextDeformationRequest::setTextContent(const std::string &textContent) {
textContent_ = textContent;
setBodyParameter(std::string("TextContent"), textContent);
}
std::string GenerateTextDeformationRequest::getFontName() const {
return fontName_;
}
void GenerateTextDeformationRequest::setFontName(const std::string &fontName) {
fontName_ = fontName;
setBodyParameter(std::string("FontName"), fontName);
}
std::string GenerateTextDeformationRequest::getTtfUrl() const {
return ttfUrl_;
}
void GenerateTextDeformationRequest::setTtfUrl(const std::string &ttfUrl) {
ttfUrl_ = ttfUrl;
setBodyParameter(std::string("TtfUrl"), ttfUrl);
}
long GenerateTextDeformationRequest::getN() const {
return n_;
}
void GenerateTextDeformationRequest::setN(long n) {
n_ = n;
setBodyParameter(std::string("N"), std::to_string(n));
}
bool GenerateTextDeformationRequest::getAsync() const {
return async_;
}
void GenerateTextDeformationRequest::setAsync(bool async) {
async_ = async;
setBodyParameter(std::string("Async"), async ? "true" : "false");
}
std::string GenerateTextDeformationRequest::getPrompt() const {
return prompt_;
}
void GenerateTextDeformationRequest::setPrompt(const std::string &prompt) {
prompt_ = prompt;
setBodyParameter(std::string("Prompt"), prompt);
}
std::string GenerateTextDeformationRequest::getOutputImageRatio() const {
return outputImageRatio_;
}
void GenerateTextDeformationRequest::setOutputImageRatio(const std::string &outputImageRatio) {
outputImageRatio_ = outputImageRatio;
setBodyParameter(std::string("OutputImageRatio"), outputImageRatio);
}

View File

@@ -1,59 +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/aigen/model/GenerateTextDeformationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aigen;
using namespace AlibabaCloud::Aigen::Model;
GenerateTextDeformationResult::GenerateTextDeformationResult() :
ServiceResult()
{}
GenerateTextDeformationResult::GenerateTextDeformationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GenerateTextDeformationResult::~GenerateTextDeformationResult()
{}
void GenerateTextDeformationResult::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["ResultUrl"].isNull())
data_.resultUrl = dataNode["ResultUrl"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GenerateTextDeformationResult::getMessage()const
{
return message_;
}
GenerateTextDeformationResult::Data GenerateTextDeformationResult::getData()const
{
return data_;
}

View File

@@ -1,126 +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/aigen/model/GenerateTextTextureRequest.h>
using AlibabaCloud::Aigen::Model::GenerateTextTextureRequest;
GenerateTextTextureRequest::GenerateTextTextureRequest()
: RpcServiceRequest("aigen", "2024-01-11", "GenerateTextTexture") {
setMethod(HttpRequest::Method::Post);
}
GenerateTextTextureRequest::~GenerateTextTextureRequest() {}
std::string GenerateTextTextureRequest::getTextContent() const {
return textContent_;
}
void GenerateTextTextureRequest::setTextContent(const std::string &textContent) {
textContent_ = textContent;
setBodyParameter(std::string("TextContent"), textContent);
}
std::string GenerateTextTextureRequest::getTextureStyle() const {
return textureStyle_;
}
void GenerateTextTextureRequest::setTextureStyle(const std::string &textureStyle) {
textureStyle_ = textureStyle;
setParameter(std::string("TextureStyle"), textureStyle);
}
std::string GenerateTextTextureRequest::getFontName() const {
return fontName_;
}
void GenerateTextTextureRequest::setFontName(const std::string &fontName) {
fontName_ = fontName;
setBodyParameter(std::string("FontName"), fontName);
}
std::string GenerateTextTextureRequest::getTtfUrl() const {
return ttfUrl_;
}
void GenerateTextTextureRequest::setTtfUrl(const std::string &ttfUrl) {
ttfUrl_ = ttfUrl;
setBodyParameter(std::string("TtfUrl"), ttfUrl);
}
long GenerateTextTextureRequest::getN() const {
return n_;
}
void GenerateTextTextureRequest::setN(long n) {
n_ = n;
setBodyParameter(std::string("N"), std::to_string(n));
}
bool GenerateTextTextureRequest::getAsync() const {
return async_;
}
void GenerateTextTextureRequest::setAsync(bool async) {
async_ = async;
setBodyParameter(std::string("Async"), async ? "true" : "false");
}
bool GenerateTextTextureRequest::getAlphaChannel() const {
return alphaChannel_;
}
void GenerateTextTextureRequest::setAlphaChannel(bool alphaChannel) {
alphaChannel_ = alphaChannel;
setBodyParameter(std::string("AlphaChannel"), alphaChannel ? "true" : "false");
}
std::string GenerateTextTextureRequest::getImageUrl() const {
return imageUrl_;
}
void GenerateTextTextureRequest::setImageUrl(const std::string &imageUrl) {
imageUrl_ = imageUrl;
setBodyParameter(std::string("ImageUrl"), imageUrl);
}
long GenerateTextTextureRequest::getImageShortSize() const {
return imageShortSize_;
}
void GenerateTextTextureRequest::setImageShortSize(long imageShortSize) {
imageShortSize_ = imageShortSize;
setBodyParameter(std::string("ImageShortSize"), std::to_string(imageShortSize));
}
std::string GenerateTextTextureRequest::getPrompt() const {
return prompt_;
}
void GenerateTextTextureRequest::setPrompt(const std::string &prompt) {
prompt_ = prompt;
setBodyParameter(std::string("Prompt"), prompt);
}
std::string GenerateTextTextureRequest::getOutputImageRatio() const {
return outputImageRatio_;
}
void GenerateTextTextureRequest::setOutputImageRatio(const std::string &outputImageRatio) {
outputImageRatio_ = outputImageRatio;
setBodyParameter(std::string("OutputImageRatio"), outputImageRatio);
}

View File

@@ -1,59 +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/aigen/model/GenerateTextTextureResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aigen;
using namespace AlibabaCloud::Aigen::Model;
GenerateTextTextureResult::GenerateTextTextureResult() :
ServiceResult()
{}
GenerateTextTextureResult::GenerateTextTextureResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GenerateTextTextureResult::~GenerateTextTextureResult()
{}
void GenerateTextTextureResult::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["ResultUrl"].isNull())
data_.resultUrl = dataNode["ResultUrl"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GenerateTextTextureResult::getMessage()const
{
return message_;
}
GenerateTextTextureResult::Data GenerateTextTextureResult::getData()const
{
return data_;
}

View File

@@ -1,54 +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/aigen/model/InteractiveFullSegmentationRequest.h>
using AlibabaCloud::Aigen::Model::InteractiveFullSegmentationRequest;
InteractiveFullSegmentationRequest::InteractiveFullSegmentationRequest()
: RpcServiceRequest("aigen", "2024-01-11", "InteractiveFullSegmentation") {
setMethod(HttpRequest::Method::Post);
}
InteractiveFullSegmentationRequest::~InteractiveFullSegmentationRequest() {}
std::string InteractiveFullSegmentationRequest::getReturnFormat() const {
return returnFormat_;
}
void InteractiveFullSegmentationRequest::setReturnFormat(const std::string &returnFormat) {
returnFormat_ = returnFormat;
setBodyParameter(std::string("ReturnFormat"), returnFormat);
}
bool InteractiveFullSegmentationRequest::getAsync() const {
return async_;
}
void InteractiveFullSegmentationRequest::setAsync(bool async) {
async_ = async;
setBodyParameter(std::string("Async"), async ? "true" : "false");
}
std::string InteractiveFullSegmentationRequest::getImageUrl() const {
return imageUrl_;
}
void InteractiveFullSegmentationRequest::setImageUrl(const std::string &imageUrl) {
imageUrl_ = imageUrl;
setBodyParameter(std::string("ImageUrl"), imageUrl);
}

View File

@@ -1,108 +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/aigen/model/InteractiveScribbleSegmentationRequest.h>
using AlibabaCloud::Aigen::Model::InteractiveScribbleSegmentationRequest;
InteractiveScribbleSegmentationRequest::InteractiveScribbleSegmentationRequest()
: RpcServiceRequest("aigen", "2024-01-11", "InteractiveScribbleSegmentation") {
setMethod(HttpRequest::Method::Post);
}
InteractiveScribbleSegmentationRequest::~InteractiveScribbleSegmentationRequest() {}
std::string InteractiveScribbleSegmentationRequest::getPosScribbleImageUrl() const {
return posScribbleImageUrl_;
}
void InteractiveScribbleSegmentationRequest::setPosScribbleImageUrl(const std::string &posScribbleImageUrl) {
posScribbleImageUrl_ = posScribbleImageUrl;
setBodyParameter(std::string("PosScribbleImageUrl"), posScribbleImageUrl);
}
std::string InteractiveScribbleSegmentationRequest::getIntegratedMaskUrl() const {
return integratedMaskUrl_;
}
void InteractiveScribbleSegmentationRequest::setIntegratedMaskUrl(const std::string &integratedMaskUrl) {
integratedMaskUrl_ = integratedMaskUrl;
setBodyParameter(std::string("IntegratedMaskUrl"), integratedMaskUrl);
}
std::string InteractiveScribbleSegmentationRequest::getMaskImageUrl() const {
return maskImageUrl_;
}
void InteractiveScribbleSegmentationRequest::setMaskImageUrl(const std::string &maskImageUrl) {
maskImageUrl_ = maskImageUrl;
setBodyParameter(std::string("MaskImageUrl"), maskImageUrl);
}
std::string InteractiveScribbleSegmentationRequest::getReturnForm() const {
return returnForm_;
}
void InteractiveScribbleSegmentationRequest::setReturnForm(const std::string &returnForm) {
returnForm_ = returnForm;
setBodyParameter(std::string("ReturnForm"), returnForm);
}
std::string InteractiveScribbleSegmentationRequest::getNegScribbleImageUrl() const {
return negScribbleImageUrl_;
}
void InteractiveScribbleSegmentationRequest::setNegScribbleImageUrl(const std::string &negScribbleImageUrl) {
negScribbleImageUrl_ = negScribbleImageUrl;
setBodyParameter(std::string("NegScribbleImageUrl"), negScribbleImageUrl);
}
std::string InteractiveScribbleSegmentationRequest::getReturnFormat() const {
return returnFormat_;
}
void InteractiveScribbleSegmentationRequest::setReturnFormat(const std::string &returnFormat) {
returnFormat_ = returnFormat;
setBodyParameter(std::string("ReturnFormat"), returnFormat);
}
std::string InteractiveScribbleSegmentationRequest::getEdgeFeathering() const {
return edgeFeathering_;
}
void InteractiveScribbleSegmentationRequest::setEdgeFeathering(const std::string &edgeFeathering) {
edgeFeathering_ = edgeFeathering;
setBodyParameter(std::string("EdgeFeathering"), edgeFeathering);
}
std::string InteractiveScribbleSegmentationRequest::getImageUrl() const {
return imageUrl_;
}
void InteractiveScribbleSegmentationRequest::setImageUrl(const std::string &imageUrl) {
imageUrl_ = imageUrl;
setBodyParameter(std::string("ImageUrl"), imageUrl);
}
std::string InteractiveScribbleSegmentationRequest::getPostprocessOption() const {
return postprocessOption_;
}
void InteractiveScribbleSegmentationRequest::setPostprocessOption(const std::string &postprocessOption) {
postprocessOption_ = postprocessOption;
setBodyParameter(std::string("PostprocessOption"), postprocessOption);
}

View File

@@ -1,52 +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/aigen/model/InteractiveScribbleSegmentationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aigen;
using namespace AlibabaCloud::Aigen::Model;
InteractiveScribbleSegmentationResult::InteractiveScribbleSegmentationResult() :
ServiceResult()
{}
InteractiveScribbleSegmentationResult::InteractiveScribbleSegmentationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InteractiveScribbleSegmentationResult::~InteractiveScribbleSegmentationResult()
{}
void InteractiveScribbleSegmentationResult::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["ResultUrl"].isNull())
data_.resultUrl = dataNode["ResultUrl"].asString();
}
InteractiveScribbleSegmentationResult::Data InteractiveScribbleSegmentationResult::getData()const
{
return data_;
}

View File

@@ -1,86 +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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(aimiaobi_public_header
include/alibabacloud/aimiaobi/AiMiaoBiClient.h
include/alibabacloud/aimiaobi/AiMiaoBiExport.h )
set(aimiaobi_public_header_model
include/alibabacloud/aimiaobi/model/CreateTokenRequest.h
include/alibabacloud/aimiaobi/model/CreateTokenResult.h )
set(aimiaobi_src
src/AiMiaoBiClient.cc
src/model/CreateTokenRequest.cc
src/model/CreateTokenResult.cc )
add_library(aimiaobi ${LIB_TYPE}
${aimiaobi_public_header}
${aimiaobi_public_header_model}
${aimiaobi_src})
set_target_properties(aimiaobi
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}aimiaobi
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(aimiaobi
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_AIMIAOBI_LIBRARY)
endif()
target_include_directories(aimiaobi
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(aimiaobi
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(aimiaobi
jsoncpp)
target_include_directories(aimiaobi
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(aimiaobi
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(aimiaobi
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(aimiaobi
PRIVATE /usr/include/jsoncpp)
target_link_libraries(aimiaobi
jsoncpp)
endif()
install(FILES ${aimiaobi_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aimiaobi)
install(FILES ${aimiaobi_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aimiaobi/model)
install(TARGETS aimiaobi
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -1,54 +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_AIMIAOBI_AIMIAOBICLIENT_H_
#define ALIBABACLOUD_AIMIAOBI_AIMIAOBICLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "AiMiaoBiExport.h"
#include "model/CreateTokenRequest.h"
#include "model/CreateTokenResult.h"
namespace AlibabaCloud
{
namespace AiMiaoBi
{
class ALIBABACLOUD_AIMIAOBI_EXPORT AiMiaoBiClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::CreateTokenResult> CreateTokenOutcome;
typedef std::future<CreateTokenOutcome> CreateTokenOutcomeCallable;
typedef std::function<void(const AiMiaoBiClient*, const Model::CreateTokenRequest&, const CreateTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTokenAsyncHandler;
AiMiaoBiClient(const Credentials &credentials, const ClientConfiguration &configuration);
AiMiaoBiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
AiMiaoBiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~AiMiaoBiClient();
CreateTokenOutcome createToken(const Model::CreateTokenRequest &request)const;
void createTokenAsync(const Model::CreateTokenRequest& request, const CreateTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTokenOutcomeCallable createTokenCallable(const Model::CreateTokenRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_AIMIAOBI_AIMIAOBICLIENT_H_

View File

@@ -1,32 +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_AIMIAOBI_AIMIAOBIEXPORT_H_
#define ALIBABACLOUD_AIMIAOBI_AIMIAOBIEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_AIMIAOBI_LIBRARY)
# define ALIBABACLOUD_AIMIAOBI_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_AIMIAOBI_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_AIMIAOBI_EXPORT
#endif
#endif // !ALIBABACLOUD_AIMIAOBI_AIMIAOBIEXPORT_H_

View File

@@ -1,64 +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_AIMIAOBI_MODEL_CREATETOKENRESULT_H_
#define ALIBABACLOUD_AIMIAOBI_MODEL_CREATETOKENRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/aimiaobi/AiMiaoBiExport.h>
namespace AlibabaCloud
{
namespace AiMiaoBi
{
namespace Model
{
class ALIBABACLOUD_AIMIAOBI_EXPORT CreateTokenResult : public ServiceResult
{
public:
struct Data
{
long expiredTime;
std::string token;
};
CreateTokenResult();
explicit CreateTokenResult(const std::string &payload);
~CreateTokenResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_AIMIAOBI_MODEL_CREATETOKENRESULT_H_

View File

@@ -1,89 +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/aimiaobi/AiMiaoBiClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::AiMiaoBi;
using namespace AlibabaCloud::AiMiaoBi::Model;
namespace
{
const std::string SERVICE_NAME = "AiMiaoBi";
}
AiMiaoBiClient::AiMiaoBiClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AiMiaoBiClient::AiMiaoBiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AiMiaoBiClient::AiMiaoBiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AiMiaoBiClient::~AiMiaoBiClient()
{}
AiMiaoBiClient::CreateTokenOutcome AiMiaoBiClient::createToken(const CreateTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateTokenOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateTokenOutcome(CreateTokenResult(outcome.result()));
else
return CreateTokenOutcome(outcome.error());
}
void AiMiaoBiClient::createTokenAsync(const CreateTokenRequest& request, const CreateTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createToken(request), context);
};
asyncExecute(new Runnable(fn));
}
AiMiaoBiClient::CreateTokenOutcomeCallable AiMiaoBiClient::createTokenCallable(const CreateTokenRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateTokenOutcome()>>(
[this, request]()
{
return this->createToken(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -1,36 +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/aimiaobi/model/CreateTokenRequest.h>
using AlibabaCloud::AiMiaoBi::Model::CreateTokenRequest;
CreateTokenRequest::CreateTokenRequest()
: RpcServiceRequest("aimiaobi", "2023-08-01", "CreateToken") {
setMethod(HttpRequest::Method::Post);
}
CreateTokenRequest::~CreateTokenRequest() {}
std::string CreateTokenRequest::getAgentKey() const {
return agentKey_;
}
void CreateTokenRequest::setAgentKey(const std::string &agentKey) {
agentKey_ = agentKey;
setParameter(std::string("AgentKey"), agentKey);
}

View File

@@ -1,82 +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/aimiaobi/model/CreateTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::AiMiaoBi;
using namespace AlibabaCloud::AiMiaoBi::Model;
CreateTokenResult::CreateTokenResult() :
ServiceResult()
{}
CreateTokenResult::CreateTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTokenResult::~CreateTokenResult()
{}
void CreateTokenResult::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["Token"].isNull())
data_.token = dataNode["Token"].asString();
if(!dataNode["ExpiredTime"].isNull())
data_.expiredTime = std::stol(dataNode["ExpiredTime"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string CreateTokenResult::getMessage()const
{
return message_;
}
int CreateTokenResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
CreateTokenResult::Data CreateTokenResult::getData()const
{
return data_;
}
std::string CreateTokenResult::getCode()const
{
return code_;
}
bool CreateTokenResult::getSuccess()const
{
return success_;
}

View File

@@ -21,20 +21,14 @@ 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
@@ -45,8 +39,6 @@ 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
@@ -64,28 +56,18 @@ 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/UpdateInstanceRequest.h
include/alibabacloud/amqp-open/model/UpdateInstanceResult.h
include/alibabacloud/amqp-open/model/UpdateInstanceNameRequest.h
include/alibabacloud/amqp-open/model/UpdateInstanceNameResult.h )
include/alibabacloud/amqp-open/model/ListVirtualHostsResult.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
@@ -96,8 +78,6 @@ 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
@@ -115,11 +95,7 @@ set(amqp-open_src
src/model/ListQueuesRequest.cc
src/model/ListQueuesResult.cc
src/model/ListVirtualHostsRequest.cc
src/model/ListVirtualHostsResult.cc
src/model/UpdateInstanceRequest.cc
src/model/UpdateInstanceResult.cc
src/model/UpdateInstanceNameRequest.cc
src/model/UpdateInstanceNameResult.cc )
src/model/ListVirtualHostsResult.cc )
add_library(amqp-open ${LIB_TYPE}
${amqp-open_public_header}

View File

@@ -22,20 +22,14 @@
#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"
@@ -46,8 +40,6 @@
#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"
@@ -66,10 +58,6 @@
#include "model/ListQueuesResult.h"
#include "model/ListVirtualHostsRequest.h"
#include "model/ListVirtualHostsResult.h"
#include "model/UpdateInstanceRequest.h"
#include "model/UpdateInstanceResult.h"
#include "model/UpdateInstanceNameRequest.h"
#include "model/UpdateInstanceNameResult.h"
namespace AlibabaCloud
@@ -79,27 +67,18 @@ 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;
@@ -115,9 +94,6 @@ 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;
@@ -145,38 +121,23 @@ 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::UpdateInstanceResult> UpdateInstanceOutcome;
typedef std::future<UpdateInstanceOutcome> UpdateInstanceOutcomeCallable;
typedef std::function<void(const Amqp_openClient*, const Model::UpdateInstanceRequest&, const UpdateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceAsyncHandler;
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;
@@ -192,9 +153,6 @@ 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;
@@ -222,12 +180,6 @@ 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;
UpdateInstanceOutcome updateInstance(const Model::UpdateInstanceRequest &request)const;
void updateInstanceAsync(const Model::UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateInstanceOutcomeCallable updateInstanceCallable(const Model::UpdateInstanceRequest& 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_;

View File

@@ -1,57 +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_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_

View File

@@ -1,66 +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_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_

View File

@@ -1,60 +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_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_
*/
#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_

View File

@@ -1,60 +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_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_
*/
#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_

View File

@@ -1,96 +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_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 getServerlessChargeType() const;
void setServerlessChargeType(const std::string &serverlessChargeType);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getRenewStatus() const;
void setRenewStatus(const std::string &renewStatus);
int getAutoRenewPeriod() const;
void setAutoRenewPeriod(int autoRenewPeriod);
int getPeriod() const;
void setPeriod(int period);
std::string getRenewalDurationUnit() const;
void setRenewalDurationUnit(const std::string &renewalDurationUnit);
std::string getInstanceName() const;
void setInstanceName(const std::string &instanceName);
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 serverlessChargeType_;
std::string instanceType_;
std::string renewStatus_;
int autoRenewPeriod_;
int period_;
std::string renewalDurationUnit_;
std::string instanceName_;
bool autoRenew_;
bool supportEip_;
long maxEipTps_;
std::string paymentType_;
};
} // namespace Model
} // namespace Amqp_open
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEINSTANCEREQUEST_H_

View File

@@ -1,49 +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_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_

View File

@@ -1,72 +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.
*/
#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_
*/
#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_

View File

@@ -1,45 +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_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_
*/
#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_

View File

@@ -1,57 +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_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_

View File

@@ -1,57 +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.
*/
#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_
*/
#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_

View File

@@ -1,48 +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_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_
*/
#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_

View File

@@ -1,48 +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_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_
*/
#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_

View File

@@ -1,45 +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_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_
*/
#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_

View File

@@ -1,42 +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_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_
*/
#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_

View File

@@ -36,8 +36,8 @@ namespace AlibabaCloud
{
int maxExchanges;
int maxVirtualHosts;
int maxQueues;
int currentExchanges;
int maxQueues;
int currentVirtualHosts;
int currentQueues;
};

View File

@@ -1,42 +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_AMQP_OPEN_MODEL_LISTACCOUNTSREQUEST_H_
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTACCOUNTSREQUEST_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 ListAccountsRequest : public RpcServiceRequest {
public:
ListAccountsRequest();
~ListAccountsRequest();
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_LISTACCOUNTSREQUEST_H_

View File

@@ -1,49 +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_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/amqp-open/Amqp_openExport.h>
namespace AlibabaCloud
{
namespace Amqp_open
{
namespace Model
{
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListAccountsResult : public ServiceResult
{
public:
ListAccountsResult();
explicit ListAccountsResult(const std::string &payload);
~ListAccountsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTACCOUNTSRESULT_H_

View File

@@ -1,51 +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_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_
*/
#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_

View File

@@ -38,8 +38,8 @@ namespace AlibabaCloud
{
std::string sourceExchange;
std::string argument;
std::string bindingKey;
std::string bindingType;
std::string bindingKey;
std::string destinationName;
};
std::string nextToken;

View File

@@ -1,54 +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_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_
*/
#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_

View File

@@ -38,8 +38,8 @@ namespace AlibabaCloud
{
std::string sourceExchange;
std::string argument;
std::string bindingKey;
std::string bindingType;
std::string bindingKey;
std::string destinationName;
};
std::string nextToken;

View File

@@ -1,54 +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_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_
*/
#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_

View File

@@ -38,8 +38,8 @@ namespace AlibabaCloud
{
std::string sourceExchange;
std::string argument;
std::string bindingKey;
std::string bindingType;
std::string bindingKey;
std::string destinationName;
};
std::string nextToken;

View File

@@ -1,51 +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_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_
*/
#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_

View File

@@ -1,45 +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_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_
*/
#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_

View File

@@ -36,29 +36,17 @@ namespace AlibabaCloud
{
struct InstanceVO
{
struct TagsItem
{
std::string value;
std::string key;
};
std::string status;
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 status;
std::string orderType;
long orderCreateTime;
std::string instanceId;
bool supportEIP;
std::string publicEndpoint;
long expireTime;
std::string instanceType;
long expireTime;
bool autoRenewInstance;
std::string privateEndpoint;
std::vector<InstanceVO::TagsItem> tags;
};
std::vector<InstanceVO> instances;
std::string nextToken;

View File

@@ -1,54 +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_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_
*/
#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_

View File

@@ -1,54 +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_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_
*/
#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_

View File

@@ -38,8 +38,8 @@ namespace AlibabaCloud
{
std::string sourceExchange;
std::string argument;
std::string bindingKey;
std::string bindingType;
std::string bindingKey;
std::string destinationName;
};
std::string nextToken;

View File

@@ -1,51 +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_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_
*/
#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_

View File

@@ -1,48 +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_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_
*/
#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_

View File

@@ -1,45 +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_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_

View File

@@ -1,57 +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_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_

View File

@@ -1,78 +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_AMQP_OPEN_MODEL_UPDATEINSTANCEREQUEST_H_
#define ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCEREQUEST_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 UpdateInstanceRequest : public RpcServiceRequest {
public:
UpdateInstanceRequest();
~UpdateInstanceRequest();
long getMaxPrivateTps() const;
void setMaxPrivateTps(long maxPrivateTps);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
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 getServerlessChargeType() const;
void setServerlessChargeType(const std::string &serverlessChargeType);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
bool getSupportEip() const;
void setSupportEip(bool supportEip);
std::string getModifyType() const;
void setModifyType(const std::string &modifyType);
long getMaxEipTps() const;
void setMaxEipTps(long maxEipTps);
private:
long maxPrivateTps_;
std::string clientToken_;
int storageSize_;
int queueCapacity_;
int tracingStorageTime_;
int maxConnections_;
bool supportTracing_;
std::string serverlessChargeType_;
std::string instanceType_;
std::string instanceId_;
bool supportEip_;
std::string modifyType_;
long maxEipTps_;
};
} // namespace Model
} // namespace Amqp_open
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCEREQUEST_H_

View File

@@ -1,49 +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_AMQP_OPEN_MODEL_UPDATEINSTANCERESULT_H_
#define ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCERESULT_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 UpdateInstanceResult : public ServiceResult
{
public:
UpdateInstanceResult();
explicit UpdateInstanceResult(const std::string &payload);
~UpdateInstanceResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_UPDATEINSTANCERESULT_H_

View File

@@ -51,42 +51,6 @@ 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();
@@ -159,42 +123,6 @@ 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();
@@ -267,42 +195,6 @@ 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();
@@ -483,42 +375,6 @@ 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();
@@ -843,75 +699,3 @@ Amqp_openClient::ListVirtualHostsOutcomeCallable Amqp_openClient::listVirtualHos
return task->get_future();
}
Amqp_openClient::UpdateInstanceOutcome Amqp_openClient::updateInstance(const UpdateInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateInstanceOutcome(UpdateInstanceResult(outcome.result()));
else
return UpdateInstanceOutcome(outcome.error());
}
void Amqp_openClient::updateInstanceAsync(const UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
Amqp_openClient::UpdateInstanceOutcomeCallable Amqp_openClient::updateInstanceCallable(const UpdateInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateInstanceOutcome()>>(
[this, request]()
{
return this->updateInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
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();
}

View File

@@ -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/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);
}

View File

@@ -1,83 +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/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_;
}

View File

@@ -1,90 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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);
*/
#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_;
}
CreateBindingRequest::~CreateBindingRequest() {}
std::string CreateBindingRequest::getArgument() const {
return argument_;
void CreateBindingRequest::setArgument(const std::string& argument)
{
argument_ = argument;
setBodyParameter("Argument", argument);
}
void CreateBindingRequest::setArgument(const std::string &argument) {
argument_ = argument;
setBodyParameter(std::string("Argument"), argument);
std::string CreateBindingRequest::getDestinationName()const
{
return destinationName_;
}
std::string CreateBindingRequest::getDestinationName() const {
return destinationName_;
void CreateBindingRequest::setDestinationName(const std::string& destinationName)
{
destinationName_ = destinationName;
setBodyParameter("DestinationName", destinationName);
}
void CreateBindingRequest::setDestinationName(const std::string &destinationName) {
destinationName_ = destinationName;
setBodyParameter(std::string("DestinationName"), destinationName);
std::string CreateBindingRequest::getSourceExchange()const
{
return sourceExchange_;
}
std::string CreateBindingRequest::getSourceExchange() const {
return sourceExchange_;
void CreateBindingRequest::setSourceExchange(const std::string& sourceExchange)
{
sourceExchange_ = sourceExchange;
setBodyParameter("SourceExchange", sourceExchange);
}
void CreateBindingRequest::setSourceExchange(const std::string &sourceExchange) {
sourceExchange_ = sourceExchange;
setBodyParameter(std::string("SourceExchange"), sourceExchange);
std::string CreateBindingRequest::getBindingKey()const
{
return bindingKey_;
}
std::string CreateBindingRequest::getBindingKey() const {
return bindingKey_;
void CreateBindingRequest::setBindingKey(const std::string& bindingKey)
{
bindingKey_ = bindingKey;
setBodyParameter("BindingKey", bindingKey);
}
void CreateBindingRequest::setBindingKey(const std::string &bindingKey) {
bindingKey_ = bindingKey;
setBodyParameter(std::string("BindingKey"), bindingKey);
std::string CreateBindingRequest::getBindingType()const
{
return bindingType_;
}
std::string CreateBindingRequest::getBindingType() const {
return bindingType_;
void CreateBindingRequest::setBindingType(const std::string& bindingType)
{
bindingType_ = bindingType;
setBodyParameter("BindingType", bindingType);
}
void CreateBindingRequest::setBindingType(const std::string &bindingType) {
bindingType_ = bindingType;
setBodyParameter(std::string("BindingType"), bindingType);
std::string CreateBindingRequest::getInstanceId()const
{
return instanceId_;
}
std::string CreateBindingRequest::getInstanceId() const {
return instanceId_;
void CreateBindingRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setBodyParameter("InstanceId", instanceId);
}
void CreateBindingRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
std::string CreateBindingRequest::getVirtualHost()const
{
return virtualHost_;
}
std::string CreateBindingRequest::getVirtualHost() const {
return virtualHost_;
}
void CreateBindingRequest::setVirtualHost(const std::string &virtualHost) {
virtualHost_ = virtualHost;
setBodyParameter(std::string("VirtualHost"), virtualHost);
void CreateBindingRequest::setVirtualHost(const std::string& virtualHost)
{
virtualHost_ = virtualHost;
setBodyParameter("VirtualHost", virtualHost);
}

View File

@@ -1,90 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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);
*/
#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_;
}
CreateExchangeRequest::~CreateExchangeRequest() {}
bool CreateExchangeRequest::getInternal() const {
return internal_;
void CreateExchangeRequest::setInternal(bool internal)
{
internal_ = internal;
setBodyParameter("Internal", internal ? "true" : "false");
}
void CreateExchangeRequest::setInternal(bool internal) {
internal_ = internal;
setBodyParameter(std::string("Internal"), internal ? "true" : "false");
std::string CreateExchangeRequest::getExchangeName()const
{
return exchangeName_;
}
std::string CreateExchangeRequest::getExchangeName() const {
return exchangeName_;
void CreateExchangeRequest::setExchangeName(const std::string& exchangeName)
{
exchangeName_ = exchangeName;
setBodyParameter("ExchangeName", exchangeName);
}
void CreateExchangeRequest::setExchangeName(const std::string &exchangeName) {
exchangeName_ = exchangeName;
setBodyParameter(std::string("ExchangeName"), exchangeName);
std::string CreateExchangeRequest::getInstanceId()const
{
return instanceId_;
}
std::string CreateExchangeRequest::getInstanceId() const {
return instanceId_;
void CreateExchangeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setBodyParameter("InstanceId", instanceId);
}
void CreateExchangeRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
std::string CreateExchangeRequest::getAlternateExchange()const
{
return alternateExchange_;
}
std::string CreateExchangeRequest::getAlternateExchange() const {
return alternateExchange_;
void CreateExchangeRequest::setAlternateExchange(const std::string& alternateExchange)
{
alternateExchange_ = alternateExchange;
setBodyParameter("AlternateExchange", alternateExchange);
}
void CreateExchangeRequest::setAlternateExchange(const std::string &alternateExchange) {
alternateExchange_ = alternateExchange;
setBodyParameter(std::string("AlternateExchange"), alternateExchange);
bool CreateExchangeRequest::getAutoDeleteState()const
{
return autoDeleteState_;
}
bool CreateExchangeRequest::getAutoDeleteState() const {
return autoDeleteState_;
void CreateExchangeRequest::setAutoDeleteState(bool autoDeleteState)
{
autoDeleteState_ = autoDeleteState;
setBodyParameter("AutoDeleteState", autoDeleteState ? "true" : "false");
}
void CreateExchangeRequest::setAutoDeleteState(bool autoDeleteState) {
autoDeleteState_ = autoDeleteState;
setBodyParameter(std::string("AutoDeleteState"), autoDeleteState ? "true" : "false");
std::string CreateExchangeRequest::getExchangeType()const
{
return exchangeType_;
}
std::string CreateExchangeRequest::getExchangeType() const {
return exchangeType_;
void CreateExchangeRequest::setExchangeType(const std::string& exchangeType)
{
exchangeType_ = exchangeType;
setBodyParameter("ExchangeType", exchangeType);
}
void CreateExchangeRequest::setExchangeType(const std::string &exchangeType) {
exchangeType_ = exchangeType;
setBodyParameter(std::string("ExchangeType"), exchangeType);
std::string CreateExchangeRequest::getVirtualHost()const
{
return virtualHost_;
}
std::string CreateExchangeRequest::getVirtualHost() const {
return virtualHost_;
}
void CreateExchangeRequest::setVirtualHost(const std::string &virtualHost) {
virtualHost_ = virtualHost;
setBodyParameter(std::string("VirtualHost"), virtualHost);
void CreateExchangeRequest::setVirtualHost(const std::string& virtualHost)
{
virtualHost_ = virtualHost;
setBodyParameter("VirtualHost", virtualHost);
}

View File

@@ -1,198 +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/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::getServerlessChargeType() const {
return serverlessChargeType_;
}
void CreateInstanceRequest::setServerlessChargeType(const std::string &serverlessChargeType) {
serverlessChargeType_ = serverlessChargeType;
setParameter(std::string("ServerlessChargeType"), serverlessChargeType);
}
std::string CreateInstanceRequest::getInstanceType() const {
return instanceType_;
}
void CreateInstanceRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string CreateInstanceRequest::getRenewStatus() const {
return renewStatus_;
}
void CreateInstanceRequest::setRenewStatus(const std::string &renewStatus) {
renewStatus_ = renewStatus;
setParameter(std::string("RenewStatus"), renewStatus);
}
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));
}
std::string CreateInstanceRequest::getRenewalDurationUnit() const {
return renewalDurationUnit_;
}
void CreateInstanceRequest::setRenewalDurationUnit(const std::string &renewalDurationUnit) {
renewalDurationUnit_ = renewalDurationUnit;
setParameter(std::string("RenewalDurationUnit"), renewalDurationUnit);
}
std::string CreateInstanceRequest::getInstanceName() const {
return instanceName_;
}
void CreateInstanceRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
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);
}

View File

@@ -1,44 +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/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());
}

View File

@@ -1,126 +1,150 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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);
*/
#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_;
}
CreateQueueRequest::~CreateQueueRequest() {}
std::string CreateQueueRequest::getQueueName() const {
return queueName_;
void CreateQueueRequest::setQueueName(const std::string& queueName)
{
queueName_ = queueName;
setBodyParameter("QueueName", queueName);
}
void CreateQueueRequest::setQueueName(const std::string &queueName) {
queueName_ = queueName;
setBodyParameter(std::string("QueueName"), queueName);
std::string CreateQueueRequest::getDeadLetterRoutingKey()const
{
return deadLetterRoutingKey_;
}
std::string CreateQueueRequest::getDeadLetterRoutingKey() const {
return deadLetterRoutingKey_;
void CreateQueueRequest::setDeadLetterRoutingKey(const std::string& deadLetterRoutingKey)
{
deadLetterRoutingKey_ = deadLetterRoutingKey;
setBodyParameter("DeadLetterRoutingKey", deadLetterRoutingKey);
}
void CreateQueueRequest::setDeadLetterRoutingKey(const std::string &deadLetterRoutingKey) {
deadLetterRoutingKey_ = deadLetterRoutingKey;
setBodyParameter(std::string("DeadLetterRoutingKey"), deadLetterRoutingKey);
long CreateQueueRequest::getMaxLength()const
{
return maxLength_;
}
long CreateQueueRequest::getMaxLength() const {
return maxLength_;
void CreateQueueRequest::setMaxLength(long maxLength)
{
maxLength_ = maxLength;
setBodyParameter("MaxLength", std::to_string(maxLength));
}
void CreateQueueRequest::setMaxLength(long maxLength) {
maxLength_ = maxLength;
setBodyParameter(std::string("MaxLength"), std::to_string(maxLength));
long CreateQueueRequest::getAutoExpireState()const
{
return autoExpireState_;
}
long CreateQueueRequest::getAutoExpireState() const {
return autoExpireState_;
void CreateQueueRequest::setAutoExpireState(long autoExpireState)
{
autoExpireState_ = autoExpireState;
setBodyParameter("AutoExpireState", std::to_string(autoExpireState));
}
void CreateQueueRequest::setAutoExpireState(long autoExpireState) {
autoExpireState_ = autoExpireState;
setBodyParameter(std::string("AutoExpireState"), std::to_string(autoExpireState));
std::string CreateQueueRequest::getDeadLetterExchange()const
{
return deadLetterExchange_;
}
std::string CreateQueueRequest::getDeadLetterExchange() const {
return deadLetterExchange_;
void CreateQueueRequest::setDeadLetterExchange(const std::string& deadLetterExchange)
{
deadLetterExchange_ = deadLetterExchange;
setBodyParameter("DeadLetterExchange", deadLetterExchange);
}
void CreateQueueRequest::setDeadLetterExchange(const std::string &deadLetterExchange) {
deadLetterExchange_ = deadLetterExchange;
setBodyParameter(std::string("DeadLetterExchange"), deadLetterExchange);
std::string CreateQueueRequest::getInstanceId()const
{
return instanceId_;
}
std::string CreateQueueRequest::getInstanceId() const {
return instanceId_;
void CreateQueueRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setBodyParameter("InstanceId", instanceId);
}
void CreateQueueRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
bool CreateQueueRequest::getExclusiveState()const
{
return exclusiveState_;
}
bool CreateQueueRequest::getExclusiveState() const {
return exclusiveState_;
void CreateQueueRequest::setExclusiveState(bool exclusiveState)
{
exclusiveState_ = exclusiveState;
setBodyParameter("ExclusiveState", exclusiveState ? "true" : "false");
}
void CreateQueueRequest::setExclusiveState(bool exclusiveState) {
exclusiveState_ = exclusiveState;
setBodyParameter(std::string("ExclusiveState"), exclusiveState ? "true" : "false");
bool CreateQueueRequest::getAutoDeleteState()const
{
return autoDeleteState_;
}
bool CreateQueueRequest::getAutoDeleteState() const {
return autoDeleteState_;
void CreateQueueRequest::setAutoDeleteState(bool autoDeleteState)
{
autoDeleteState_ = autoDeleteState;
setBodyParameter("AutoDeleteState", autoDeleteState ? "true" : "false");
}
void CreateQueueRequest::setAutoDeleteState(bool autoDeleteState) {
autoDeleteState_ = autoDeleteState;
setBodyParameter(std::string("AutoDeleteState"), autoDeleteState ? "true" : "false");
long CreateQueueRequest::getMessageTTL()const
{
return messageTTL_;
}
long CreateQueueRequest::getMessageTTL() const {
return messageTTL_;
void CreateQueueRequest::setMessageTTL(long messageTTL)
{
messageTTL_ = messageTTL;
setBodyParameter("MessageTTL", std::to_string(messageTTL));
}
void CreateQueueRequest::setMessageTTL(long messageTTL) {
messageTTL_ = messageTTL;
setBodyParameter(std::string("MessageTTL"), std::to_string(messageTTL));
std::string CreateQueueRequest::getVirtualHost()const
{
return virtualHost_;
}
std::string CreateQueueRequest::getVirtualHost() const {
return virtualHost_;
void CreateQueueRequest::setVirtualHost(const std::string& virtualHost)
{
virtualHost_ = virtualHost;
setBodyParameter("VirtualHost", virtualHost);
}
void CreateQueueRequest::setVirtualHost(const std::string &virtualHost) {
virtualHost_ = virtualHost;
setBodyParameter(std::string("VirtualHost"), virtualHost);
int CreateQueueRequest::getMaximumPriority()const
{
return maximumPriority_;
}
int CreateQueueRequest::getMaximumPriority() const {
return maximumPriority_;
}
void CreateQueueRequest::setMaximumPriority(int maximumPriority) {
maximumPriority_ = maximumPriority;
setBodyParameter(std::string("MaximumPriority"), std::to_string(maximumPriority));
void CreateQueueRequest::setMaximumPriority(int maximumPriority)
{
maximumPriority_ = maximumPriority;
setBodyParameter("MaximumPriority", std::to_string(maximumPriority));
}

View File

@@ -1,45 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/amqp-open/model/CreateVirtualHostRequest.h>
using AlibabaCloud::Amqp_open::Model::CreateVirtualHostRequest;
CreateVirtualHostRequest::CreateVirtualHostRequest()
: RpcServiceRequest("amqp-open", "2019-12-12", "CreateVirtualHost") {
setMethod(HttpRequest::Method::Post);
*/
#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_;
}
CreateVirtualHostRequest::~CreateVirtualHostRequest() {}
std::string CreateVirtualHostRequest::getInstanceId() const {
return instanceId_;
void CreateVirtualHostRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setBodyParameter("InstanceId", instanceId);
}
void CreateVirtualHostRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
std::string CreateVirtualHostRequest::getVirtualHost()const
{
return virtualHost_;
}
std::string CreateVirtualHostRequest::getVirtualHost() const {
return virtualHost_;
}
void CreateVirtualHostRequest::setVirtualHost(const std::string &virtualHost) {
virtualHost_ = virtualHost;
setBodyParameter(std::string("VirtualHost"), virtualHost);
void CreateVirtualHostRequest::setVirtualHost(const std::string& virtualHost)
{
virtualHost_ = virtualHost;
setBodyParameter("VirtualHost", virtualHost);
}

View File

@@ -1,45 +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/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);
}

View File

@@ -1,72 +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/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_;
}

View File

@@ -1,81 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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);
*/
#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_;
}
DeleteBindingRequest::~DeleteBindingRequest() {}
std::string DeleteBindingRequest::getDestinationName() const {
return destinationName_;
void DeleteBindingRequest::setDestinationName(const std::string& destinationName)
{
destinationName_ = destinationName;
setBodyParameter("DestinationName", destinationName);
}
void DeleteBindingRequest::setDestinationName(const std::string &destinationName) {
destinationName_ = destinationName;
setBodyParameter(std::string("DestinationName"), destinationName);
std::string DeleteBindingRequest::getSourceExchange()const
{
return sourceExchange_;
}
std::string DeleteBindingRequest::getSourceExchange() const {
return sourceExchange_;
void DeleteBindingRequest::setSourceExchange(const std::string& sourceExchange)
{
sourceExchange_ = sourceExchange;
setBodyParameter("SourceExchange", sourceExchange);
}
void DeleteBindingRequest::setSourceExchange(const std::string &sourceExchange) {
sourceExchange_ = sourceExchange;
setBodyParameter(std::string("SourceExchange"), sourceExchange);
std::string DeleteBindingRequest::getBindingKey()const
{
return bindingKey_;
}
std::string DeleteBindingRequest::getBindingKey() const {
return bindingKey_;
void DeleteBindingRequest::setBindingKey(const std::string& bindingKey)
{
bindingKey_ = bindingKey;
setBodyParameter("BindingKey", bindingKey);
}
void DeleteBindingRequest::setBindingKey(const std::string &bindingKey) {
bindingKey_ = bindingKey;
setBodyParameter(std::string("BindingKey"), bindingKey);
std::string DeleteBindingRequest::getBindingType()const
{
return bindingType_;
}
std::string DeleteBindingRequest::getBindingType() const {
return bindingType_;
void DeleteBindingRequest::setBindingType(const std::string& bindingType)
{
bindingType_ = bindingType;
setBodyParameter("BindingType", bindingType);
}
void DeleteBindingRequest::setBindingType(const std::string &bindingType) {
bindingType_ = bindingType;
setBodyParameter(std::string("BindingType"), bindingType);
std::string DeleteBindingRequest::getInstanceId()const
{
return instanceId_;
}
std::string DeleteBindingRequest::getInstanceId() const {
return instanceId_;
void DeleteBindingRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setBodyParameter("InstanceId", instanceId);
}
void DeleteBindingRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setBodyParameter(std::string("InstanceId"), instanceId);
std::string DeleteBindingRequest::getVirtualHost()const
{
return virtualHost_;
}
std::string DeleteBindingRequest::getVirtualHost() const {
return virtualHost_;
}
void DeleteBindingRequest::setVirtualHost(const std::string &virtualHost) {
virtualHost_ = virtualHost;
setBodyParameter(std::string("VirtualHost"), virtualHost);
void DeleteBindingRequest::setVirtualHost(const std::string& virtualHost)
{
virtualHost_ = virtualHost;
setBodyParameter("VirtualHost", virtualHost);
}

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