assumedRoleUser.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Sts\V20150401\Models\AssumeRoleResponseBody;
  4. use AlibabaCloud\Tea\Model;
  5. class assumedRoleUser extends Model
  6. {
  7. /**
  8. * @var string
  9. */
  10. public $arn;
  11. /**
  12. * @var string
  13. */
  14. public $assumedRoleId;
  15. protected $_name = [
  16. 'arn' => 'Arn',
  17. 'assumedRoleId' => 'AssumedRoleId',
  18. ];
  19. public function validate()
  20. {
  21. }
  22. public function toMap()
  23. {
  24. $res = [];
  25. if (null !== $this->arn) {
  26. $res['Arn'] = $this->arn;
  27. }
  28. if (null !== $this->assumedRoleId) {
  29. $res['AssumedRoleId'] = $this->assumedRoleId;
  30. }
  31. return $res;
  32. }
  33. /**
  34. * @param array $map
  35. *
  36. * @return assumedRoleUser
  37. */
  38. public static function fromMap($map = [])
  39. {
  40. $model = new self();
  41. if (isset($map['Arn'])) {
  42. $model->arn = $map['Arn'];
  43. }
  44. if (isset($map['AssumedRoleId'])) {
  45. $model->assumedRoleId = $map['AssumedRoleId'];
  46. }
  47. return $model;
  48. }
  49. }