GetNisNetworkRankingRequest.cc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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/nis/model/GetNisNetworkRankingRequest.h>
  17. using AlibabaCloud::Nis::Model::GetNisNetworkRankingRequest;
  18. GetNisNetworkRankingRequest::GetNisNetworkRankingRequest()
  19. : RpcServiceRequest("nis", "2021-12-16", "GetNisNetworkRanking") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. GetNisNetworkRankingRequest::~GetNisNetworkRankingRequest() {}
  23. bool GetNisNetworkRankingRequest::getUseCrossAccount() const {
  24. return useCrossAccount_;
  25. }
  26. void GetNisNetworkRankingRequest::setUseCrossAccount(bool useCrossAccount) {
  27. useCrossAccount_ = useCrossAccount;
  28. setParameter(std::string("UseCrossAccount"), useCrossAccount ? "true" : "false");
  29. }
  30. int GetNisNetworkRankingRequest::getTopN() const {
  31. return topN_;
  32. }
  33. void GetNisNetworkRankingRequest::setTopN(int topN) {
  34. topN_ = topN;
  35. setParameter(std::string("TopN"), std::to_string(topN));
  36. }
  37. std::string GetNisNetworkRankingRequest::getDirection() const {
  38. return direction_;
  39. }
  40. void GetNisNetworkRankingRequest::setDirection(const std::string &direction) {
  41. direction_ = direction;
  42. setParameter(std::string("Direction"), direction);
  43. }
  44. std::string GetNisNetworkRankingRequest::getOrderBy() const {
  45. return orderBy_;
  46. }
  47. void GetNisNetworkRankingRequest::setOrderBy(const std::string &orderBy) {
  48. orderBy_ = orderBy;
  49. setParameter(std::string("OrderBy"), orderBy);
  50. }
  51. long GetNisNetworkRankingRequest::getEndTime() const {
  52. return endTime_;
  53. }
  54. void GetNisNetworkRankingRequest::setEndTime(long endTime) {
  55. endTime_ = endTime;
  56. setParameter(std::string("EndTime"), std::to_string(endTime));
  57. }
  58. long GetNisNetworkRankingRequest::getBeginTime() const {
  59. return beginTime_;
  60. }
  61. void GetNisNetworkRankingRequest::setBeginTime(long beginTime) {
  62. beginTime_ = beginTime;
  63. setParameter(std::string("BeginTime"), std::to_string(beginTime));
  64. }
  65. std::string GetNisNetworkRankingRequest::getGroupBy() const {
  66. return groupBy_;
  67. }
  68. void GetNisNetworkRankingRequest::setGroupBy(const std::string &groupBy) {
  69. groupBy_ = groupBy;
  70. setParameter(std::string("GroupBy"), groupBy);
  71. }
  72. std::string GetNisNetworkRankingRequest::getSort() const {
  73. return sort_;
  74. }
  75. void GetNisNetworkRankingRequest::setSort(const std::string &sort) {
  76. sort_ = sort;
  77. setParameter(std::string("Sort"), sort);
  78. }
  79. std::string GetNisNetworkRankingRequest::getResourceType() const {
  80. return resourceType_;
  81. }
  82. void GetNisNetworkRankingRequest::setResourceType(const std::string &resourceType) {
  83. resourceType_ = resourceType;
  84. setParameter(std::string("ResourceType"), resourceType);
  85. }
  86. std::string GetNisNetworkRankingRequest::getRegionNo() const {
  87. return regionNo_;
  88. }
  89. void GetNisNetworkRankingRequest::setRegionNo(const std::string &regionNo) {
  90. regionNo_ = regionNo;
  91. setParameter(std::string("RegionNo"), regionNo);
  92. }
  93. std::vector<GetNisNetworkRankingRequest::Filter> GetNisNetworkRankingRequest::getFilter() const {
  94. return filter_;
  95. }
  96. void GetNisNetworkRankingRequest::setFilter(const std::vector<GetNisNetworkRankingRequest::Filter> &filter) {
  97. filter_ = filter;
  98. for(int dep1 = 0; dep1 != filter.size(); dep1++) {
  99. setParameter(std::string("Filter") + "." + std::to_string(dep1 + 1) + ".Name", filter[dep1].name);
  100. setParameter(std::string("Filter") + "." + std::to_string(dep1 + 1) + ".Value", filter[dep1].value);
  101. }
  102. }
  103. std::vector<std::string> GetNisNetworkRankingRequest::getAccountIds() const {
  104. return accountIds_;
  105. }
  106. void GetNisNetworkRankingRequest::setAccountIds(const std::vector<std::string> &accountIds) {
  107. accountIds_ = accountIds;
  108. }