Add spInstanceId and spInstanceType for api OnsInstanceBaseInfo.
This commit is contained in:
@@ -1347,78 +1347,6 @@ OnsClient::OnsTrendTopicInputTpsOutcomeCallable OnsClient::onsTrendTopicInputTps
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OnsClient::OnsWarnCreateOutcome OnsClient::onsWarnCreate(const OnsWarnCreateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OnsWarnCreateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OnsWarnCreateOutcome(OnsWarnCreateResult(outcome.result()));
|
||||
else
|
||||
return OnsWarnCreateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OnsClient::onsWarnCreateAsync(const OnsWarnCreateRequest& request, const OnsWarnCreateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, onsWarnCreate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OnsClient::OnsWarnCreateOutcomeCallable OnsClient::onsWarnCreateCallable(const OnsWarnCreateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OnsWarnCreateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->onsWarnCreate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OnsClient::OnsWarnDeleteOutcome OnsClient::onsWarnDelete(const OnsWarnDeleteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OnsWarnDeleteOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OnsWarnDeleteOutcome(OnsWarnDeleteResult(outcome.result()));
|
||||
else
|
||||
return OnsWarnDeleteOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OnsClient::onsWarnDeleteAsync(const OnsWarnDeleteRequest& request, const OnsWarnDeleteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, onsWarnDelete(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OnsClient::OnsWarnDeleteOutcomeCallable OnsClient::onsWarnDeleteCallable(const OnsWarnDeleteRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OnsWarnDeleteOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->onsWarnDelete(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OnsClient::OpenOnsServiceOutcome OnsClient::openOnsService(const OpenOnsServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,91 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "ListTagResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest() {}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
std::string ListTagResourcesRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string ListTagResourcesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListTagResourcesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListTagResourcesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerAccumulateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerAccumulateRequest;
|
||||
|
||||
OnsConsumerAccumulateRequest::OnsConsumerAccumulateRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsConsumerAccumulate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsConsumerAccumulateRequest::~OnsConsumerAccumulateRequest()
|
||||
{}
|
||||
|
||||
std::string OnsConsumerAccumulateRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerAccumulateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerAccumulateRequest;
|
||||
|
||||
OnsConsumerAccumulateRequest::OnsConsumerAccumulateRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsConsumerAccumulate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsConsumerAccumulateRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsConsumerAccumulateRequest::~OnsConsumerAccumulateRequest() {}
|
||||
|
||||
std::string OnsConsumerAccumulateRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsConsumerAccumulateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsConsumerAccumulateRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsConsumerAccumulateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsConsumerAccumulateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
bool OnsConsumerAccumulateRequest::getDetail()const
|
||||
{
|
||||
return detail_;
|
||||
void OnsConsumerAccumulateRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsConsumerAccumulateRequest::setDetail(bool detail)
|
||||
{
|
||||
detail_ = detail;
|
||||
setParameter("Detail", detail ? "true" : "false");
|
||||
bool OnsConsumerAccumulateRequest::getDetail() const {
|
||||
return detail_;
|
||||
}
|
||||
|
||||
void OnsConsumerAccumulateRequest::setDetail(bool detail) {
|
||||
detail_ = detail;
|
||||
setParameter(std::string("Detail"), detail ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerGetConnectionRequest;
|
||||
|
||||
OnsConsumerGetConnectionRequest::OnsConsumerGetConnectionRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsConsumerGetConnection")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsConsumerGetConnectionRequest::~OnsConsumerGetConnectionRequest()
|
||||
{}
|
||||
|
||||
std::string OnsConsumerGetConnectionRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerGetConnectionRequest;
|
||||
|
||||
OnsConsumerGetConnectionRequest::OnsConsumerGetConnectionRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsConsumerGetConnection") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsConsumerGetConnectionRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsConsumerGetConnectionRequest::~OnsConsumerGetConnectionRequest() {}
|
||||
|
||||
std::string OnsConsumerGetConnectionRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsConsumerGetConnectionRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsConsumerGetConnectionRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsConsumerGetConnectionRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsConsumerGetConnectionRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsConsumerGetConnectionRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerResetOffsetRequest;
|
||||
|
||||
OnsConsumerResetOffsetRequest::OnsConsumerResetOffsetRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsConsumerResetOffset")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsConsumerResetOffsetRequest::~OnsConsumerResetOffsetRequest()
|
||||
{}
|
||||
|
||||
std::string OnsConsumerResetOffsetRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerResetOffsetRequest;
|
||||
|
||||
OnsConsumerResetOffsetRequest::OnsConsumerResetOffsetRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsConsumerResetOffset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsConsumerResetOffsetRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsConsumerResetOffsetRequest::~OnsConsumerResetOffsetRequest() {}
|
||||
|
||||
std::string OnsConsumerResetOffsetRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
long OnsConsumerResetOffsetRequest::getResetTimestamp()const
|
||||
{
|
||||
return resetTimestamp_;
|
||||
void OnsConsumerResetOffsetRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsConsumerResetOffsetRequest::setResetTimestamp(long resetTimestamp)
|
||||
{
|
||||
resetTimestamp_ = resetTimestamp;
|
||||
setParameter("ResetTimestamp", std::to_string(resetTimestamp));
|
||||
long OnsConsumerResetOffsetRequest::getResetTimestamp() const {
|
||||
return resetTimestamp_;
|
||||
}
|
||||
|
||||
int OnsConsumerResetOffsetRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void OnsConsumerResetOffsetRequest::setResetTimestamp(long resetTimestamp) {
|
||||
resetTimestamp_ = resetTimestamp;
|
||||
setParameter(std::string("ResetTimestamp"), std::to_string(resetTimestamp));
|
||||
}
|
||||
|
||||
void OnsConsumerResetOffsetRequest::setType(int type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", std::to_string(type));
|
||||
int OnsConsumerResetOffsetRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string OnsConsumerResetOffsetRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsConsumerResetOffsetRequest::setType(int type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), std::to_string(type));
|
||||
}
|
||||
|
||||
void OnsConsumerResetOffsetRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsConsumerResetOffsetRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsConsumerResetOffsetRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsConsumerResetOffsetRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsConsumerResetOffsetRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsConsumerResetOffsetRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsConsumerResetOffsetRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerStatusRequest;
|
||||
|
||||
OnsConsumerStatusRequest::OnsConsumerStatusRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsConsumerStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsConsumerStatusRequest::~OnsConsumerStatusRequest()
|
||||
{}
|
||||
|
||||
std::string OnsConsumerStatusRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerStatusRequest;
|
||||
|
||||
OnsConsumerStatusRequest::OnsConsumerStatusRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsConsumerStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsConsumerStatusRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsConsumerStatusRequest::~OnsConsumerStatusRequest() {}
|
||||
|
||||
std::string OnsConsumerStatusRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsConsumerStatusRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsConsumerStatusRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsConsumerStatusRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsConsumerStatusRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
bool OnsConsumerStatusRequest::getNeedJstack()const
|
||||
{
|
||||
return needJstack_;
|
||||
void OnsConsumerStatusRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsConsumerStatusRequest::setNeedJstack(bool needJstack)
|
||||
{
|
||||
needJstack_ = needJstack;
|
||||
setParameter("NeedJstack", needJstack ? "true" : "false");
|
||||
bool OnsConsumerStatusRequest::getNeedJstack() const {
|
||||
return needJstack_;
|
||||
}
|
||||
|
||||
bool OnsConsumerStatusRequest::getDetail()const
|
||||
{
|
||||
return detail_;
|
||||
void OnsConsumerStatusRequest::setNeedJstack(bool needJstack) {
|
||||
needJstack_ = needJstack;
|
||||
setParameter(std::string("NeedJstack"), needJstack ? "true" : "false");
|
||||
}
|
||||
|
||||
void OnsConsumerStatusRequest::setDetail(bool detail)
|
||||
{
|
||||
detail_ = detail;
|
||||
setParameter("Detail", detail ? "true" : "false");
|
||||
bool OnsConsumerStatusRequest::getDetail() const {
|
||||
return detail_;
|
||||
}
|
||||
|
||||
void OnsConsumerStatusRequest::setDetail(bool detail) {
|
||||
detail_ = detail;
|
||||
setParameter(std::string("Detail"), detail ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerTimeSpanRequest;
|
||||
|
||||
OnsConsumerTimeSpanRequest::OnsConsumerTimeSpanRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsConsumerTimeSpan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsConsumerTimeSpanRequest::~OnsConsumerTimeSpanRequest()
|
||||
{}
|
||||
|
||||
std::string OnsConsumerTimeSpanRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsConsumerTimeSpanRequest;
|
||||
|
||||
OnsConsumerTimeSpanRequest::OnsConsumerTimeSpanRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsConsumerTimeSpan") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsConsumerTimeSpanRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsConsumerTimeSpanRequest::~OnsConsumerTimeSpanRequest() {}
|
||||
|
||||
std::string OnsConsumerTimeSpanRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsConsumerTimeSpanRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsConsumerTimeSpanRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsConsumerTimeSpanRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsConsumerTimeSpanRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsConsumerTimeSpanRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsConsumerTimeSpanRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsConsumerTimeSpanRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsConsumerTimeSpanRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsConsumerTimeSpanRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsDLQMessageGetByIdRequest;
|
||||
|
||||
OnsDLQMessageGetByIdRequest::OnsDLQMessageGetByIdRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageGetById")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsDLQMessageGetByIdRequest::~OnsDLQMessageGetByIdRequest()
|
||||
{}
|
||||
|
||||
std::string OnsDLQMessageGetByIdRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsDLQMessageGetByIdRequest;
|
||||
|
||||
OnsDLQMessageGetByIdRequest::OnsDLQMessageGetByIdRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageGetById") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsDLQMessageGetByIdRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsDLQMessageGetByIdRequest::~OnsDLQMessageGetByIdRequest() {}
|
||||
|
||||
std::string OnsDLQMessageGetByIdRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsDLQMessageGetByIdRequest::getMsgId()const
|
||||
{
|
||||
return msgId_;
|
||||
void OnsDLQMessageGetByIdRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsDLQMessageGetByIdRequest::setMsgId(const std::string& msgId)
|
||||
{
|
||||
msgId_ = msgId;
|
||||
setParameter("MsgId", msgId);
|
||||
std::string OnsDLQMessageGetByIdRequest::getMsgId() const {
|
||||
return msgId_;
|
||||
}
|
||||
|
||||
std::string OnsDLQMessageGetByIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsDLQMessageGetByIdRequest::setMsgId(const std::string &msgId) {
|
||||
msgId_ = msgId;
|
||||
setParameter(std::string("MsgId"), msgId);
|
||||
}
|
||||
|
||||
void OnsDLQMessageGetByIdRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsDLQMessageGetByIdRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsDLQMessageGetByIdRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsDLQMessagePageQueryByGroupIdRequest;
|
||||
|
||||
OnsDLQMessagePageQueryByGroupIdRequest::OnsDLQMessagePageQueryByGroupIdRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessagePageQueryByGroupId")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsDLQMessagePageQueryByGroupIdRequest::~OnsDLQMessagePageQueryByGroupIdRequest()
|
||||
{}
|
||||
|
||||
std::string OnsDLQMessagePageQueryByGroupIdRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsDLQMessagePageQueryByGroupIdRequest;
|
||||
|
||||
OnsDLQMessagePageQueryByGroupIdRequest::OnsDLQMessagePageQueryByGroupIdRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessagePageQueryByGroupId") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsDLQMessagePageQueryByGroupIdRequest::~OnsDLQMessagePageQueryByGroupIdRequest() {}
|
||||
|
||||
std::string OnsDLQMessagePageQueryByGroupIdRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
long OnsDLQMessagePageQueryByGroupIdRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
long OnsDLQMessagePageQueryByGroupIdRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
long OnsDLQMessagePageQueryByGroupIdRequest::getBeginTime()const
|
||||
{
|
||||
return beginTime_;
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setBeginTime(long beginTime)
|
||||
{
|
||||
beginTime_ = beginTime;
|
||||
setParameter("BeginTime", std::to_string(beginTime));
|
||||
long OnsDLQMessagePageQueryByGroupIdRequest::getBeginTime() const {
|
||||
return beginTime_;
|
||||
}
|
||||
|
||||
int OnsDLQMessagePageQueryByGroupIdRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setBeginTime(long beginTime) {
|
||||
beginTime_ = beginTime;
|
||||
setParameter(std::string("BeginTime"), std::to_string(beginTime));
|
||||
}
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int OnsDLQMessagePageQueryByGroupIdRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string OnsDLQMessagePageQueryByGroupIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsDLQMessagePageQueryByGroupIdRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
int OnsDLQMessagePageQueryByGroupIdRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int OnsDLQMessagePageQueryByGroupIdRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string OnsDLQMessagePageQueryByGroupIdRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
std::string OnsDLQMessagePageQueryByGroupIdRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsDLQMessageResendByIdRequest;
|
||||
|
||||
OnsDLQMessageResendByIdRequest::OnsDLQMessageResendByIdRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageResendById")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsDLQMessageResendByIdRequest::~OnsDLQMessageResendByIdRequest()
|
||||
{}
|
||||
|
||||
std::string OnsDLQMessageResendByIdRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsDLQMessageResendByIdRequest;
|
||||
|
||||
OnsDLQMessageResendByIdRequest::OnsDLQMessageResendByIdRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageResendById") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsDLQMessageResendByIdRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsDLQMessageResendByIdRequest::~OnsDLQMessageResendByIdRequest() {}
|
||||
|
||||
std::string OnsDLQMessageResendByIdRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsDLQMessageResendByIdRequest::getMsgId()const
|
||||
{
|
||||
return msgId_;
|
||||
void OnsDLQMessageResendByIdRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsDLQMessageResendByIdRequest::setMsgId(const std::string& msgId)
|
||||
{
|
||||
msgId_ = msgId;
|
||||
setParameter("MsgId", msgId);
|
||||
std::string OnsDLQMessageResendByIdRequest::getMsgId() const {
|
||||
return msgId_;
|
||||
}
|
||||
|
||||
std::string OnsDLQMessageResendByIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsDLQMessageResendByIdRequest::setMsgId(const std::string &msgId) {
|
||||
msgId_ = msgId;
|
||||
setParameter(std::string("MsgId"), msgId);
|
||||
}
|
||||
|
||||
void OnsDLQMessageResendByIdRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsDLQMessageResendByIdRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsDLQMessageResendByIdRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupConsumerUpdateRequest;
|
||||
|
||||
OnsGroupConsumerUpdateRequest::OnsGroupConsumerUpdateRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsGroupConsumerUpdate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsGroupConsumerUpdateRequest::~OnsGroupConsumerUpdateRequest()
|
||||
{}
|
||||
|
||||
std::string OnsGroupConsumerUpdateRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupConsumerUpdateRequest;
|
||||
|
||||
OnsGroupConsumerUpdateRequest::OnsGroupConsumerUpdateRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsGroupConsumerUpdate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsGroupConsumerUpdateRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsGroupConsumerUpdateRequest::~OnsGroupConsumerUpdateRequest() {}
|
||||
|
||||
std::string OnsGroupConsumerUpdateRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
bool OnsGroupConsumerUpdateRequest::getReadEnable()const
|
||||
{
|
||||
return readEnable_;
|
||||
void OnsGroupConsumerUpdateRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsGroupConsumerUpdateRequest::setReadEnable(bool readEnable)
|
||||
{
|
||||
readEnable_ = readEnable;
|
||||
setParameter("ReadEnable", readEnable ? "true" : "false");
|
||||
bool OnsGroupConsumerUpdateRequest::getReadEnable() const {
|
||||
return readEnable_;
|
||||
}
|
||||
|
||||
std::string OnsGroupConsumerUpdateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsGroupConsumerUpdateRequest::setReadEnable(bool readEnable) {
|
||||
readEnable_ = readEnable;
|
||||
setParameter(std::string("ReadEnable"), readEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
void OnsGroupConsumerUpdateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsGroupConsumerUpdateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsGroupConsumerUpdateRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupCreateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupCreateRequest;
|
||||
|
||||
OnsGroupCreateRequest::OnsGroupCreateRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsGroupCreate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsGroupCreateRequest::~OnsGroupCreateRequest()
|
||||
{}
|
||||
|
||||
std::string OnsGroupCreateRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupCreateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupCreateRequest;
|
||||
|
||||
OnsGroupCreateRequest::OnsGroupCreateRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsGroupCreate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsGroupCreateRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsGroupCreateRequest::~OnsGroupCreateRequest() {}
|
||||
|
||||
std::string OnsGroupCreateRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsGroupCreateRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
void OnsGroupCreateRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsGroupCreateRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
std::string OnsGroupCreateRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
std::string OnsGroupCreateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsGroupCreateRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
void OnsGroupCreateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsGroupCreateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsGroupCreateRequest::getGroupType()const
|
||||
{
|
||||
return groupType_;
|
||||
void OnsGroupCreateRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsGroupCreateRequest::setGroupType(const std::string& groupType)
|
||||
{
|
||||
groupType_ = groupType;
|
||||
setParameter("GroupType", groupType);
|
||||
std::string OnsGroupCreateRequest::getGroupType() const {
|
||||
return groupType_;
|
||||
}
|
||||
|
||||
void OnsGroupCreateRequest::setGroupType(const std::string &groupType) {
|
||||
groupType_ = groupType;
|
||||
setParameter(std::string("GroupType"), groupType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupDeleteRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupDeleteRequest;
|
||||
|
||||
OnsGroupDeleteRequest::OnsGroupDeleteRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsGroupDelete")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsGroupDeleteRequest::~OnsGroupDeleteRequest()
|
||||
{}
|
||||
|
||||
std::string OnsGroupDeleteRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupDeleteRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupDeleteRequest;
|
||||
|
||||
OnsGroupDeleteRequest::OnsGroupDeleteRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsGroupDelete") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsGroupDeleteRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsGroupDeleteRequest::~OnsGroupDeleteRequest() {}
|
||||
|
||||
std::string OnsGroupDeleteRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsGroupDeleteRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsGroupDeleteRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsGroupDeleteRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsGroupDeleteRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsGroupDeleteRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,78 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupListRequest;
|
||||
|
||||
OnsGroupListRequest::OnsGroupListRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsGroupList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsGroupListRequest::~OnsGroupListRequest()
|
||||
{}
|
||||
|
||||
std::string OnsGroupListRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupListRequest;
|
||||
|
||||
OnsGroupListRequest::OnsGroupListRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsGroupList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsGroupListRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsGroupListRequest::~OnsGroupListRequest() {}
|
||||
|
||||
std::string OnsGroupListRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsGroupListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsGroupListRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsGroupListRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsGroupListRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string OnsGroupListRequest::getGroupType()const
|
||||
{
|
||||
return groupType_;
|
||||
void OnsGroupListRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void OnsGroupListRequest::setGroupType(const std::string& groupType)
|
||||
{
|
||||
groupType_ = groupType;
|
||||
setParameter("GroupType", groupType);
|
||||
std::string OnsGroupListRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::vector<OnsGroupListRequest::Tag> OnsGroupListRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void OnsGroupListRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsGroupListRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::string OnsGroupListRequest::getGroupType() const {
|
||||
return groupType_;
|
||||
}
|
||||
|
||||
void OnsGroupListRequest::setGroupType(const std::string &groupType) {
|
||||
groupType_ = groupType;
|
||||
setParameter(std::string("GroupType"), groupType);
|
||||
}
|
||||
|
||||
std::vector<OnsGroupListRequest::Tag> OnsGroupListRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void OnsGroupListRequest::setTag(const std::vector<OnsGroupListRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupSubDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupSubDetailRequest;
|
||||
|
||||
OnsGroupSubDetailRequest::OnsGroupSubDetailRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsGroupSubDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsGroupSubDetailRequest::~OnsGroupSubDetailRequest()
|
||||
{}
|
||||
|
||||
std::string OnsGroupSubDetailRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsGroupSubDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsGroupSubDetailRequest;
|
||||
|
||||
OnsGroupSubDetailRequest::OnsGroupSubDetailRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsGroupSubDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsGroupSubDetailRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
OnsGroupSubDetailRequest::~OnsGroupSubDetailRequest() {}
|
||||
|
||||
std::string OnsGroupSubDetailRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsGroupSubDetailRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsGroupSubDetailRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsGroupSubDetailRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsGroupSubDetailRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsGroupSubDetailRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceBaseInfoRequest;
|
||||
|
||||
OnsInstanceBaseInfoRequest::OnsInstanceBaseInfoRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsInstanceBaseInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsInstanceBaseInfoRequest::~OnsInstanceBaseInfoRequest()
|
||||
{}
|
||||
|
||||
std::string OnsInstanceBaseInfoRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceBaseInfoRequest;
|
||||
|
||||
OnsInstanceBaseInfoRequest::OnsInstanceBaseInfoRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsInstanceBaseInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsInstanceBaseInfoRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
OnsInstanceBaseInfoRequest::~OnsInstanceBaseInfoRequest() {}
|
||||
|
||||
std::string OnsInstanceBaseInfoRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsInstanceBaseInfoRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,17 +58,23 @@ void OnsInstanceBaseInfoResult::parse(const std::string &payload)
|
||||
instanceBaseInfo_.instanceId = instanceBaseInfoNode["InstanceId"].asString();
|
||||
if(!instanceBaseInfoNode["InstanceType"].isNull())
|
||||
instanceBaseInfo_.instanceType = std::stoi(instanceBaseInfoNode["InstanceType"].asString());
|
||||
if(!instanceBaseInfoNode["CreateTime"].isNull())
|
||||
instanceBaseInfo_.createTime = instanceBaseInfoNode["CreateTime"].asString();
|
||||
if(!instanceBaseInfoNode["spInstanceId"].isNull())
|
||||
instanceBaseInfo_.spInstanceId = instanceBaseInfoNode["spInstanceId"].asString();
|
||||
if(!instanceBaseInfoNode["spInstanceType"].isNull())
|
||||
instanceBaseInfo_.spInstanceType = std::stoi(instanceBaseInfoNode["spInstanceType"].asString());
|
||||
auto endpointsNode = instanceBaseInfoNode["Endpoints"];
|
||||
if(!endpointsNode["TcpEndpoint"].isNull())
|
||||
instanceBaseInfo_.endpoints.tcpEndpoint = endpointsNode["TcpEndpoint"].asString();
|
||||
if(!endpointsNode["TcpInternetEndpoint"].isNull())
|
||||
instanceBaseInfo_.endpoints.tcpInternetEndpoint = endpointsNode["TcpInternetEndpoint"].asString();
|
||||
if(!endpointsNode["HttpInternetEndpoint"].isNull())
|
||||
instanceBaseInfo_.endpoints.httpInternetEndpoint = endpointsNode["HttpInternetEndpoint"].asString();
|
||||
if(!endpointsNode["HttpInternalEndpoint"].isNull())
|
||||
instanceBaseInfo_.endpoints.httpInternalEndpoint = endpointsNode["HttpInternalEndpoint"].asString();
|
||||
if(!endpointsNode["HttpInternetSecureEndpoint"].isNull())
|
||||
instanceBaseInfo_.endpoints.httpInternetSecureEndpoint = endpointsNode["HttpInternetSecureEndpoint"].asString();
|
||||
if(!endpointsNode["TcpInternetEndpoint"].isNull())
|
||||
instanceBaseInfo_.endpoints.tcpInternetEndpoint = endpointsNode["TcpInternetEndpoint"].asString();
|
||||
if(!value["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceCreateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceCreateRequest;
|
||||
|
||||
OnsInstanceCreateRequest::OnsInstanceCreateRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsInstanceCreate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsInstanceCreateRequest::~OnsInstanceCreateRequest()
|
||||
{}
|
||||
|
||||
std::string OnsInstanceCreateRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceCreateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceCreateRequest;
|
||||
|
||||
OnsInstanceCreateRequest::OnsInstanceCreateRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsInstanceCreate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsInstanceCreateRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
OnsInstanceCreateRequest::~OnsInstanceCreateRequest() {}
|
||||
|
||||
std::string OnsInstanceCreateRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
std::string OnsInstanceCreateRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
void OnsInstanceCreateRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
void OnsInstanceCreateRequest::setInstanceName(const std::string& instanceName)
|
||||
{
|
||||
instanceName_ = instanceName;
|
||||
setParameter("InstanceName", instanceName);
|
||||
std::string OnsInstanceCreateRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
void OnsInstanceCreateRequest::setInstanceName(const std::string &instanceName) {
|
||||
instanceName_ = instanceName;
|
||||
setParameter(std::string("InstanceName"), instanceName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceDeleteRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceDeleteRequest;
|
||||
|
||||
OnsInstanceDeleteRequest::OnsInstanceDeleteRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsInstanceDelete")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsInstanceDeleteRequest::~OnsInstanceDeleteRequest()
|
||||
{}
|
||||
|
||||
std::string OnsInstanceDeleteRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceDeleteRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceDeleteRequest;
|
||||
|
||||
OnsInstanceDeleteRequest::OnsInstanceDeleteRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsInstanceDelete") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsInstanceDeleteRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
OnsInstanceDeleteRequest::~OnsInstanceDeleteRequest() {}
|
||||
|
||||
std::string OnsInstanceDeleteRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsInstanceDeleteRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,45 +1,50 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceInServiceListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceInServiceListRequest;
|
||||
|
||||
OnsInstanceInServiceListRequest::OnsInstanceInServiceListRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsInstanceInServiceList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsInstanceInServiceListRequest::~OnsInstanceInServiceListRequest()
|
||||
{}
|
||||
|
||||
std::vector<OnsInstanceInServiceListRequest::Tag> OnsInstanceInServiceListRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceInServiceListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceInServiceListRequest;
|
||||
|
||||
OnsInstanceInServiceListRequest::OnsInstanceInServiceListRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsInstanceInServiceList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsInstanceInServiceListRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
OnsInstanceInServiceListRequest::~OnsInstanceInServiceListRequest() {}
|
||||
|
||||
std::string OnsInstanceInServiceListRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void OnsInstanceInServiceListRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::vector<OnsInstanceInServiceListRequest::Tag> OnsInstanceInServiceListRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void OnsInstanceInServiceListRequest::setTag(const std::vector<OnsInstanceInServiceListRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceUpdateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceUpdateRequest;
|
||||
|
||||
OnsInstanceUpdateRequest::OnsInstanceUpdateRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsInstanceUpdate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsInstanceUpdateRequest::~OnsInstanceUpdateRequest()
|
||||
{}
|
||||
|
||||
std::string OnsInstanceUpdateRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsInstanceUpdateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsInstanceUpdateRequest;
|
||||
|
||||
OnsInstanceUpdateRequest::OnsInstanceUpdateRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsInstanceUpdate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsInstanceUpdateRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
OnsInstanceUpdateRequest::~OnsInstanceUpdateRequest() {}
|
||||
|
||||
std::string OnsInstanceUpdateRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
std::string OnsInstanceUpdateRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
void OnsInstanceUpdateRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
void OnsInstanceUpdateRequest::setInstanceName(const std::string& instanceName)
|
||||
{
|
||||
instanceName_ = instanceName;
|
||||
setParameter("InstanceName", instanceName);
|
||||
std::string OnsInstanceUpdateRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
std::string OnsInstanceUpdateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsInstanceUpdateRequest::setInstanceName(const std::string &instanceName) {
|
||||
instanceName_ = instanceName;
|
||||
setParameter(std::string("InstanceName"), instanceName);
|
||||
}
|
||||
|
||||
void OnsInstanceUpdateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsInstanceUpdateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsInstanceUpdateRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessageGetByKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessageGetByKeyRequest;
|
||||
|
||||
OnsMessageGetByKeyRequest::OnsMessageGetByKeyRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByKey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsMessageGetByKeyRequest::~OnsMessageGetByKeyRequest()
|
||||
{}
|
||||
|
||||
std::string OnsMessageGetByKeyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessageGetByKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessageGetByKeyRequest;
|
||||
|
||||
OnsMessageGetByKeyRequest::OnsMessageGetByKeyRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByKey") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsMessageGetByKeyRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
OnsMessageGetByKeyRequest::~OnsMessageGetByKeyRequest() {}
|
||||
|
||||
std::string OnsMessageGetByKeyRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsMessageGetByKeyRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsMessageGetByKeyRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsMessageGetByKeyRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsMessageGetByKeyRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
std::string OnsMessageGetByKeyRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
void OnsMessageGetByKeyRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
void OnsMessageGetByKeyRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
std::string OnsMessageGetByKeyRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void OnsMessageGetByKeyRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessageGetByMsgIdRequest;
|
||||
|
||||
OnsMessageGetByMsgIdRequest::OnsMessageGetByMsgIdRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByMsgId")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsMessageGetByMsgIdRequest::~OnsMessageGetByMsgIdRequest()
|
||||
{}
|
||||
|
||||
std::string OnsMessageGetByMsgIdRequest::getMsgId()const
|
||||
{
|
||||
return msgId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessageGetByMsgIdRequest;
|
||||
|
||||
OnsMessageGetByMsgIdRequest::OnsMessageGetByMsgIdRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByMsgId") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsMessageGetByMsgIdRequest::setMsgId(const std::string& msgId)
|
||||
{
|
||||
msgId_ = msgId;
|
||||
setParameter("MsgId", msgId);
|
||||
OnsMessageGetByMsgIdRequest::~OnsMessageGetByMsgIdRequest() {}
|
||||
|
||||
std::string OnsMessageGetByMsgIdRequest::getMsgId() const {
|
||||
return msgId_;
|
||||
}
|
||||
|
||||
std::string OnsMessageGetByMsgIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsMessageGetByMsgIdRequest::setMsgId(const std::string &msgId) {
|
||||
msgId_ = msgId;
|
||||
setParameter(std::string("MsgId"), msgId);
|
||||
}
|
||||
|
||||
void OnsMessageGetByMsgIdRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsMessageGetByMsgIdRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsMessageGetByMsgIdRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsMessageGetByMsgIdRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsMessageGetByMsgIdRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsMessageGetByMsgIdRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsMessageGetByMsgIdRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessagePageQueryByTopicRequest;
|
||||
|
||||
OnsMessagePageQueryByTopicRequest::OnsMessagePageQueryByTopicRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsMessagePageQueryByTopic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsMessagePageQueryByTopicRequest::~OnsMessagePageQueryByTopicRequest()
|
||||
{}
|
||||
|
||||
long OnsMessagePageQueryByTopicRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessagePageQueryByTopicRequest;
|
||||
|
||||
OnsMessagePageQueryByTopicRequest::OnsMessagePageQueryByTopicRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsMessagePageQueryByTopic") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsMessagePageQueryByTopicRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
OnsMessagePageQueryByTopicRequest::~OnsMessagePageQueryByTopicRequest() {}
|
||||
|
||||
long OnsMessagePageQueryByTopicRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
long OnsMessagePageQueryByTopicRequest::getBeginTime()const
|
||||
{
|
||||
return beginTime_;
|
||||
void OnsMessagePageQueryByTopicRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
void OnsMessagePageQueryByTopicRequest::setBeginTime(long beginTime)
|
||||
{
|
||||
beginTime_ = beginTime;
|
||||
setParameter("BeginTime", std::to_string(beginTime));
|
||||
long OnsMessagePageQueryByTopicRequest::getBeginTime() const {
|
||||
return beginTime_;
|
||||
}
|
||||
|
||||
int OnsMessagePageQueryByTopicRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void OnsMessagePageQueryByTopicRequest::setBeginTime(long beginTime) {
|
||||
beginTime_ = beginTime;
|
||||
setParameter(std::string("BeginTime"), std::to_string(beginTime));
|
||||
}
|
||||
|
||||
void OnsMessagePageQueryByTopicRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int OnsMessagePageQueryByTopicRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string OnsMessagePageQueryByTopicRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsMessagePageQueryByTopicRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
void OnsMessagePageQueryByTopicRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsMessagePageQueryByTopicRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
int OnsMessagePageQueryByTopicRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void OnsMessagePageQueryByTopicRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsMessagePageQueryByTopicRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int OnsMessagePageQueryByTopicRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string OnsMessagePageQueryByTopicRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsMessagePageQueryByTopicRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void OnsMessagePageQueryByTopicRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsMessagePageQueryByTopicRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
std::string OnsMessagePageQueryByTopicRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void OnsMessagePageQueryByTopicRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
void OnsMessagePageQueryByTopicRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
std::string OnsMessagePageQueryByTopicRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void OnsMessagePageQueryByTopicRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessagePushRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessagePushRequest;
|
||||
|
||||
OnsMessagePushRequest::OnsMessagePushRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsMessagePush")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsMessagePushRequest::~OnsMessagePushRequest()
|
||||
{}
|
||||
|
||||
std::string OnsMessagePushRequest::getClientId()const
|
||||
{
|
||||
return clientId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessagePushRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessagePushRequest;
|
||||
|
||||
OnsMessagePushRequest::OnsMessagePushRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsMessagePush") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsMessagePushRequest::setClientId(const std::string& clientId)
|
||||
{
|
||||
clientId_ = clientId;
|
||||
setParameter("ClientId", clientId);
|
||||
OnsMessagePushRequest::~OnsMessagePushRequest() {}
|
||||
|
||||
std::string OnsMessagePushRequest::getClientId() const {
|
||||
return clientId_;
|
||||
}
|
||||
|
||||
std::string OnsMessagePushRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void OnsMessagePushRequest::setClientId(const std::string &clientId) {
|
||||
clientId_ = clientId;
|
||||
setParameter(std::string("ClientId"), clientId);
|
||||
}
|
||||
|
||||
void OnsMessagePushRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string OnsMessagePushRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string OnsMessagePushRequest::getMsgId()const
|
||||
{
|
||||
return msgId_;
|
||||
void OnsMessagePushRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsMessagePushRequest::setMsgId(const std::string& msgId)
|
||||
{
|
||||
msgId_ = msgId;
|
||||
setParameter("MsgId", msgId);
|
||||
std::string OnsMessagePushRequest::getMsgId() const {
|
||||
return msgId_;
|
||||
}
|
||||
|
||||
std::string OnsMessagePushRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsMessagePushRequest::setMsgId(const std::string &msgId) {
|
||||
msgId_ = msgId;
|
||||
setParameter(std::string("MsgId"), msgId);
|
||||
}
|
||||
|
||||
void OnsMessagePushRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsMessagePushRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsMessagePushRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsMessagePushRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsMessagePushRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsMessagePushRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsMessagePushRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessageTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessageTraceRequest;
|
||||
|
||||
OnsMessageTraceRequest::OnsMessageTraceRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsMessageTrace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsMessageTraceRequest::~OnsMessageTraceRequest()
|
||||
{}
|
||||
|
||||
std::string OnsMessageTraceRequest::getMsgId()const
|
||||
{
|
||||
return msgId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMessageTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMessageTraceRequest;
|
||||
|
||||
OnsMessageTraceRequest::OnsMessageTraceRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsMessageTrace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsMessageTraceRequest::setMsgId(const std::string& msgId)
|
||||
{
|
||||
msgId_ = msgId;
|
||||
setParameter("MsgId", msgId);
|
||||
OnsMessageTraceRequest::~OnsMessageTraceRequest() {}
|
||||
|
||||
std::string OnsMessageTraceRequest::getMsgId() const {
|
||||
return msgId_;
|
||||
}
|
||||
|
||||
std::string OnsMessageTraceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsMessageTraceRequest::setMsgId(const std::string &msgId) {
|
||||
msgId_ = msgId;
|
||||
setParameter(std::string("MsgId"), msgId);
|
||||
}
|
||||
|
||||
void OnsMessageTraceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsMessageTraceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsMessageTraceRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsMessageTraceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsMessageTraceRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsMessageTraceRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsMessageTraceRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsRegionListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsRegionListRequest;
|
||||
|
||||
OnsRegionListRequest::OnsRegionListRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsRegionList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsRegionListRequest::~OnsRegionListRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsRegionListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsRegionListRequest;
|
||||
|
||||
OnsRegionListRequest::OnsRegionListRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsRegionList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsRegionListRequest::~OnsRegionListRequest() {}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void OnsRegionListResult::parse(const std::string &payload)
|
||||
for (auto valueDataRegionDo : allDataNode)
|
||||
{
|
||||
RegionDo dataObject;
|
||||
if(!valueDataRegionDo["Id"].isNull())
|
||||
dataObject.id = std::stol(valueDataRegionDo["Id"].asString());
|
||||
if(!valueDataRegionDo["OnsRegionId"].isNull())
|
||||
dataObject.onsRegionId = valueDataRegionDo["OnsRegionId"].asString();
|
||||
if(!valueDataRegionDo["UpdateTime"].isNull())
|
||||
dataObject.updateTime = std::stol(valueDataRegionDo["UpdateTime"].asString());
|
||||
if(!valueDataRegionDo["RegionName"].isNull())
|
||||
dataObject.regionName = valueDataRegionDo["RegionName"].asString();
|
||||
if(!valueDataRegionDo["ChannelId"].isNull())
|
||||
dataObject.channelId = std::stoi(valueDataRegionDo["ChannelId"].asString());
|
||||
if(!valueDataRegionDo["ChannelName"].isNull())
|
||||
dataObject.channelName = valueDataRegionDo["ChannelName"].asString();
|
||||
if(!valueDataRegionDo["CreateTime"].isNull())
|
||||
dataObject.createTime = std::stol(valueDataRegionDo["CreateTime"].asString());
|
||||
if(!valueDataRegionDo["UpdateTime"].isNull())
|
||||
dataObject.updateTime = std::stol(valueDataRegionDo["UpdateTime"].asString());
|
||||
if(!valueDataRegionDo["ChannelId"].isNull())
|
||||
dataObject.channelId = std::stoi(valueDataRegionDo["ChannelId"].asString());
|
||||
if(!valueDataRegionDo["Id"].isNull())
|
||||
dataObject.id = std::stol(valueDataRegionDo["Id"].asString());
|
||||
if(!valueDataRegionDo["OnsRegionId"].isNull())
|
||||
dataObject.onsRegionId = valueDataRegionDo["OnsRegionId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HelpUrl"].isNull())
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicCreateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicCreateRequest;
|
||||
|
||||
OnsTopicCreateRequest::OnsTopicCreateRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTopicCreate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTopicCreateRequest::~OnsTopicCreateRequest()
|
||||
{}
|
||||
|
||||
int OnsTopicCreateRequest::getMessageType()const
|
||||
{
|
||||
return messageType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicCreateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicCreateRequest;
|
||||
|
||||
OnsTopicCreateRequest::OnsTopicCreateRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTopicCreate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTopicCreateRequest::setMessageType(int messageType)
|
||||
{
|
||||
messageType_ = messageType;
|
||||
setParameter("MessageType", std::to_string(messageType));
|
||||
OnsTopicCreateRequest::~OnsTopicCreateRequest() {}
|
||||
|
||||
int OnsTopicCreateRequest::getMessageType() const {
|
||||
return messageType_;
|
||||
}
|
||||
|
||||
std::string OnsTopicCreateRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
void OnsTopicCreateRequest::setMessageType(int messageType) {
|
||||
messageType_ = messageType;
|
||||
setParameter(std::string("MessageType"), std::to_string(messageType));
|
||||
}
|
||||
|
||||
void OnsTopicCreateRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
std::string OnsTopicCreateRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
std::string OnsTopicCreateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsTopicCreateRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
void OnsTopicCreateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsTopicCreateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsTopicCreateRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTopicCreateRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTopicCreateRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTopicCreateRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsTopicCreateRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicDeleteRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicDeleteRequest;
|
||||
|
||||
OnsTopicDeleteRequest::OnsTopicDeleteRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTopicDelete")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTopicDeleteRequest::~OnsTopicDeleteRequest()
|
||||
{}
|
||||
|
||||
std::string OnsTopicDeleteRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicDeleteRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicDeleteRequest;
|
||||
|
||||
OnsTopicDeleteRequest::OnsTopicDeleteRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTopicDelete") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTopicDeleteRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
OnsTopicDeleteRequest::~OnsTopicDeleteRequest() {}
|
||||
|
||||
std::string OnsTopicDeleteRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsTopicDeleteRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTopicDeleteRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTopicDeleteRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTopicDeleteRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsTopicDeleteRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,67 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicListRequest;
|
||||
|
||||
OnsTopicListRequest::OnsTopicListRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTopicList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTopicListRequest::~OnsTopicListRequest()
|
||||
{}
|
||||
|
||||
std::string OnsTopicListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicListRequest;
|
||||
|
||||
OnsTopicListRequest::OnsTopicListRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTopicList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTopicListRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
OnsTopicListRequest::~OnsTopicListRequest() {}
|
||||
|
||||
std::string OnsTopicListRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string OnsTopicListRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTopicListRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void OnsTopicListRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTopicListRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::vector<OnsTopicListRequest::Tag> OnsTopicListRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void OnsTopicListRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTopicListRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::string OnsTopicListRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsTopicListRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
std::vector<OnsTopicListRequest::Tag> OnsTopicListRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void OnsTopicListRequest::setTag(const std::vector<OnsTopicListRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicStatusRequest;
|
||||
|
||||
OnsTopicStatusRequest::OnsTopicStatusRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTopicStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTopicStatusRequest::~OnsTopicStatusRequest()
|
||||
{}
|
||||
|
||||
std::string OnsTopicStatusRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicStatusRequest;
|
||||
|
||||
OnsTopicStatusRequest::OnsTopicStatusRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTopicStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTopicStatusRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
OnsTopicStatusRequest::~OnsTopicStatusRequest() {}
|
||||
|
||||
std::string OnsTopicStatusRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsTopicStatusRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTopicStatusRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTopicStatusRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTopicStatusRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsTopicStatusRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicSubDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicSubDetailRequest;
|
||||
|
||||
OnsTopicSubDetailRequest::OnsTopicSubDetailRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTopicSubDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTopicSubDetailRequest::~OnsTopicSubDetailRequest()
|
||||
{}
|
||||
|
||||
std::string OnsTopicSubDetailRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicSubDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicSubDetailRequest;
|
||||
|
||||
OnsTopicSubDetailRequest::OnsTopicSubDetailRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTopicSubDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTopicSubDetailRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
OnsTopicSubDetailRequest::~OnsTopicSubDetailRequest() {}
|
||||
|
||||
std::string OnsTopicSubDetailRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsTopicSubDetailRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTopicSubDetailRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTopicSubDetailRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTopicSubDetailRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsTopicSubDetailRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicUpdateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicUpdateRequest;
|
||||
|
||||
OnsTopicUpdateRequest::OnsTopicUpdateRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTopicUpdate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTopicUpdateRequest::~OnsTopicUpdateRequest()
|
||||
{}
|
||||
|
||||
int OnsTopicUpdateRequest::getPerm()const
|
||||
{
|
||||
return perm_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTopicUpdateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTopicUpdateRequest;
|
||||
|
||||
OnsTopicUpdateRequest::OnsTopicUpdateRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTopicUpdate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTopicUpdateRequest::setPerm(int perm)
|
||||
{
|
||||
perm_ = perm;
|
||||
setParameter("Perm", std::to_string(perm));
|
||||
OnsTopicUpdateRequest::~OnsTopicUpdateRequest() {}
|
||||
|
||||
int OnsTopicUpdateRequest::getPerm() const {
|
||||
return perm_;
|
||||
}
|
||||
|
||||
std::string OnsTopicUpdateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsTopicUpdateRequest::setPerm(int perm) {
|
||||
perm_ = perm;
|
||||
setParameter(std::string("Perm"), std::to_string(perm));
|
||||
}
|
||||
|
||||
void OnsTopicUpdateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsTopicUpdateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsTopicUpdateRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTopicUpdateRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTopicUpdateRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTopicUpdateRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsTopicUpdateRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTraceGetResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTraceGetResultRequest;
|
||||
|
||||
OnsTraceGetResultRequest::OnsTraceGetResultRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTraceGetResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTraceGetResultRequest::~OnsTraceGetResultRequest()
|
||||
{}
|
||||
|
||||
std::string OnsTraceGetResultRequest::getQueryId()const
|
||||
{
|
||||
return queryId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTraceGetResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTraceGetResultRequest;
|
||||
|
||||
OnsTraceGetResultRequest::OnsTraceGetResultRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTraceGetResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTraceGetResultRequest::setQueryId(const std::string& queryId)
|
||||
{
|
||||
queryId_ = queryId;
|
||||
setParameter("QueryId", queryId);
|
||||
OnsTraceGetResultRequest::~OnsTraceGetResultRequest() {}
|
||||
|
||||
std::string OnsTraceGetResultRequest::getQueryId() const {
|
||||
return queryId_;
|
||||
}
|
||||
|
||||
void OnsTraceGetResultRequest::setQueryId(const std::string &queryId) {
|
||||
queryId_ = queryId;
|
||||
setParameter(std::string("QueryId"), queryId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgIdRequest;
|
||||
|
||||
OnsTraceQueryByMsgIdRequest::OnsTraceQueryByMsgIdRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgId")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTraceQueryByMsgIdRequest::~OnsTraceQueryByMsgIdRequest()
|
||||
{}
|
||||
|
||||
std::string OnsTraceQueryByMsgIdRequest::getMsgId()const
|
||||
{
|
||||
return msgId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgIdRequest;
|
||||
|
||||
OnsTraceQueryByMsgIdRequest::OnsTraceQueryByMsgIdRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgId") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgIdRequest::setMsgId(const std::string& msgId)
|
||||
{
|
||||
msgId_ = msgId;
|
||||
setParameter("MsgId", msgId);
|
||||
OnsTraceQueryByMsgIdRequest::~OnsTraceQueryByMsgIdRequest() {}
|
||||
|
||||
std::string OnsTraceQueryByMsgIdRequest::getMsgId() const {
|
||||
return msgId_;
|
||||
}
|
||||
|
||||
long OnsTraceQueryByMsgIdRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
void OnsTraceQueryByMsgIdRequest::setMsgId(const std::string &msgId) {
|
||||
msgId_ = msgId;
|
||||
setParameter(std::string("MsgId"), msgId);
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgIdRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
long OnsTraceQueryByMsgIdRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
long OnsTraceQueryByMsgIdRequest::getBeginTime()const
|
||||
{
|
||||
return beginTime_;
|
||||
void OnsTraceQueryByMsgIdRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgIdRequest::setBeginTime(long beginTime)
|
||||
{
|
||||
beginTime_ = beginTime;
|
||||
setParameter("BeginTime", std::to_string(beginTime));
|
||||
long OnsTraceQueryByMsgIdRequest::getBeginTime() const {
|
||||
return beginTime_;
|
||||
}
|
||||
|
||||
std::string OnsTraceQueryByMsgIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsTraceQueryByMsgIdRequest::setBeginTime(long beginTime) {
|
||||
beginTime_ = beginTime;
|
||||
setParameter(std::string("BeginTime"), std::to_string(beginTime));
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgIdRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsTraceQueryByMsgIdRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsTraceQueryByMsgIdRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTraceQueryByMsgIdRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgIdRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTraceQueryByMsgIdRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgIdRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgKeyRequest;
|
||||
|
||||
OnsTraceQueryByMsgKeyRequest::OnsTraceQueryByMsgKeyRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgKey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTraceQueryByMsgKeyRequest::~OnsTraceQueryByMsgKeyRequest()
|
||||
{}
|
||||
|
||||
long OnsTraceQueryByMsgKeyRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgKeyRequest;
|
||||
|
||||
OnsTraceQueryByMsgKeyRequest::OnsTraceQueryByMsgKeyRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgKey") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgKeyRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
OnsTraceQueryByMsgKeyRequest::~OnsTraceQueryByMsgKeyRequest() {}
|
||||
|
||||
long OnsTraceQueryByMsgKeyRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
long OnsTraceQueryByMsgKeyRequest::getBeginTime()const
|
||||
{
|
||||
return beginTime_;
|
||||
void OnsTraceQueryByMsgKeyRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgKeyRequest::setBeginTime(long beginTime)
|
||||
{
|
||||
beginTime_ = beginTime;
|
||||
setParameter("BeginTime", std::to_string(beginTime));
|
||||
long OnsTraceQueryByMsgKeyRequest::getBeginTime() const {
|
||||
return beginTime_;
|
||||
}
|
||||
|
||||
std::string OnsTraceQueryByMsgKeyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsTraceQueryByMsgKeyRequest::setBeginTime(long beginTime) {
|
||||
beginTime_ = beginTime;
|
||||
setParameter(std::string("BeginTime"), std::to_string(beginTime));
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgKeyRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsTraceQueryByMsgKeyRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsTraceQueryByMsgKeyRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTraceQueryByMsgKeyRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgKeyRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTraceQueryByMsgKeyRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
std::string OnsTraceQueryByMsgKeyRequest::getMsgKey()const
|
||||
{
|
||||
return msgKey_;
|
||||
void OnsTraceQueryByMsgKeyRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgKeyRequest::setMsgKey(const std::string& msgKey)
|
||||
{
|
||||
msgKey_ = msgKey;
|
||||
setParameter("MsgKey", msgKey);
|
||||
std::string OnsTraceQueryByMsgKeyRequest::getMsgKey() const {
|
||||
return msgKey_;
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgKeyRequest::setMsgKey(const std::string &msgKey) {
|
||||
msgKey_ = msgKey;
|
||||
setParameter(std::string("MsgKey"), msgKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTrendGroupOutputTpsRequest;
|
||||
|
||||
OnsTrendGroupOutputTpsRequest::OnsTrendGroupOutputTpsRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTrendGroupOutputTps")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTrendGroupOutputTpsRequest::~OnsTrendGroupOutputTpsRequest()
|
||||
{}
|
||||
|
||||
long OnsTrendGroupOutputTpsRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTrendGroupOutputTpsRequest;
|
||||
|
||||
OnsTrendGroupOutputTpsRequest::OnsTrendGroupOutputTpsRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTrendGroupOutputTps") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTrendGroupOutputTpsRequest::setPeriod(long period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
OnsTrendGroupOutputTpsRequest::~OnsTrendGroupOutputTpsRequest() {}
|
||||
|
||||
long OnsTrendGroupOutputTpsRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
std::string OnsTrendGroupOutputTpsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void OnsTrendGroupOutputTpsRequest::setPeriod(long period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
void OnsTrendGroupOutputTpsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string OnsTrendGroupOutputTpsRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
long OnsTrendGroupOutputTpsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
void OnsTrendGroupOutputTpsRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void OnsTrendGroupOutputTpsRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
long OnsTrendGroupOutputTpsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
long OnsTrendGroupOutputTpsRequest::getBeginTime()const
|
||||
{
|
||||
return beginTime_;
|
||||
void OnsTrendGroupOutputTpsRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
void OnsTrendGroupOutputTpsRequest::setBeginTime(long beginTime)
|
||||
{
|
||||
beginTime_ = beginTime;
|
||||
setParameter("BeginTime", std::to_string(beginTime));
|
||||
long OnsTrendGroupOutputTpsRequest::getBeginTime() const {
|
||||
return beginTime_;
|
||||
}
|
||||
|
||||
int OnsTrendGroupOutputTpsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void OnsTrendGroupOutputTpsRequest::setBeginTime(long beginTime) {
|
||||
beginTime_ = beginTime;
|
||||
setParameter(std::string("BeginTime"), std::to_string(beginTime));
|
||||
}
|
||||
|
||||
void OnsTrendGroupOutputTpsRequest::setType(int type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", std::to_string(type));
|
||||
int OnsTrendGroupOutputTpsRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string OnsTrendGroupOutputTpsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsTrendGroupOutputTpsRequest::setType(int type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), std::to_string(type));
|
||||
}
|
||||
|
||||
void OnsTrendGroupOutputTpsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsTrendGroupOutputTpsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsTrendGroupOutputTpsRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTrendGroupOutputTpsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTrendGroupOutputTpsRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTrendGroupOutputTpsRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsTrendGroupOutputTpsRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTrendTopicInputTpsRequest;
|
||||
|
||||
OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsTrendTopicInputTps")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest()
|
||||
{}
|
||||
|
||||
long OnsTrendTopicInputTpsRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsTrendTopicInputTpsRequest;
|
||||
|
||||
OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OnsTrendTopicInputTps") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void OnsTrendTopicInputTpsRequest::setPeriod(long period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest() {}
|
||||
|
||||
long OnsTrendTopicInputTpsRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
long OnsTrendTopicInputTpsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
void OnsTrendTopicInputTpsRequest::setPeriod(long period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
void OnsTrendTopicInputTpsRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
long OnsTrendTopicInputTpsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
long OnsTrendTopicInputTpsRequest::getBeginTime()const
|
||||
{
|
||||
return beginTime_;
|
||||
void OnsTrendTopicInputTpsRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
void OnsTrendTopicInputTpsRequest::setBeginTime(long beginTime)
|
||||
{
|
||||
beginTime_ = beginTime;
|
||||
setParameter("BeginTime", std::to_string(beginTime));
|
||||
long OnsTrendTopicInputTpsRequest::getBeginTime() const {
|
||||
return beginTime_;
|
||||
}
|
||||
|
||||
int OnsTrendTopicInputTpsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void OnsTrendTopicInputTpsRequest::setBeginTime(long beginTime) {
|
||||
beginTime_ = beginTime;
|
||||
setParameter(std::string("BeginTime"), std::to_string(beginTime));
|
||||
}
|
||||
|
||||
void OnsTrendTopicInputTpsRequest::setType(int type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", std::to_string(type));
|
||||
int OnsTrendTopicInputTpsRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string OnsTrendTopicInputTpsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void OnsTrendTopicInputTpsRequest::setType(int type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), std::to_string(type));
|
||||
}
|
||||
|
||||
void OnsTrendTopicInputTpsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string OnsTrendTopicInputTpsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string OnsTrendTopicInputTpsRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
void OnsTrendTopicInputTpsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void OnsTrendTopicInputTpsRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
std::string OnsTrendTopicInputTpsRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsTrendTopicInputTpsRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setParameter(std::string("Topic"), topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,128 +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/ons/model/OnsWarnCreateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsWarnCreateRequest;
|
||||
|
||||
OnsWarnCreateRequest::OnsWarnCreateRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsWarnCreate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsWarnCreateRequest::~OnsWarnCreateRequest()
|
||||
{}
|
||||
|
||||
std::string OnsWarnCreateRequest::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setLevel(const std::string& level)
|
||||
{
|
||||
level_ = level;
|
||||
setParameter("Level", level);
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateRequest::getDelayTime()const
|
||||
{
|
||||
return delayTime_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setDelayTime(const std::string& delayTime)
|
||||
{
|
||||
delayTime_ = delayTime;
|
||||
setParameter("DelayTime", delayTime);
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateRequest::getThreshold()const
|
||||
{
|
||||
return threshold_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setThreshold(const std::string& threshold)
|
||||
{
|
||||
threshold_ = threshold;
|
||||
setParameter("Threshold", threshold);
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateRequest::getAlertTime()const
|
||||
{
|
||||
return alertTime_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setAlertTime(const std::string& alertTime)
|
||||
{
|
||||
alertTime_ = alertTime;
|
||||
setParameter("AlertTime", alertTime);
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateRequest::getBlockTime()const
|
||||
{
|
||||
return blockTime_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setBlockTime(const std::string& blockTime)
|
||||
{
|
||||
blockTime_ = blockTime;
|
||||
setParameter("BlockTime", blockTime);
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateRequest::getContacts()const
|
||||
{
|
||||
return contacts_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setContacts(const std::string& contacts)
|
||||
{
|
||||
contacts_ = contacts;
|
||||
setParameter("Contacts", contacts);
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsWarnCreateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ons;
|
||||
using namespace AlibabaCloud::Ons::Model;
|
||||
|
||||
OnsWarnCreateResult::OnsWarnCreateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OnsWarnCreateResult::OnsWarnCreateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OnsWarnCreateResult::~OnsWarnCreateResult()
|
||||
{}
|
||||
|
||||
void OnsWarnCreateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateResult::getHelpUrl()const
|
||||
{
|
||||
return helpUrl_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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/ons/model/OnsWarnDeleteRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsWarnDeleteRequest;
|
||||
|
||||
OnsWarnDeleteRequest::OnsWarnDeleteRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsWarnDelete")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsWarnDeleteRequest::~OnsWarnDeleteRequest()
|
||||
{}
|
||||
|
||||
std::string OnsWarnDeleteRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void OnsWarnDeleteRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string OnsWarnDeleteRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsWarnDeleteRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string OnsWarnDeleteRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void OnsWarnDeleteRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsWarnDeleteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ons;
|
||||
using namespace AlibabaCloud::Ons::Model;
|
||||
|
||||
OnsWarnDeleteResult::OnsWarnDeleteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OnsWarnDeleteResult::OnsWarnDeleteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OnsWarnDeleteResult::~OnsWarnDeleteResult()
|
||||
{}
|
||||
|
||||
void OnsWarnDeleteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OnsWarnDeleteResult::getHelpUrl()const
|
||||
{
|
||||
return helpUrl_;
|
||||
}
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OpenOnsServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OpenOnsServiceRequest;
|
||||
|
||||
OpenOnsServiceRequest::OpenOnsServiceRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OpenOnsService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenOnsServiceRequest::~OpenOnsServiceRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OpenOnsServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OpenOnsServiceRequest;
|
||||
|
||||
OpenOnsServiceRequest::OpenOnsServiceRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "OpenOnsService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenOnsServiceRequest::~OpenOnsServiceRequest() {}
|
||||
|
||||
|
||||
@@ -1,80 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "TagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "TagResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
TagResourcesRequest::~TagResourcesRequest() {}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
std::string TagResourcesRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void TagResourcesRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string TagResourcesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
void TagResourcesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<TagResourcesRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,88 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "UntagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
bool UntagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest()
|
||||
: RpcServiceRequest("ons", "2019-02-14", "UntagResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
UntagResourcesRequest::~UntagResourcesRequest() {}
|
||||
|
||||
bool UntagResourcesRequest::getAll() const {
|
||||
return all_;
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
void UntagResourcesRequest::setAll(bool all) {
|
||||
all_ = all;
|
||||
setParameter(std::string("All"), all ? "true" : "false");
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
std::vector<std::string> UntagResourcesRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
void UntagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
std::string UntagResourcesRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void UntagResourcesRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string UntagResourcesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
void UntagResourcesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
|
||||
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
|
||||
}
|
||||
std::vector<std::string> UntagResourcesRequest::getTagKey() const {
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKey(const std::vector<std::string> &tagKey) {
|
||||
tagKey_ = tagKey;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user