\OSS\ModelLifecycleConfig

Class BucketLifecycleConfig

Summary

Methods
Properties
Constants
parseFromXml()
serializeToXml()
addRule()
__toString()
getRules()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$rules
N/A

Properties

Methods

parseFromXml()

parseFromXml(string  $strXml) : null

Parse the xml into this object.

Parameters

string $strXml

Throws

\OSS\Core\OssException

Returns

null

serializeToXml()

serializeToXml() : string

Serialize the object to xml

Returns

string

addRule()

addRule(\OSS\Model\LifecycleRule  $lifecycleRule) 

Add a LifecycleRule

Parameters

\OSS\Model\LifecycleRule $lifecycleRule

Throws

\OSS\Core\OssException

__toString()

__toString() : string

Serialize the object into xml string.

Returns

string

getRules()

getRules() : array<mixed,\OSS\Model\LifecycleRule>

Get all lifecycle rules.

Returns

array<mixed,\OSS\Model\LifecycleRule>