类 LifecycleConfiguration.Rule
java.lang.Object
com.obs.services.model.LifecycleConfiguration.Rule
Bucket lifecycle rule
-
字段概要
字段修饰符和类型字段说明protected Booleanprotected LifecycleConfiguration.Expirationprotected Stringprotected Stringprotected BucketTagInfo.TagSetprotected List<LifecycleConfiguration.Transition> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanIdentify whether the rule is enabled.Obtain the expiration time of an object.getId()Obtain the rule ID.Obtain the expiration time of a noncurrent object version.Obtain the transition policy of noncurrent versions.Obtain the object name prefix used to identify one or more objects to which the rule applies.Obtain the rule tagSet.Obtain the transition policy of an object.inthashCode()Expiration time of objectsCreate the expiration time of a noncurrent object version.Create the transition policy for noncurrent versions.Create an object transition policy.voidsetAbortIncompleteMultipartUpload(LifecycleConfiguration.AbortIncompleteMultipartUpload abortIncompleteMultipartUpload) voidsetEnabled(Boolean enabled) Specify whether to enable the rule.voidsetExpiration(LifecycleConfiguration.Expiration expiration) Set the expiration time of an object.voidSet the rule ID.voidsetNoncurrentVersionExpiration(LifecycleConfiguration.NoncurrentVersionExpiration noncurrentVersionExpiration) Set the expiration time of a noncurrent object version.voidsetNoncurrentVersionTransitions(List<LifecycleConfiguration.NoncurrentVersionTransition> noncurrentVersionTransitions) Set the transition policy for noncurrent versions.voidSet the object name used to identify one or more objects to which the rule applies.voidsetTagSet(BucketTagInfo.TagSet tagSet) Set the rule tagSet.voidsetTransitions(List<LifecycleConfiguration.Transition> transitions) Set the object transition policy.toString()
-
字段详细资料
-
id
-
tagSet
-
prefix
-
enabled
-
expiration
-
noncurrentVersionExpiration
-
transitions
-
noncurrentVersionTransitions
-
abortIncompleteMultipartUpload
-
-
构造器详细资料
-
Rule
public Rule()No-argument constructor -
Rule
-
Rule
- 参数:
id- Rule IDprefix- Object name prefix identifying one or more objects to which the rule appliesenabled- Identifier that specifies whether the rule is enabled
-
-
方法详细资料
-
getAbortIncompleteMultipartUpload
-
setAbortIncompleteMultipartUpload
public void setAbortIncompleteMultipartUpload(LifecycleConfiguration.AbortIncompleteMultipartUpload abortIncompleteMultipartUpload) -
newExpiration
Expiration time of objects- 返回:
- Instance of expiration time configuration
-
newNoncurrentVersionExpiration
Create the expiration time of a noncurrent object version.- 返回:
- Expiration time of a noncurrent object version
-
newTransition
Create an object transition policy.- 返回:
- Object transition policy
-
newNoncurrentVersionTransition
Create the transition policy for noncurrent versions.- 返回:
- Transition policy for noncurrent versions
-
getId
-
setId
-
getTagSet
-
setTagSet
-
getPrefix
Obtain the object name prefix used to identify one or more objects to which the rule applies.- 返回:
- Object name prefix
-
setPrefix
Set the object name used to identify one or more objects to which the rule applies.- 参数:
prefix- Object name prefix
-
getEnabled
Identify whether the rule is enabled.- 返回:
- Identifier that specifies whether the rule is enabled
-
setEnabled
Specify whether to enable the rule.- 参数:
enabled- Identifier that specifies whether the rule is enabled
-
getExpiration
Obtain the expiration time of an object.- 返回:
- Expiration time of the object
-
setExpiration
Set the expiration time of an object.- 参数:
expiration- Expiration time of an object
-
getNoncurrentVersionExpiration
Obtain the expiration time of a noncurrent object version.- 返回:
- Expiration time of a noncurrent object version
-
setNoncurrentVersionExpiration
public void setNoncurrentVersionExpiration(LifecycleConfiguration.NoncurrentVersionExpiration noncurrentVersionExpiration) Set the expiration time of a noncurrent object version.- 参数:
noncurrentVersionExpiration- Expiration time of a noncurrent object version
-
getTransitions
Obtain the transition policy of an object.- 返回:
- Object transition policy
-
setTransitions
Set the object transition policy.- 参数:
transitions- Object transition policy
-
getNoncurrentVersionTransitions
Obtain the transition policy of noncurrent versions.- 返回:
- Transition policy for noncurrent versions
-
setNoncurrentVersionTransitions
public void setNoncurrentVersionTransitions(List<LifecycleConfiguration.NoncurrentVersionTransition> noncurrentVersionTransitions) Set the transition policy for noncurrent versions.- 参数:
noncurrentVersionTransitions- Transition policy for noncurrent versions
-
hashCode
-
equals
-
toString
-