CreateCardSmsTemplateShrinkRequest.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 CreateCardSmsTemplateShrinkRequest extends Model
  6. {
  7. /**
  8. * @var string
  9. */
  10. public $factorys;
  11. /**
  12. * @var string
  13. */
  14. public $memo;
  15. /**
  16. * @var string
  17. */
  18. public $templateShrink;
  19. /**
  20. * @var string
  21. */
  22. public $templateName;
  23. protected $_name = [
  24. 'factorys' => 'Factorys',
  25. 'memo' => 'Memo',
  26. 'templateShrink' => 'Template',
  27. 'templateName' => 'TemplateName',
  28. ];
  29. public function validate()
  30. {
  31. }
  32. public function toMap()
  33. {
  34. $res = [];
  35. if (null !== $this->factorys) {
  36. $res['Factorys'] = $this->factorys;
  37. }
  38. if (null !== $this->memo) {
  39. $res['Memo'] = $this->memo;
  40. }
  41. if (null !== $this->templateShrink) {
  42. $res['Template'] = $this->templateShrink;
  43. }
  44. if (null !== $this->templateName) {
  45. $res['TemplateName'] = $this->templateName;
  46. }
  47. return $res;
  48. }
  49. /**
  50. * @param array $map
  51. *
  52. * @return CreateCardSmsTemplateShrinkRequest
  53. */
  54. public static function fromMap($map = [])
  55. {
  56. $model = new self();
  57. if (isset($map['Factorys'])) {
  58. $model->factorys = $map['Factorys'];
  59. }
  60. if (isset($map['Memo'])) {
  61. $model->memo = $map['Memo'];
  62. }
  63. if (isset($map['Template'])) {
  64. $model->templateShrink = $map['Template'];
  65. }
  66. if (isset($map['TemplateName'])) {
  67. $model->templateName = $map['TemplateName'];
  68. }
  69. return $model;
  70. }
  71. }