\OSS\ModelLifecycleRule

Class LifecycleRule

Summary

Methods
Properties
Constants
getId()
setId()
getPrefix()
setPrefix()
getStatus()
setStatus()
getActions()
setActions()
__construct()
appendToXml()
No public properties found
LIFECYCLE_STATUS_ENABLED
LIFECYCLE_STATUS_DISABLED
No protected methods found
No protected properties found
N/A
No private methods found
$id
$prefix
$status
$actions
N/A

Constants

LIFECYCLE_STATUS_ENABLED

LIFECYCLE_STATUS_ENABLED = 'Enabled'

LIFECYCLE_STATUS_DISABLED

LIFECYCLE_STATUS_DISABLED = 'Disabled'

Properties

$id

$id : 

Type

$prefix

$prefix : 

Type

$status

$status : 

Type

$actions

$actions : 

Type

Methods

getId()

getId() : string

得到规则ID

Returns

string

setId()

setId(string  $id) 

Parameters

string $id

规则ID

getPrefix()

getPrefix() : string

得到文件前缀

Returns

string

setPrefix()

setPrefix(string  $prefix) 

设置文件前缀

Parameters

string $prefix

文件前缀

getStatus()

getStatus() : string

Lifecycle规则的状态

Returns

string

setStatus()

setStatus(string  $status) 

设置Lifecycle规则状态

Parameters

string $status

setActions()

setActions(array<mixed,\OSS\Model\LifecycleAction>  $actions) 

Parameters

array<mixed,\OSS\Model\LifecycleAction> $actions

__construct()

__construct(string  $id, string  $prefix, string  $status, array<mixed,\OSS\Model\LifecycleAction>  $actions) 

LifecycleRule constructor.

Parameters

string $id

规则ID

string $prefix

文件前缀

string $status

规则状态,可选[self::LIFECYCLE_STATUS_ENABLED, self::LIFECYCLE_STATUS_DISABLED]

array<mixed,\OSS\Model\LifecycleAction> $actions

appendToXml()

appendToXml(\SimpleXMLElement  $xmlRule) 

Parameters

\SimpleXMLElement $xmlRule