CopyCasterRequest.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. namespace live\Request\V20161101;
  3. /**
  4. * @deprecated Please use https://github.com/aliyun/openapi-sdk-php
  5. *
  6. * Request of CopyCaster
  7. *
  8. * @method string getSrcCasterId()
  9. * @method string getCasterName()
  10. * @method string getClientToken()
  11. * @method string getOwnerId()
  12. */
  13. class CopyCasterRequest extends \RpcAcsRequest
  14. {
  15. /**
  16. * @var string
  17. */
  18. protected $method = 'POST';
  19. /**
  20. * Class constructor.
  21. */
  22. public function __construct()
  23. {
  24. parent::__construct(
  25. 'live',
  26. '2016-11-01',
  27. 'CopyCaster',
  28. 'live'
  29. );
  30. }
  31. /**
  32. * @param string $srcCasterId
  33. *
  34. * @return $this
  35. */
  36. public function setSrcCasterId($srcCasterId)
  37. {
  38. $this->requestParameters['SrcCasterId'] = $srcCasterId;
  39. $this->queryParameters['SrcCasterId'] = $srcCasterId;
  40. return $this;
  41. }
  42. /**
  43. * @param string $casterName
  44. *
  45. * @return $this
  46. */
  47. public function setCasterName($casterName)
  48. {
  49. $this->requestParameters['CasterName'] = $casterName;
  50. $this->queryParameters['CasterName'] = $casterName;
  51. return $this;
  52. }
  53. /**
  54. * @param string $clientToken
  55. *
  56. * @return $this
  57. */
  58. public function setClientToken($clientToken)
  59. {
  60. $this->requestParameters['ClientToken'] = $clientToken;
  61. $this->queryParameters['ClientToken'] = $clientToken;
  62. return $this;
  63. }
  64. /**
  65. * @param string $ownerId
  66. *
  67. * @return $this
  68. */
  69. public function setOwnerId($ownerId)
  70. {
  71. $this->requestParameters['OwnerId'] = $ownerId;
  72. $this->queryParameters['OwnerId'] = $ownerId;
  73. return $this;
  74. }
  75. }