public class CreateImageRequest extends AbstractBceRequest
| Constructor and Description |
|---|
CreateImageRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientToken() |
String |
getImageName() |
String |
getInstanceId() |
String |
getSnapshotId() |
boolean |
isRelateCds() |
void |
setClientToken(String clientToken) |
void |
setImageName(String imageName) |
void |
setInstanceId(String instanceId) |
void |
setRelateCds(boolean relateCds) |
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 |
withRelateCds(boolean relateCds)
Configure relateCds for the request.
|
CreateImageRequest |
withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.
|
CreateImageRequest |
withSnapshotId(String snapshotId)
Configure snapshotId for the request.
|
getRequestCredentials, setRequestCredentialspublic 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 docpublic 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 boolean isRelateCds()
public void setRelateCds(boolean relateCds)
public CreateImageRequest withRelateCds(boolean relateCds)
relateCds - Whether is related with CDS. If true, it means the image is related with CDS.public CreateImageRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - a valid instance of BceCredentials.Copyright © 2024. All rights reserved.