com.baidubce.services.bos.model
Class SetBucketLifecycleRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.bos.model.GenericBucketRequest
          extended by com.baidubce.services.bos.model.SetBucketLifecycleRequest

public class SetBucketLifecycleRequest
extends GenericBucketRequest

Request object containing all the options for setting a bucket's Lifecycle.


Constructor Summary
SetBucketLifecycleRequest()
          Constructs a void Constructor for SetBucketLifecycleRequest.
SetBucketLifecycleRequest(String bucketName, List<Rule> ruleList)
          Constructs a new SetBucketLifecycleRequest object, ready to set the specified Bucket Lifecycle.
SetBucketLifecycleRequest(String bucketName, String jsonBucketLifecycle)
          Constructs a new SetBucketLifecycleRequest object, ready to set the specified Bucket Lifecycle.
 
Method Summary
 String getJsonBucketLifecycle()
          Gets the jsonBucketLifecycle of Bucket Lifecycle.
 List<Rule> getRuleList()
          Gets the ruleList of Bucket Lifecycle.
 void setJsonBucketLifecycle(String jsonBucketLifecycle)
          Sets the jsonBucketLifecycle of Bucket Lifecycle.
 void setRuleList(List<Rule> ruleList)
          Sets the ruleList of Bucket Lifecycle.
 SetBucketLifecycleRequest withBucketName(String bucketName)
           
 SetBucketLifecycleRequest withRequestCredentials(BceCredentials credentials)
           
 
Methods inherited from class com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetBucketLifecycleRequest

public SetBucketLifecycleRequest()
Constructs a void Constructor for SetBucketLifecycleRequest.


SetBucketLifecycleRequest

public SetBucketLifecycleRequest(String bucketName,
                                 String jsonBucketLifecycle)
Constructs a new SetBucketLifecycleRequest object, ready to set the specified Bucket Lifecycle.

Parameters:
bucketName -
jsonBucketLifecycle - The jsonBucketLifecycle of Bucket Lifecycle.

SetBucketLifecycleRequest

public SetBucketLifecycleRequest(String bucketName,
                                 List<Rule> ruleList)
Constructs a new SetBucketLifecycleRequest object, ready to set the specified Bucket Lifecycle.

Parameters:
bucketName -
ruleList - The ruleList of Bucket Lifecycle.
Method Detail

withRequestCredentials

public SetBucketLifecycleRequest withRequestCredentials(BceCredentials credentials)
Specified by:
withRequestCredentials in class AbstractBceRequest

withBucketName

public SetBucketLifecycleRequest withBucketName(String bucketName)
Specified by:
withBucketName in class GenericBucketRequest

getJsonBucketLifecycle

public String getJsonBucketLifecycle()
Gets the jsonBucketLifecycle of Bucket Lifecycle.

Returns:
the jsonBucketLifecycle of Bucket Lifecycle.

setJsonBucketLifecycle

public void setJsonBucketLifecycle(String jsonBucketLifecycle)
Sets the jsonBucketLifecycle of Bucket Lifecycle.

Parameters:
jsonBucketLifecycle - The jsonBucketLifecycle of Bucket Lifecycle.

getRuleList

public List<Rule> getRuleList()
Gets the ruleList of Bucket Lifecycle.

Returns:
the ruleList of Bucket Lifecycle.

setRuleList

public void setRuleList(List<Rule> ruleList)
Sets the ruleList of Bucket Lifecycle.

Parameters:
ruleList - The ruleList of Bucket Lifecycle.


Copyright © 2018. All rights reserved.