AddLiveDomainRequest.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of AddLiveDomain
  7. *
  8. * @method string getTopLevelDomain()
  9. * @method string getSecurityToken()
  10. * @method string getOwnerAccount()
  11. * @method string getScope()
  12. * @method string getDomainName()
  13. * @method string getOwnerId()
  14. * @method string getRegion()
  15. * @method string getCheckUrl()
  16. * @method string getLiveDomainType()
  17. */
  18. class AddLiveDomainRequest extends \RpcAcsRequest
  19. {
  20. /**
  21. * @var string
  22. */
  23. protected $method = 'POST';
  24. /**
  25. * Class constructor.
  26. */
  27. public function __construct()
  28. {
  29. parent::__construct(
  30. 'live',
  31. '2016-11-01',
  32. 'AddLiveDomain',
  33. 'live'
  34. );
  35. }
  36. /**
  37. * @param string $topLevelDomain
  38. *
  39. * @return $this
  40. */
  41. public function setTopLevelDomain($topLevelDomain)
  42. {
  43. $this->requestParameters['TopLevelDomain'] = $topLevelDomain;
  44. $this->queryParameters['TopLevelDomain'] = $topLevelDomain;
  45. return $this;
  46. }
  47. /**
  48. * @param string $securityToken
  49. *
  50. * @return $this
  51. */
  52. public function setSecurityToken($securityToken)
  53. {
  54. $this->requestParameters['SecurityToken'] = $securityToken;
  55. $this->queryParameters['SecurityToken'] = $securityToken;
  56. return $this;
  57. }
  58. /**
  59. * @param string $ownerAccount
  60. *
  61. * @return $this
  62. */
  63. public function setOwnerAccount($ownerAccount)
  64. {
  65. $this->requestParameters['OwnerAccount'] = $ownerAccount;
  66. $this->queryParameters['OwnerAccount'] = $ownerAccount;
  67. return $this;
  68. }
  69. /**
  70. * @param string $scope
  71. *
  72. * @return $this
  73. */
  74. public function setScope($scope)
  75. {
  76. $this->requestParameters['Scope'] = $scope;
  77. $this->queryParameters['Scope'] = $scope;
  78. return $this;
  79. }
  80. /**
  81. * @param string $domainName
  82. *
  83. * @return $this
  84. */
  85. public function setDomainName($domainName)
  86. {
  87. $this->requestParameters['DomainName'] = $domainName;
  88. $this->queryParameters['DomainName'] = $domainName;
  89. return $this;
  90. }
  91. /**
  92. * @param string $ownerId
  93. *
  94. * @return $this
  95. */
  96. public function setOwnerId($ownerId)
  97. {
  98. $this->requestParameters['OwnerId'] = $ownerId;
  99. $this->queryParameters['OwnerId'] = $ownerId;
  100. return $this;
  101. }
  102. /**
  103. * @param string $region
  104. *
  105. * @return $this
  106. */
  107. public function setRegion($region)
  108. {
  109. $this->requestParameters['Region'] = $region;
  110. $this->queryParameters['Region'] = $region;
  111. return $this;
  112. }
  113. /**
  114. * @param string $checkUrl
  115. *
  116. * @return $this
  117. */
  118. public function setCheckUrl($checkUrl)
  119. {
  120. $this->requestParameters['CheckUrl'] = $checkUrl;
  121. $this->queryParameters['CheckUrl'] = $checkUrl;
  122. return $this;
  123. }
  124. /**
  125. * @param string $liveDomainType
  126. *
  127. * @return $this
  128. */
  129. public function setLiveDomainType($liveDomainType)
  130. {
  131. $this->requestParameters['LiveDomainType'] = $liveDomainType;
  132. $this->queryParameters['LiveDomainType'] = $liveDomainType;
  133. return $this;
  134. }
  135. }