OpenScdnServiceRequest.cc 3.3 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/scdn/model/OpenScdnServiceRequest.h>
  17. using AlibabaCloud::Scdn::Model::OpenScdnServiceRequest;
  18. OpenScdnServiceRequest::OpenScdnServiceRequest() :
  19. RpcServiceRequest("scdn", "2017-11-15", "OpenScdnService")
  20. {}
  21. OpenScdnServiceRequest::~OpenScdnServiceRequest()
  22. {}
  23. std::string OpenScdnServiceRequest::getStartDate()const
  24. {
  25. return startDate_;
  26. }
  27. void OpenScdnServiceRequest::setStartDate(const std::string& startDate)
  28. {
  29. startDate_ = startDate;
  30. setCoreParameter("StartDate", startDate);
  31. }
  32. int OpenScdnServiceRequest::getCcProtection()const
  33. {
  34. return ccProtection_;
  35. }
  36. void OpenScdnServiceRequest::setCcProtection(int ccProtection)
  37. {
  38. ccProtection_ = ccProtection;
  39. setCoreParameter("CcProtection", std::to_string(ccProtection));
  40. }
  41. std::string OpenScdnServiceRequest::getSecurityToken()const
  42. {
  43. return securityToken_;
  44. }
  45. void OpenScdnServiceRequest::setSecurityToken(const std::string& securityToken)
  46. {
  47. securityToken_ = securityToken;
  48. setCoreParameter("SecurityToken", securityToken);
  49. }
  50. std::string OpenScdnServiceRequest::getProtectType()const
  51. {
  52. return protectType_;
  53. }
  54. void OpenScdnServiceRequest::setProtectType(const std::string& protectType)
  55. {
  56. protectType_ = protectType;
  57. setCoreParameter("ProtectType", protectType);
  58. }
  59. int OpenScdnServiceRequest::getDDoSBasic()const
  60. {
  61. return dDoSBasic_;
  62. }
  63. void OpenScdnServiceRequest::setDDoSBasic(int dDoSBasic)
  64. {
  65. dDoSBasic_ = dDoSBasic;
  66. setCoreParameter("DDoSBasic", std::to_string(dDoSBasic));
  67. }
  68. int OpenScdnServiceRequest::getBandwidth()const
  69. {
  70. return bandwidth_;
  71. }
  72. void OpenScdnServiceRequest::setBandwidth(int bandwidth)
  73. {
  74. bandwidth_ = bandwidth;
  75. setCoreParameter("Bandwidth", std::to_string(bandwidth));
  76. }
  77. int OpenScdnServiceRequest::getDomainCount()const
  78. {
  79. return domainCount_;
  80. }
  81. void OpenScdnServiceRequest::setDomainCount(int domainCount)
  82. {
  83. domainCount_ = domainCount;
  84. setCoreParameter("DomainCount", std::to_string(domainCount));
  85. }
  86. long OpenScdnServiceRequest::getOwnerId()const
  87. {
  88. return ownerId_;
  89. }
  90. void OpenScdnServiceRequest::setOwnerId(long ownerId)
  91. {
  92. ownerId_ = ownerId;
  93. setCoreParameter("OwnerId", std::to_string(ownerId));
  94. }
  95. std::string OpenScdnServiceRequest::getEndDate()const
  96. {
  97. return endDate_;
  98. }
  99. void OpenScdnServiceRequest::setEndDate(const std::string& endDate)
  100. {
  101. endDate_ = endDate;
  102. setCoreParameter("EndDate", endDate);
  103. }
  104. int OpenScdnServiceRequest::getElasticProtection()const
  105. {
  106. return elasticProtection_;
  107. }
  108. void OpenScdnServiceRequest::setElasticProtection(int elasticProtection)
  109. {
  110. elasticProtection_ = elasticProtection;
  111. setCoreParameter("ElasticProtection", std::to_string(elasticProtection));
  112. }