AddCdnDomainRequest.cc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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/cdn/model/AddCdnDomainRequest.h>
  17. using AlibabaCloud::Cdn::Model::AddCdnDomainRequest;
  18. AddCdnDomainRequest::AddCdnDomainRequest() :
  19. RpcServiceRequest("cdn", "2014-11-11", "AddCdnDomain")
  20. {}
  21. AddCdnDomainRequest::~AddCdnDomainRequest()
  22. {}
  23. std::string AddCdnDomainRequest::getTopLevelDomain()const
  24. {
  25. return topLevelDomain_;
  26. }
  27. void AddCdnDomainRequest::setTopLevelDomain(const std::string& topLevelDomain)
  28. {
  29. topLevelDomain_ = topLevelDomain;
  30. setParameter("TopLevelDomain", topLevelDomain);
  31. }
  32. std::string AddCdnDomainRequest::getSources()const
  33. {
  34. return sources_;
  35. }
  36. void AddCdnDomainRequest::setSources(const std::string& sources)
  37. {
  38. sources_ = sources;
  39. setParameter("Sources", sources);
  40. }
  41. std::string AddCdnDomainRequest::getOwnerAccount()const
  42. {
  43. return ownerAccount_;
  44. }
  45. void AddCdnDomainRequest::setOwnerAccount(const std::string& ownerAccount)
  46. {
  47. ownerAccount_ = ownerAccount;
  48. setParameter("OwnerAccount", ownerAccount);
  49. }
  50. std::string AddCdnDomainRequest::getDomainName()const
  51. {
  52. return domainName_;
  53. }
  54. void AddCdnDomainRequest::setDomainName(const std::string& domainName)
  55. {
  56. domainName_ = domainName;
  57. setParameter("DomainName", domainName);
  58. }
  59. long AddCdnDomainRequest::getOwnerId()const
  60. {
  61. return ownerId_;
  62. }
  63. void AddCdnDomainRequest::setOwnerId(long ownerId)
  64. {
  65. ownerId_ = ownerId;
  66. setParameter("OwnerId", std::to_string(ownerId));
  67. }
  68. std::string AddCdnDomainRequest::getResourceGroupId()const
  69. {
  70. return resourceGroupId_;
  71. }
  72. void AddCdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
  73. {
  74. resourceGroupId_ = resourceGroupId;
  75. setParameter("ResourceGroupId", resourceGroupId);
  76. }
  77. int AddCdnDomainRequest::getSourcePort()const
  78. {
  79. return sourcePort_;
  80. }
  81. void AddCdnDomainRequest::setSourcePort(int sourcePort)
  82. {
  83. sourcePort_ = sourcePort;
  84. setParameter("SourcePort", std::to_string(sourcePort));
  85. }
  86. std::string AddCdnDomainRequest::getPriorities()const
  87. {
  88. return priorities_;
  89. }
  90. void AddCdnDomainRequest::setPriorities(const std::string& priorities)
  91. {
  92. priorities_ = priorities;
  93. setParameter("Priorities", priorities);
  94. }
  95. std::string AddCdnDomainRequest::getSecurityToken()const
  96. {
  97. return securityToken_;
  98. }
  99. void AddCdnDomainRequest::setSecurityToken(const std::string& securityToken)
  100. {
  101. securityToken_ = securityToken;
  102. setParameter("SecurityToken", securityToken);
  103. }
  104. std::string AddCdnDomainRequest::getCdnType()const
  105. {
  106. return cdnType_;
  107. }
  108. void AddCdnDomainRequest::setCdnType(const std::string& cdnType)
  109. {
  110. cdnType_ = cdnType;
  111. setParameter("CdnType", cdnType);
  112. }
  113. std::string AddCdnDomainRequest::getScope()const
  114. {
  115. return scope_;
  116. }
  117. void AddCdnDomainRequest::setScope(const std::string& scope)
  118. {
  119. scope_ = scope;
  120. setParameter("Scope", scope);
  121. }
  122. std::string AddCdnDomainRequest::getSourceType()const
  123. {
  124. return sourceType_;
  125. }
  126. void AddCdnDomainRequest::setSourceType(const std::string& sourceType)
  127. {
  128. sourceType_ = sourceType;
  129. setParameter("SourceType", sourceType);
  130. }
  131. std::string AddCdnDomainRequest::getCheckUrl()const
  132. {
  133. return checkUrl_;
  134. }
  135. void AddCdnDomainRequest::setCheckUrl(const std::string& checkUrl)
  136. {
  137. checkUrl_ = checkUrl;
  138. setParameter("CheckUrl", checkUrl);
  139. }
  140. std::string AddCdnDomainRequest::getRegion()const
  141. {
  142. return region_;
  143. }
  144. void AddCdnDomainRequest::setRegion(const std::string& region)
  145. {
  146. region_ = region;
  147. setParameter("Region", region);
  148. }