DescribeImagesRequest.cc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/ens/model/DescribeImagesRequest.h>
  17. using AlibabaCloud::Ens::Model::DescribeImagesRequest;
  18. DescribeImagesRequest::DescribeImagesRequest()
  19. : RpcServiceRequest("ens", "2017-11-10", "DescribeImages") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DescribeImagesRequest::~DescribeImagesRequest() {}
  23. std::string DescribeImagesRequest::getEnsRegionId() const {
  24. return ensRegionId_;
  25. }
  26. void DescribeImagesRequest::setEnsRegionId(const std::string &ensRegionId) {
  27. ensRegionId_ = ensRegionId;
  28. setParameter(std::string("EnsRegionId"), ensRegionId);
  29. }
  30. std::string DescribeImagesRequest::getStatus() const {
  31. return status_;
  32. }
  33. void DescribeImagesRequest::setStatus(const std::string &status) {
  34. status_ = status;
  35. setParameter(std::string("Status"), status);
  36. }
  37. std::string DescribeImagesRequest::getImageId() const {
  38. return imageId_;
  39. }
  40. void DescribeImagesRequest::setImageId(const std::string &imageId) {
  41. imageId_ = imageId;
  42. setParameter(std::string("ImageId"), imageId);
  43. }
  44. std::string DescribeImagesRequest::getPageNumber() const {
  45. return pageNumber_;
  46. }
  47. void DescribeImagesRequest::setPageNumber(const std::string &pageNumber) {
  48. pageNumber_ = pageNumber;
  49. setParameter(std::string("PageNumber"), pageNumber);
  50. }
  51. std::string DescribeImagesRequest::getImageName() const {
  52. return imageName_;
  53. }
  54. void DescribeImagesRequest::setImageName(const std::string &imageName) {
  55. imageName_ = imageName;
  56. setParameter(std::string("ImageName"), imageName);
  57. }
  58. std::string DescribeImagesRequest::getPageSize() const {
  59. return pageSize_;
  60. }
  61. void DescribeImagesRequest::setPageSize(const std::string &pageSize) {
  62. pageSize_ = pageSize;
  63. setParameter(std::string("PageSize"), pageSize);
  64. }
  65. std::string DescribeImagesRequest::getProduct() const {
  66. return product_;
  67. }
  68. void DescribeImagesRequest::setProduct(const std::string &product) {
  69. product_ = product;
  70. setParameter(std::string("product"), product);
  71. }