ListGroupRepositoriesRequest.cc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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/codeup/model/ListGroupRepositoriesRequest.h>
  17. using AlibabaCloud::Codeup::Model::ListGroupRepositoriesRequest;
  18. ListGroupRepositoriesRequest::ListGroupRepositoriesRequest() :
  19. RoaServiceRequest("codeup", "2020-04-14")
  20. {
  21. setResourcePath("/api/v3/groups/[Identity]/projects");
  22. setMethod(HttpRequest::Method::Get);
  23. }
  24. ListGroupRepositoriesRequest::~ListGroupRepositoriesRequest()
  25. {}
  26. std::string ListGroupRepositoriesRequest::getAccessToken()const
  27. {
  28. return accessToken_;
  29. }
  30. void ListGroupRepositoriesRequest::setAccessToken(const std::string& accessToken)
  31. {
  32. accessToken_ = accessToken;
  33. setParameter("AccessToken", accessToken);
  34. }
  35. bool ListGroupRepositoriesRequest::getIsMember()const
  36. {
  37. return isMember_;
  38. }
  39. void ListGroupRepositoriesRequest::setIsMember(bool isMember)
  40. {
  41. isMember_ = isMember;
  42. setParameter("IsMember", isMember ? "true" : "false");
  43. }
  44. std::string ListGroupRepositoriesRequest::getOrganizationId()const
  45. {
  46. return organizationId_;
  47. }
  48. void ListGroupRepositoriesRequest::setOrganizationId(const std::string& organizationId)
  49. {
  50. organizationId_ = organizationId;
  51. setParameter("OrganizationId", organizationId);
  52. }
  53. std::string ListGroupRepositoriesRequest::getSearch()const
  54. {
  55. return search_;
  56. }
  57. void ListGroupRepositoriesRequest::setSearch(const std::string& search)
  58. {
  59. search_ = search;
  60. setParameter("Search", search);
  61. }
  62. std::string ListGroupRepositoriesRequest::getSubUserId()const
  63. {
  64. return subUserId_;
  65. }
  66. void ListGroupRepositoriesRequest::setSubUserId(const std::string& subUserId)
  67. {
  68. subUserId_ = subUserId;
  69. setParameter("SubUserId", subUserId);
  70. }
  71. std::string ListGroupRepositoriesRequest::getIdentity()const
  72. {
  73. return identity_;
  74. }
  75. void ListGroupRepositoriesRequest::setIdentity(const std::string& identity)
  76. {
  77. identity_ = identity;
  78. setParameter("Identity", identity);
  79. }
  80. long ListGroupRepositoriesRequest::getPageSize()const
  81. {
  82. return pageSize_;
  83. }
  84. void ListGroupRepositoriesRequest::setPageSize(long pageSize)
  85. {
  86. pageSize_ = pageSize;
  87. setParameter("PageSize", std::to_string(pageSize));
  88. }
  89. long ListGroupRepositoriesRequest::getPage()const
  90. {
  91. return page_;
  92. }
  93. void ListGroupRepositoriesRequest::setPage(long page)
  94. {
  95. page_ = page;
  96. setParameter("Page", std::to_string(page));
  97. }