blob: fd0866d30d89e224f1c6280063b3e812358c1b70 [file] [log] [blame]
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace RocketMQ\Eventbridge\SDK\Models;
use AlibabaCloud\Tea\Model;
class ListEventSourcesRequest extends Model {
protected $_name = [
'eventBusName' => 'eventBusName',
'eventSourceType' => 'eventSourceType',
'maxResults' => 'maxResults',
'nextToken' => 'nextToken',
];
public function validate() {}
public function toMap() {
$res = [];
if (null !== $this->eventBusName) {
$res['eventBusName'] = $this->eventBusName;
}
if (null !== $this->eventSourceType) {
$res['eventSourceType'] = $this->eventSourceType;
}
if (null !== $this->maxResults) {
$res['maxResults'] = $this->maxResults;
}
if (null !== $this->nextToken) {
$res['nextToken'] = $this->nextToken;
}
return $res;
}
/**
* @param array $map
* @return ListEventSourcesRequest
*/
public static function fromMap($map = []) {
$model = new self();
if(isset($map['eventBusName'])){
$model->eventBusName = $map['eventBusName'];
}
if(isset($map['eventSourceType'])){
$model->eventSourceType = $map['eventSourceType'];
}
if(isset($map['maxResults'])){
$model->maxResults = $map['maxResults'];
}
if(isset($map['nextToken'])){
$model->nextToken = $map['nextToken'];
}
return $model;
}
/**
* @var string
*/
public $eventBusName;
/**
* @description The type of the event source.
This parameter is required.
* @example USER_DEFINED
* @var string
*/
public $eventSourceType;
/**
* @description The number of entries returned per page.
* @example 10
* @var int
*/
public $maxResults;
/**
* @description If excess return values exist, this parameter is returned.
* @example 0
* @var string
*/
public $nextToken;
}