'DomainName', 'endTime' => 'EndTime', 'instance' => 'Instance', 'interval' => 'Interval', 'ownerId' => 'OwnerId', 'region' => 'Region', 'splitBy' => 'SplitBy', 'startTime' => 'StartTime', 'type' => 'Type', 'app' => 'app', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->domainName) { $res['DomainName'] = $this->domainName; } if (null !== $this->endTime) { $res['EndTime'] = $this->endTime; } if (null !== $this->instance) { $res['Instance'] = $this->instance; } if (null !== $this->interval) { $res['Interval'] = $this->interval; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->region) { $res['Region'] = $this->region; } if (null !== $this->splitBy) { $res['SplitBy'] = $this->splitBy; } if (null !== $this->startTime) { $res['StartTime'] = $this->startTime; } if (null !== $this->type) { $res['Type'] = $this->type; } if (null !== $this->app) { $res['app'] = $this->app; } return $res; } /** * @param array $map * * @return DescribeLiveProducerUsageDataRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['DomainName'])) { $model->domainName = $map['DomainName']; } if (isset($map['EndTime'])) { $model->endTime = $map['EndTime']; } if (isset($map['Instance'])) { $model->instance = $map['Instance']; } if (isset($map['Interval'])) { $model->interval = $map['Interval']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['Region'])) { $model->region = $map['Region']; } if (isset($map['SplitBy'])) { $model->splitBy = $map['SplitBy']; } if (isset($map['StartTime'])) { $model->startTime = $map['StartTime']; } if (isset($map['Type'])) { $model->type = $map['Type']; } if (isset($map['app'])) { $model->app = $map['app']; } return $model; } }