public class CreateImageRequest extends AbstractModel
Constructor and Description |
---|
CreateImageRequest() |
CreateImageRequest(CreateImageRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getDataDiskIds()
Get IDs of data disks included in the image.
|
Boolean |
getDryRun()
Get Success status of this request, without affecting the resources involved
|
String |
getForcePoweroff()
Get Whether to force shut down an instance to create an image when a soft shutdown fails
|
String |
getImageDescription()
Get Image description
|
String |
getImageName()
Get Image name
|
String |
getInstanceId()
Get ID of the instance from which an image will be created.
|
String[] |
getSnapshotIds()
Get Specified snapshot ID used to create an image.
|
String |
getSysprep()
Get Whether to enable Sysprep when creating a Windows image.
|
TagSpecification[] |
getTagSpecification()
Get Tag description list.
|
void |
setDataDiskIds(String[] DataDiskIds)
Set IDs of data disks included in the image.
|
void |
setDryRun(Boolean DryRun)
Set Success status of this request, without affecting the resources involved
|
void |
setForcePoweroff(String ForcePoweroff)
Set Whether to force shut down an instance to create an image when a soft shutdown fails
|
void |
setImageDescription(String ImageDescription)
Set Image description
|
void |
setImageName(String ImageName)
Set Image name
|
void |
setInstanceId(String InstanceId)
Set ID of the instance from which an image will be created.
|
void |
setSnapshotIds(String[] SnapshotIds)
Set Specified snapshot ID used to create an image.
|
void |
setSysprep(String Sysprep)
Set Whether to enable Sysprep when creating a Windows image.
|
void |
setTagSpecification(TagSpecification[] TagSpecification)
Set Tag description list.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateImageRequest()
public CreateImageRequest(CreateImageRequest source)
public String getImageName()
public void setImageName(String ImageName)
ImageName
- Image namepublic String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the instance from which an image will be created. This parameter is required when using instance to create an image.public String getImageDescription()
public void setImageDescription(String ImageDescription)
ImageDescription
- Image descriptionpublic String getForcePoweroff()
public void setForcePoweroff(String ForcePoweroff)
ForcePoweroff
- Whether to force shut down an instance to create an image when a soft shutdown failspublic String getSysprep()
public void setSysprep(String Sysprep)
Sysprep
- Whether to enable Sysprep when creating a Windows image.
Valid values: `TRUE` and `FALSE`; default value: `FALSE`.
Click [here](https://intl.cloud.tencent.com/document/product/213/43498?from_cn_redirect=1) to learn more about Sysprep.public String[] getDataDiskIds()
public void setDataDiskIds(String[] DataDiskIds)
DataDiskIds
- IDs of data disks included in the image.public String[] getSnapshotIds()
public void setSnapshotIds(String[] SnapshotIds)
SnapshotIds
- Specified snapshot ID used to create an image. A system disk snapshot must be included. It cannot be passed together with `InstanceId`.public Boolean getDryRun()
public void setDryRun(Boolean DryRun)
DryRun
- Success status of this request, without affecting the resources involvedpublic TagSpecification[] getTagSpecification()
public void setTagSpecification(TagSpecification[] TagSpecification)
TagSpecification
- Tag description list. This parameter is used to bind a tag to a custom image.Copyright © 2023. All rights reserved.