blob: e4f4a462de5706c51207ec076b8841aff4370d07 [file] [log] [blame]
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace RocketMQ\Eventbridge\SDK\Models\GetEventRuleResponseBody\eventTargets\runOptions;
use AlibabaCloud\Tea\Model;
class retryStrategy extends Model {
protected $_name = [
'pushRetryStrategy' => 'pushRetryStrategy',
'maximumEventAgeInSeconds' => 'maximumEventAgeInSeconds',
'maximumRetryAttempts' => 'maximumRetryAttempts',
];
public function validate() {}
public function toMap() {
$res = [];
if (null !== $this->pushRetryStrategy) {
$res['pushRetryStrategy'] = $this->pushRetryStrategy;
}
if (null !== $this->maximumEventAgeInSeconds) {
$res['maximumEventAgeInSeconds'] = $this->maximumEventAgeInSeconds;
}
if (null !== $this->maximumRetryAttempts) {
$res['maximumRetryAttempts'] = $this->maximumRetryAttempts;
}
return $res;
}
/**
* @param array $map
* @return retryStrategy
*/
public static function fromMap($map = []) {
$model = new self();
if(isset($map['pushRetryStrategy'])){
$model->pushRetryStrategy = $map['pushRetryStrategy'];
}
if(isset($map['maximumEventAgeInSeconds'])){
$model->maximumEventAgeInSeconds = $map['maximumEventAgeInSeconds'];
}
if(isset($map['maximumRetryAttempts'])){
$model->maximumRetryAttempts = $map['maximumRetryAttempts'];
}
return $model;
}
/**
* @var string
*/
public $pushRetryStrategy;
/**
* @var int
*/
public $maximumEventAgeInSeconds;
/**
* @var int
*/
public $maximumRetryAttempts;
}