com.netease.cloud.services.nos.model
public class MoveObjectRequest extends WebServiceRequest
Provides options for moving an Nos object from a source location to a new destination.
logID, logSeq
Constructor and Description |
---|
MoveObjectRequest(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey)
Constructs a new
com.netease.cloud.services.nos.model with only
basic options. |
Modifier and Type | Method and Description |
---|---|
String |
getDestinationBucketName()
Gets the destination bucket name which will contain the new, copied
object.
|
String |
getDestinationKey()
Gets the destination bucket key under which the new, copied object will
be stored.
|
String |
getSourceBucketName()
Gets the name of the bucket containing the source object to be copied.
|
String |
getSourceKey()
Gets the source bucket key under which the source object to be copied is
stored.
|
void |
setDestinationBucketName(String destinationBucketName)
Sets the destination bucket name which will contain the new, copied
object.
|
void |
setDestinationKey(String destinationKey)
Sets the destination bucket key under which the new, copied object will
be stored.
|
void |
setSourceBucketName(String sourceBucketName)
Sets the name of the bucket containing the source object to be copied.
|
void |
setSourceKey(String sourceKey)
Sets the source bucket key under which the source object to be copied is
stored.
|
MoveObjectRequest |
withDestinationBucketName(String destinationBucketName)
Sets the name of the destination bucket which will contain the new,
copied object and returns this object, enabling additional method calls
to be chained together.
|
MoveObjectRequest |
withDestinationKey(String destinationKey)
Sets the destination bucket key under which the new, copied object will
be stored and returns this object, enabling additional method calls can
be chained together.
|
MoveObjectRequest |
withSourceBucketName(String sourceBucketName)
Sets the name of the bucket containing the source object to be copied,
and returns this object, enabling additional method calls to be chained
together.
|
MoveObjectRequest |
withSourceKey(String sourceKey)
Sets the key in the source bucket under which the source object to be
copied is stored and returns this object, enabling additional method
calls to be chained together.
|
addSpecialHeader, copyPrivateRequestParameters, getAndIncrementLogSeq, getLogID, getLogSeq, getRequestClientOptions, getRequestCredentials, getToken, needSetLogInfo, setLogID, setLogSeq, setRequestCredentials, setToken
public MoveObjectRequest(String sourceBucketName, String sourceKey, String destinationBucketName, String destinationKey)
Constructs a new
com.netease.cloud.services.nos.model
with only
basic options.
sourceBucketName
- The name of the Nos bucket containing the object to copy.sourceKey
- The source bucket key under which the object to copy is
stored.destinationBucketName
- The name of the Nos bucket to which the new object will be
copied.destinationKey
- The destination bucket key under which the new object will be
copied.CopyObjectRequest#CopyObjectRequest(String, String, String, String,
String)
public String getSourceBucketName()
CopyObjectRequest.setSourceBucketName(String sourceBucketName)
public void setSourceBucketName(String sourceBucketName)
sourceBucketName
- The name of the bucket containing the source object to be
copied.CopyObjectRequest.getSourceBucketName()
public MoveObjectRequest withSourceBucketName(String sourceBucketName)
sourceBucketName
- The name of the bucket containing the source object to be
copied.CopyObjectRequest
instance, enabling additional
method calls to be chained together.public String getSourceKey()
CopyObjectRequest.setSourceKey(String sourceKey)
public void setSourceKey(String sourceKey)
sourceKey
- The source bucket key under which the source object to be
copied is stored.CopyObjectRequest.setSourceKey(String sourceKey)
public MoveObjectRequest withSourceKey(String sourceKey)
sourceKey
- The key in the source bucket under which the source object to
be copied is stored.CopyObjectRequest
instance, enabling additional
method calls to be chained together.public String getDestinationBucketName()
CopyObjectRequest.setDestinationBucketName(String
destinationBucketName)
public void setDestinationBucketName(String destinationBucketName)
destinationBucketName
- The name of the destination bucket which will contain the new,
copied object.CopyObjectRequest.getDestinationBucketName()
public MoveObjectRequest withDestinationBucketName(String destinationBucketName)
destinationBucketName
- The name of the destination bucket which will contain the new,
copied object.CopyObjectRequest
, enabling additional method
calls to be chained together.public String getDestinationKey()
CopyObjectRequest.setDestinationKey(String destinationKey)
public void setDestinationKey(String destinationKey)
destinationKey
- The destination bucket key under which the new, copied object
will be stored.CopyObjectRequest.getDestinationKey()
public MoveObjectRequest withDestinationKey(String destinationKey)
destinationKey
- The destination bucket key under which the new, copied object
will be stored.CopyObjectRequest
, enabling additional method
calls to be chained together.Copyright © 2017. All Rights Reserved.