|
||||||||||
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.image.CreateImageRequest
public class CreateImageRequest
The request for creating new image.
Constructor Summary | |
---|---|
CreateImageRequest()
|
Method Summary | |
---|---|
String |
getClientToken()
|
String |
getImageName()
|
String |
getInstanceId()
|
String |
getSnapshotId()
|
void |
setClientToken(String clientToken)
|
void |
setImageName(String imageName)
|
void |
setInstanceId(String instanceId)
|
void |
setSnapshotId(String snapshotId)
|
CreateImageRequest |
withClientToken(String clientToken)
Configure optional client token for the request. |
CreateImageRequest |
withImageName(String imageName)
Configure imageName for the request. |
CreateImageRequest |
withInstanceId(String instanceId)
Configure instanceId for the request. |
CreateImageRequest |
withRequestCredentials(BceCredentials credentials)
Configure request credential for the request. |
CreateImageRequest |
withSnapshotId(String snapshotId)
Configure snapshotId 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 CreateImageRequest()
Method Detail |
---|
public String getClientToken()
public void setClientToken(String clientToken)
public CreateImageRequest withClientToken(String clientToken)
clientToken
- An ASCII string whose length is less than 64.
See more detail at
BCE API doc
public String getImageName()
public void setImageName(String imageName)
public CreateImageRequest withImageName(String imageName)
imageName
- The name for the image that will be created.
The name length from 1 to 65,only contains letters,digital and underline.
public String getInstanceId()
public void setInstanceId(String instanceId)
public CreateImageRequest withInstanceId(String instanceId)
instanceId
- The optional parameter specify the id of the instance
which will be used to create the new image.
When instanceId and snapshotId are specified ,only instanceId will be used.
public String getSnapshotId()
public void setSnapshotId(String snapshotId)
public CreateImageRequest withSnapshotId(String snapshotId)
snapshotId
- The optional parameter specify the id of the snapshot
which will be used to create the new image.
When instanceId and snapshotId are specified ,only instanceId will be used.
public CreateImageRequest 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 |