public static final class PutBucketLifecycleRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
PutBucketLifecycleRequest.Builder |
allowSameActionOverlap(String allowSameActionOverlap)
Specifies whether to allow overlapped prefixes.
|
PutBucketLifecycleRequest.Builder |
bucketName(String bucketName)
The name of the bucket.
|
PutBucketLifecycleRequest |
build() |
PutBucketLifecycleRequest.Builder |
createdBeforeDate(String createdBeforeDate)
The expiration time.
|
PutBucketLifecycleRequest.Builder |
expirationDays(Long expirationDays)
The number of days from when the objects were last modified to when the lifecycle rule takes effect.
|
PutBucketLifecycleRequest.Builder |
prefix(String prefix)
The prefix of a object name.
|
PutBucketLifecycleRequest.Builder |
ruleId(String ruleId)
The unique ID of the rule.
|
PutBucketLifecycleRequest.Builder |
status(String status)
The status of the rule.
|
public PutBucketLifecycleRequest.Builder allowSameActionOverlap(String allowSameActionOverlap)
* **true** * **false** (default)
public PutBucketLifecycleRequest.Builder bucketName(String bucketName)
public PutBucketLifecycleRequest.Builder createdBeforeDate(String createdBeforeDate)
Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. > ExpirationDays and CreateBeforeDate are mutually exclusive.
public PutBucketLifecycleRequest.Builder expirationDays(Long expirationDays)
> ExpirationDays and CreateBeforeDate are mutually exclusive.
public PutBucketLifecycleRequest.Builder prefix(String prefix)
* If you specify a prefix, the rule applies only to objects in the bucket that match the prefix. * If you do not specify a prefix, the rule applies to all objects in the bucket.
public PutBucketLifecycleRequest.Builder ruleId(String ruleId)
* You do not need to configure this parameter when you create a rule. The system automatically generates a unique ID. * When you update a rule, you need to specify this parameter. Make sure that the rule specified by RuleId exists. Otherwise, an error occurs.
public PutBucketLifecycleRequest.Builder status(String status)
* **Enabled** * **Disabled**
public PutBucketLifecycleRequest build()
Copyright © 2024. All rights reserved.