类 SetBucketReplicationRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.SetBucketReplicationRequest
-
public class SetBucketReplicationRequest extends GenericBucketRequest
Request object containing all the options for setting a bucket's replication.
-
-
构造器概要
构造器 构造器 说明 SetBucketReplicationRequest()Constructs a void Constructor for SetBucketReplicationRequest.SetBucketReplicationRequest(String bucketName)Constructs a new SetBucketReplicationRequest to get a specified Bucket Lifecycle.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DestinationgetDestination()Gets the config of dest replicationStringgetId()Gets the replication rule nameStringgetJsonBucketReplication()Gets json formot bucket replicationStringgetReplicateDeletes()Gets the status of sync deleteReplicateHistorygetReplicateHistory()Gets the history replicationString[]getResource()Gets the replication prefixStringgetStatus()Gets the status of replicationvoidsetDestination(Destination destination)Sets the config of dest replicationvoidsetId(String id)Sets the replication rule namevoidsetJsonBucketReplication(String jsonBucketReplication)Sets json formot bucket replicationvoidsetReplicateDeletes(String replicateDeletes)Sets the status of sync deletevoidsetReplicateHistory(ReplicateHistory replicateHistory)Sets the history replicationvoidsetResource(String[] resource)Sets the replication prefixvoidsetStatus(String status)Sets the status of replicationSetBucketReplicationRequestwithBucketName(String bucketName)SetBucketReplicationRequestwithDestination(Destination destination)Sets the config of dest replicationSetBucketReplicationRequestwithId(String id)Sets the id of Bucket Replication.SetBucketReplicationRequestwithJsonBucketReplication(String jsonBucketReplication)Sets json formot bucket replicationSetBucketReplicationRequestwithReplicationDeletes(String replicateDeletes)Sets the status of sync deleteSetBucketReplicationRequestwithReplicationHistory(ReplicateHistory replicateHistory)Sets the history replicationSetBucketReplicationRequestwithRequestCredentials(BceCredentials credentials)SetBucketReplicationRequestwithResource(String[] resource)Sets the replication prefixSetBucketReplicationRequestwithStatus(String status)Sets the status bucket replication and returns this object, enabling additional method calls to be chained together.-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
SetBucketReplicationRequest
public SetBucketReplicationRequest()
Constructs a void Constructor for SetBucketReplicationRequest.
-
SetBucketReplicationRequest
public SetBucketReplicationRequest(String bucketName)
Constructs a new SetBucketReplicationRequest to get a specified Bucket Lifecycle.- 参数:
bucketName-
-
-
方法详细资料
-
getStatus
public String getStatus()
Gets the status of replication- 返回:
-
setStatus
public void setStatus(String status)
Sets the status of replication- 参数:
status-
-
withStatus
public SetBucketReplicationRequest withStatus(String status)
Sets the status bucket replication and returns this object, enabling additional method calls to be chained together.- 参数:
status- The status bucket replication.- 返回:
- This
SetBucketReplicationRequest, enabling additional method calls to be chained together.
-
getResource
public String[] getResource()
Gets the replication prefix- 返回:
-
setResource
public void setResource(String[] resource)
Sets the replication prefix- 参数:
resource-
-
getJsonBucketReplication
public String getJsonBucketReplication()
Gets json formot bucket replication- 返回:
-
setJsonBucketReplication
public void setJsonBucketReplication(String jsonBucketReplication)
Sets json formot bucket replication- 参数:
jsonBucketReplication-
-
withJsonBucketReplication
public SetBucketReplicationRequest withJsonBucketReplication(String jsonBucketReplication)
Sets json formot bucket replication- 参数:
jsonBucketReplication- json formot bucket replication- 返回:
- This
SetBucketReplicationRequest, enabling additional method calls to be chained together.
-
withResource
public SetBucketReplicationRequest withResource(String[] resource)
Sets the replication prefix- 参数:
resource- the replication prefix- 返回:
- This
SetBucketReplicationRequest, enabling additional method calls to be chained together.
-
getDestination
public Destination getDestination()
Gets the config of dest replication- 返回:
-
setDestination
public void setDestination(Destination destination)
Sets the config of dest replication- 参数:
destination-
-
withDestination
public SetBucketReplicationRequest withDestination(Destination destination)
Sets the config of dest replication- 参数:
destination- the config of dest replication- 返回:
- This
SetBucketReplicationRequest, enabling additional method calls to be chained together.
-
getReplicateHistory
public ReplicateHistory getReplicateHistory()
Gets the history replication- 返回:
-
setReplicateHistory
public void setReplicateHistory(ReplicateHistory replicateHistory)
Sets the history replication- 参数:
replicateHistory-
-
withReplicationHistory
public SetBucketReplicationRequest withReplicationHistory(ReplicateHistory replicateHistory)
Sets the history replication- 参数:
replicateHistory- the history replication- 返回:
- This
SetBucketReplicationRequest, enabling additional method calls to be chained together.
-
getReplicateDeletes
public String getReplicateDeletes()
Gets the status of sync delete- 返回:
-
setReplicateDeletes
public void setReplicateDeletes(String replicateDeletes)
Sets the status of sync delete- 参数:
replicateDeletes-
-
withReplicationDeletes
public SetBucketReplicationRequest withReplicationDeletes(String replicateDeletes)
Sets the status of sync delete- 参数:
replicateDeletes- the status of sync delete- 返回:
- This
SetBucketReplicationRequest, enabling additional method calls to be chained together.
-
getId
public String getId()
Gets the replication rule name- 返回:
-
setId
public void setId(String id)
Sets the replication rule name- 参数:
id-
-
withId
public SetBucketReplicationRequest withId(String id)
Sets the id of Bucket Replication.- 参数:
id- The id of Bucket Replication.- 返回:
- this object.
-
withBucketName
public SetBucketReplicationRequest withBucketName(String bucketName)
- 指定者:
withBucketName在类中GenericBucketRequest
-
withRequestCredentials
public SetBucketReplicationRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
-