args['Bucket'] ?? ''; } /** * @param string $name * * @return $this */ public function inBucket(string $name) { $this->args['Bucket'] = $name; return $this; } /** * @return string */ public function getFilename(): string { return $this->args['Key'] ?? ''; } /** * @param string $filename * * @return $this */ public function byFilename(string $filename) { $this->args['Key'] = $filename; return $this; } /** * @return int lifetime of the active copy in days */ public function getLifetime(): int { return $this->args['Days'] ?? 0; } /** * @param int $days lifetime of the active copy in days * * @return $this */ public function withLifetime(int $days) { $this->args['Days'] = $days; return $this; } /** * @return string */ public function getVersionId(): string { return $this->args['VersionId'] ?? ''; } /** * @param string $versionId * * @return $this */ public function withVersionId(string $versionId) { $this->args['VersionId'] = $versionId; return $this; } /** * @internal used by the handlers * * @return string */ public function getName(): string { return 'RestoreObject'; } /** * @internal used by the handlers * * @return array */ public function toArgs(): array { return $this->args; } }