QuerySendDetailsRequest.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
  4. use AlibabaCloud\Tea\Model;
  5. class QuerySendDetailsRequest extends Model
  6. {
  7. /**
  8. * @var string
  9. */
  10. public $bizId;
  11. /**
  12. * @var int
  13. */
  14. public $currentPage;
  15. /**
  16. * @var int
  17. */
  18. public $ownerId;
  19. /**
  20. * @var int
  21. */
  22. public $pageSize;
  23. /**
  24. * @var string
  25. */
  26. public $phoneNumber;
  27. /**
  28. * @var string
  29. */
  30. public $resourceOwnerAccount;
  31. /**
  32. * @var int
  33. */
  34. public $resourceOwnerId;
  35. /**
  36. * @var string
  37. */
  38. public $sendDate;
  39. protected $_name = [
  40. 'bizId' => 'BizId',
  41. 'currentPage' => 'CurrentPage',
  42. 'ownerId' => 'OwnerId',
  43. 'pageSize' => 'PageSize',
  44. 'phoneNumber' => 'PhoneNumber',
  45. 'resourceOwnerAccount' => 'ResourceOwnerAccount',
  46. 'resourceOwnerId' => 'ResourceOwnerId',
  47. 'sendDate' => 'SendDate',
  48. ];
  49. public function validate()
  50. {
  51. }
  52. public function toMap()
  53. {
  54. $res = [];
  55. if (null !== $this->bizId) {
  56. $res['BizId'] = $this->bizId;
  57. }
  58. if (null !== $this->currentPage) {
  59. $res['CurrentPage'] = $this->currentPage;
  60. }
  61. if (null !== $this->ownerId) {
  62. $res['OwnerId'] = $this->ownerId;
  63. }
  64. if (null !== $this->pageSize) {
  65. $res['PageSize'] = $this->pageSize;
  66. }
  67. if (null !== $this->phoneNumber) {
  68. $res['PhoneNumber'] = $this->phoneNumber;
  69. }
  70. if (null !== $this->resourceOwnerAccount) {
  71. $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
  72. }
  73. if (null !== $this->resourceOwnerId) {
  74. $res['ResourceOwnerId'] = $this->resourceOwnerId;
  75. }
  76. if (null !== $this->sendDate) {
  77. $res['SendDate'] = $this->sendDate;
  78. }
  79. return $res;
  80. }
  81. /**
  82. * @param array $map
  83. *
  84. * @return QuerySendDetailsRequest
  85. */
  86. public static function fromMap($map = [])
  87. {
  88. $model = new self();
  89. if (isset($map['BizId'])) {
  90. $model->bizId = $map['BizId'];
  91. }
  92. if (isset($map['CurrentPage'])) {
  93. $model->currentPage = $map['CurrentPage'];
  94. }
  95. if (isset($map['OwnerId'])) {
  96. $model->ownerId = $map['OwnerId'];
  97. }
  98. if (isset($map['PageSize'])) {
  99. $model->pageSize = $map['PageSize'];
  100. }
  101. if (isset($map['PhoneNumber'])) {
  102. $model->phoneNumber = $map['PhoneNumber'];
  103. }
  104. if (isset($map['ResourceOwnerAccount'])) {
  105. $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
  106. }
  107. if (isset($map['ResourceOwnerId'])) {
  108. $model->resourceOwnerId = $map['ResourceOwnerId'];
  109. }
  110. if (isset($map['SendDate'])) {
  111. $model->sendDate = $map['SendDate'];
  112. }
  113. return $model;
  114. }
  115. }