|
@@ -1,95 +1,81 @@
|
|
|
/*
|
|
/*
|
|
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
* you may not use this file except in compliance with the License.
|
|
|
* You may obtain a copy of the License at
|
|
* You may obtain a copy of the License at
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
* See the License for the specific language governing permissions and
|
|
* See the License for the specific language governing permissions and
|
|
|
* limitations under the License.
|
|
* limitations under the License.
|
|
|
- */
|
|
|
|
|
-
|
|
|
|
|
-#include <alibabacloud/imgsearch/model/ListImagesRequest.h>
|
|
|
|
|
-
|
|
|
|
|
-using AlibabaCloud::Imgsearch::Model::ListImagesRequest;
|
|
|
|
|
-
|
|
|
|
|
-ListImagesRequest::ListImagesRequest() :
|
|
|
|
|
- RpcServiceRequest("imgsearch", "2020-03-20", "ListImages")
|
|
|
|
|
-{
|
|
|
|
|
- setMethod(HttpRequest::Method::Post);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-ListImagesRequest::~ListImagesRequest()
|
|
|
|
|
-{}
|
|
|
|
|
-
|
|
|
|
|
-std::string ListImagesRequest::getEntityIdPrefix()const
|
|
|
|
|
-{
|
|
|
|
|
- return entityIdPrefix_;
|
|
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+#include <alibabacloud/imgsearch/model/ListImagesRequest.h>
|
|
|
|
|
+
|
|
|
|
|
+using AlibabaCloud::Imgsearch::Model::ListImagesRequest;
|
|
|
|
|
+
|
|
|
|
|
+ListImagesRequest::ListImagesRequest()
|
|
|
|
|
+ : RpcServiceRequest("imgsearch", "2020-03-20", "ListImages") {
|
|
|
|
|
+ setMethod(HttpRequest::Method::Post);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+ListImagesRequest::~ListImagesRequest() {}
|
|
|
|
|
+
|
|
|
|
|
+std::string ListImagesRequest::getEntityIdPrefix() const {
|
|
|
|
|
+ return entityIdPrefix_;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void ListImagesRequest::setEntityIdPrefix(const std::string& entityIdPrefix)
|
|
|
|
|
-{
|
|
|
|
|
- entityIdPrefix_ = entityIdPrefix;
|
|
|
|
|
- setBodyParameter("EntityIdPrefix", entityIdPrefix);
|
|
|
|
|
|
|
+void ListImagesRequest::setEntityIdPrefix(const std::string &entityIdPrefix) {
|
|
|
|
|
+ entityIdPrefix_ = entityIdPrefix;
|
|
|
|
|
+ setBodyParameter(std::string("EntityIdPrefix"), entityIdPrefix);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int ListImagesRequest::getLimit()const
|
|
|
|
|
-{
|
|
|
|
|
- return limit_;
|
|
|
|
|
|
|
+int ListImagesRequest::getLimit() const {
|
|
|
|
|
+ return limit_;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void ListImagesRequest::setLimit(int limit)
|
|
|
|
|
-{
|
|
|
|
|
- limit_ = limit;
|
|
|
|
|
- setBodyParameter("Limit", std::to_string(limit));
|
|
|
|
|
|
|
+void ListImagesRequest::setLimit(int limit) {
|
|
|
|
|
+ limit_ = limit;
|
|
|
|
|
+ setBodyParameter(std::string("Limit"), std::to_string(limit));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-std::string ListImagesRequest::getOrder()const
|
|
|
|
|
-{
|
|
|
|
|
- return order_;
|
|
|
|
|
|
|
+std::string ListImagesRequest::getOrder() const {
|
|
|
|
|
+ return order_;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void ListImagesRequest::setOrder(const std::string& order)
|
|
|
|
|
-{
|
|
|
|
|
- order_ = order;
|
|
|
|
|
- setBodyParameter("Order", order);
|
|
|
|
|
|
|
+void ListImagesRequest::setOrder(const std::string &order) {
|
|
|
|
|
+ order_ = order;
|
|
|
|
|
+ setBodyParameter(std::string("Order"), order);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int ListImagesRequest::getOffset()const
|
|
|
|
|
-{
|
|
|
|
|
- return offset_;
|
|
|
|
|
|
|
+int ListImagesRequest::getOffset() const {
|
|
|
|
|
+ return offset_;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void ListImagesRequest::setOffset(int offset)
|
|
|
|
|
-{
|
|
|
|
|
- offset_ = offset;
|
|
|
|
|
- setBodyParameter("Offset", std::to_string(offset));
|
|
|
|
|
|
|
+void ListImagesRequest::setOffset(int offset) {
|
|
|
|
|
+ offset_ = offset;
|
|
|
|
|
+ setBodyParameter(std::string("Offset"), std::to_string(offset));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-std::string ListImagesRequest::getToken()const
|
|
|
|
|
-{
|
|
|
|
|
- return token_;
|
|
|
|
|
|
|
+std::string ListImagesRequest::getToken() const {
|
|
|
|
|
+ return token_;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void ListImagesRequest::setToken(const std::string& token)
|
|
|
|
|
-{
|
|
|
|
|
- token_ = token;
|
|
|
|
|
- setBodyParameter("Token", token);
|
|
|
|
|
|
|
+void ListImagesRequest::setToken(const std::string &token) {
|
|
|
|
|
+ token_ = token;
|
|
|
|
|
+ setBodyParameter(std::string("Token"), token);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-std::string ListImagesRequest::getDbName()const
|
|
|
|
|
-{
|
|
|
|
|
- return dbName_;
|
|
|
|
|
|
|
+std::string ListImagesRequest::getDbName() const {
|
|
|
|
|
+ return dbName_;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void ListImagesRequest::setDbName(const std::string& dbName)
|
|
|
|
|
-{
|
|
|
|
|
- dbName_ = dbName;
|
|
|
|
|
- setBodyParameter("DbName", dbName);
|
|
|
|
|
|
|
+void ListImagesRequest::setDbName(const std::string &dbName) {
|
|
|
|
|
+ dbName_ = dbName;
|
|
|
|
|
+ setBodyParameter(std::string("DbName"), dbName);
|
|
|
}
|
|
}
|
|
|
|
|
|