ListRegionsRequest.cc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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/apds/model/ListRegionsRequest.h>
  17. using AlibabaCloud::Apds::Model::ListRegionsRequest;
  18. ListRegionsRequest::ListRegionsRequest()
  19. : RoaServiceRequest("apds", "2022-03-31") {
  20. setResourcePath("/okss-services/winback/query-region"};
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ListRegionsRequest::~ListRegionsRequest() {}
  24. string ListRegionsRequest::getCloudType() const {
  25. return cloudType_;
  26. }
  27. void ListRegionsRequest::setCloudType(string cloudType) {
  28. cloudType_ = cloudType;
  29. setParameter(std::string("cloudType"), std::to_string(cloudType));
  30. }
  31. string ListRegionsRequest::getAk() const {
  32. return ak_;
  33. }
  34. void ListRegionsRequest::setAk(string ak) {
  35. ak_ = ak;
  36. setParameter(std::string("ak"), std::to_string(ak));
  37. }
  38. string ListRegionsRequest::getRegionId() const {
  39. return regionId_;
  40. }
  41. void ListRegionsRequest::setRegionId(string regionId) {
  42. regionId_ = regionId;
  43. setParameter(std::string("regionId"), std::to_string(regionId));
  44. }
  45. string ListRegionsRequest::getSk() const {
  46. return sk_;
  47. }
  48. void ListRegionsRequest::setSk(string sk) {
  49. sk_ = sk;
  50. setParameter(std::string("sk"), std::to_string(sk));
  51. }
  52. string ListRegionsRequest::getTenantId() const {
  53. return tenantId_;
  54. }
  55. void ListRegionsRequest::setTenantId(string tenantId) {
  56. tenantId_ = tenantId;
  57. setParameter(std::string("tenantId"), std::to_string(tenantId));
  58. }
  59. string ListRegionsRequest::getRegion() const {
  60. return region_;
  61. }
  62. void ListRegionsRequest::setRegion(string region) {
  63. region_ = region;
  64. setParameter(std::string("region"), std::to_string(region));
  65. }