InsertCustomRequest.cc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/alinlp/model/InsertCustomRequest.h>
  17. using AlibabaCloud::Alinlp::Model::InsertCustomRequest;
  18. InsertCustomRequest::InsertCustomRequest()
  19. : RpcServiceRequest("alinlp", "2020-06-29", "InsertCustom") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. InsertCustomRequest::~InsertCustomRequest() {}
  23. std::string InsertCustomRequest::getCustomUrl() const {
  24. return customUrl_;
  25. }
  26. void InsertCustomRequest::setCustomUrl(const std::string &customUrl) {
  27. customUrl_ = customUrl;
  28. setBodyParameter(std::string("CustomUrl"), customUrl);
  29. }
  30. std::string InsertCustomRequest::getRegUrl() const {
  31. return regUrl_;
  32. }
  33. void InsertCustomRequest::setRegUrl(const std::string &regUrl) {
  34. regUrl_ = regUrl;
  35. setBodyParameter(std::string("RegUrl"), regUrl);
  36. }
  37. std::string InsertCustomRequest::getServiceCode() const {
  38. return serviceCode_;
  39. }
  40. void InsertCustomRequest::setServiceCode(const std::string &serviceCode) {
  41. serviceCode_ = serviceCode;
  42. setBodyParameter(std::string("ServiceCode"), serviceCode);
  43. }
  44. std::string InsertCustomRequest::getRegFileName() const {
  45. return regFileName_;
  46. }
  47. void InsertCustomRequest::setRegFileName(const std::string &regFileName) {
  48. regFileName_ = regFileName;
  49. setBodyParameter(std::string("RegFileName"), regFileName);
  50. }
  51. std::string InsertCustomRequest::getCustomFileName() const {
  52. return customFileName_;
  53. }
  54. void InsertCustomRequest::setCustomFileName(const std::string &customFileName) {
  55. customFileName_ = customFileName;
  56. setBodyParameter(std::string("CustomFileName"), customFileName);
  57. }
  58. int InsertCustomRequest::getApiId() const {
  59. return apiId_;
  60. }
  61. void InsertCustomRequest::setApiId(int apiId) {
  62. apiId_ = apiId;
  63. setBodyParameter(std::string("ApiId"), std::to_string(apiId));
  64. }