|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.bcc.model.snapshot.CreateSnapshotRequest
public class CreateSnapshotRequest
The request for creating a new snapshot.
Constructor Summary | |
---|---|
CreateSnapshotRequest()
|
Method Summary | |
---|---|
String |
getClientToken()
|
String |
getDesc()
|
String |
getSnapshotName()
|
String |
getVolumeId()
|
void |
setClientToken(String clientToken)
|
void |
setDesc(String desc)
|
void |
setSnapshotName(String snapshotName)
|
void |
setVolumeId(String volumeId)
|
CreateSnapshotRequest |
withClientToken(String clientToken)
Configure optional client token for the request. |
CreateSnapshotRequest |
withDesc(String desc)
Configure desc for the request. |
CreateSnapshotRequest |
withRequestCredentials(BceCredentials credentials)
Configure request credential for the request. |
CreateSnapshotRequest |
withSnapshotName(String snapshotName)
Configure snapshotName for the request. |
CreateSnapshotRequest |
withVolumeId(String volumeId)
Configure volumeId for the request. |
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 |
---|
public CreateSnapshotRequest()
Method Detail |
---|
public String getClientToken()
public void setClientToken(String clientToken)
public CreateSnapshotRequest withClientToken(String clientToken)
clientToken
- An ASCII string whose length is less than 64.
See more detail at
BCE API doc
public String getVolumeId()
public void setVolumeId(String volumeId)
public CreateSnapshotRequest withVolumeId(String volumeId)
volumeId
- The id which specify where the snapshot will be created from.
If you want to create an snapshot from a customized volume,a id of the volume will be set.
If you want to create an snapshot from a system volume,a id of the instance will be set.
public String getSnapshotName()
public void setSnapshotName(String snapshotName)
public CreateSnapshotRequest withSnapshotName(String snapshotName)
snapshotName
- The name for the snapshot that will be created.
The name length from 1 to 65,only contains letters,digital and underline.
public String getDesc()
public void setDesc(String desc)
public CreateSnapshotRequest withDesc(String desc)
desc
- The optional parameter to describe the information of the new snapshot.
public CreateSnapshotRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials
in class AbstractBceRequest
credentials
- a valid instance of BceCredentials.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |