PreviewModelForPackageDesignRequest.cc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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/ivpd/model/PreviewModelForPackageDesignRequest.h>
  17. using AlibabaCloud::Ivpd::Model::PreviewModelForPackageDesignRequest;
  18. PreviewModelForPackageDesignRequest::PreviewModelForPackageDesignRequest() :
  19. RpcServiceRequest("ivpd", "2019-06-25", "PreviewModelForPackageDesign")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. PreviewModelForPackageDesignRequest::~PreviewModelForPackageDesignRequest()
  24. {}
  25. std::string PreviewModelForPackageDesignRequest::getMaterialName()const
  26. {
  27. return materialName_;
  28. }
  29. void PreviewModelForPackageDesignRequest::setMaterialName(const std::string& materialName)
  30. {
  31. materialName_ = materialName;
  32. setBodyParameter("MaterialName", materialName);
  33. }
  34. std::vector<PreviewModelForPackageDesignRequest::ElementList> PreviewModelForPackageDesignRequest::getElementList()const
  35. {
  36. return elementList_;
  37. }
  38. void PreviewModelForPackageDesignRequest::setElementList(const std::vector<ElementList>& elementList)
  39. {
  40. elementList_ = elementList;
  41. for(int dep1 = 0; dep1!= elementList.size(); dep1++) {
  42. auto elementListObj = elementList.at(dep1);
  43. std::string elementListObjStr = "ElementList." + std::to_string(dep1 + 1);
  44. setParameter(elementListObjStr + ".ImageUrl", elementListObj.imageUrl);
  45. setParameter(elementListObjStr + ".SideName", elementListObj.sideName);
  46. }
  47. }
  48. std::string PreviewModelForPackageDesignRequest::getDataId()const
  49. {
  50. return dataId_;
  51. }
  52. void PreviewModelForPackageDesignRequest::setDataId(const std::string& dataId)
  53. {
  54. dataId_ = dataId;
  55. setBodyParameter("DataId", dataId);
  56. }
  57. std::string PreviewModelForPackageDesignRequest::getMaterialType()const
  58. {
  59. return materialType_;
  60. }
  61. void PreviewModelForPackageDesignRequest::setMaterialType(const std::string& materialType)
  62. {
  63. materialType_ = materialType;
  64. setBodyParameter("MaterialType", materialType);
  65. }
  66. std::string PreviewModelForPackageDesignRequest::getModelType()const
  67. {
  68. return modelType_;
  69. }
  70. void PreviewModelForPackageDesignRequest::setModelType(const std::string& modelType)
  71. {
  72. modelType_ = modelType;
  73. setBodyParameter("ModelType", modelType);
  74. }
  75. std::string PreviewModelForPackageDesignRequest::getCategory()const
  76. {
  77. return category_;
  78. }
  79. void PreviewModelForPackageDesignRequest::setCategory(const std::string& category)
  80. {
  81. category_ = category;
  82. setBodyParameter("Category", category);
  83. }