public class SyncImagesRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
SyncImagesRequest() |
SyncImagesRequest(SyncImagesRequest 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[] |
getDestinationRegions()
Get List of target synchronization regions, which should meet the following requirements:
It should be a valid region.If it is a custom image, the target synchronization region cannot be the source region.If it is a shared image, the target synchronization region only supports the source region, meaning the shared image will be copied as a custom image in the source region.Partial region synchronization is not supported currently. |
Boolean |
getDryRun()
Get Checks whether image synchronization can be initiated.
|
Boolean |
getEncrypt()
Get Whether to synchronize as an encrypted custom image.
|
String[] |
getImageIds()
Get Image ID list.
|
String |
getImageName()
Get Target image name.
|
Boolean |
getImageSetRequired()
Get Whether to return the ID of the image created in the target region.
|
String |
getKmsKeyId()
Get KMS key ID used when synchronizing to an encrypted custom image.
|
void |
setDestinationRegions(String[] DestinationRegions)
Set List of target synchronization regions, which should meet the following requirements:
It should be a valid region.If it is a custom image, the target synchronization region cannot be the source region.If it is a shared image, the target synchronization region only supports the source region, meaning the shared image will be copied as a custom image in the source region.Partial region synchronization is not supported currently. |
void |
setDryRun(Boolean DryRun)
Set Checks whether image synchronization can be initiated.
|
void |
setEncrypt(Boolean Encrypt)
Set Whether to synchronize as an encrypted custom image.
|
void |
setImageIds(String[] ImageIds)
Set Image ID list.
|
void |
setImageName(String ImageName)
Set Target image name.
|
void |
setImageSetRequired(Boolean ImageSetRequired)
Set Whether to return the ID of the image created in the target region.
|
void |
setKmsKeyId(String KmsKeyId)
Set KMS key ID used when synchronizing to an encrypted custom image.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SyncImagesRequest()
public SyncImagesRequest(SyncImagesRequest source)
public String[] getImageIds()
public void setImageIds(String[] ImageIds)
ImageIds
- Image ID list. You can obtain the image IDs in the following ways:public String[] getDestinationRegions()
public void setDestinationRegions(String[] DestinationRegions)
DestinationRegions
- List of target synchronization regions, which should meet the following requirements:public Boolean getDryRun()
public void setDryRun(Boolean DryRun)
DryRun
- Checks whether image synchronization can be initiated.
Default value: false.public String getImageName()
public void setImageName(String ImageName)
ImageName
- Target image name. By default, the source image name is used.public Boolean getImageSetRequired()
public void setImageSetRequired(Boolean ImageSetRequired)
ImageSetRequired
- Whether to return the ID of the image created in the target region.
Default value: false.public Boolean getEncrypt()
public void setEncrypt(Boolean Encrypt)
Encrypt
- Whether to synchronize as an encrypted custom image.
Default value is `false`.
Synchronization to an encrypted custom image is only supported within the same region.public String getKmsKeyId()
public void setKmsKeyId(String KmsKeyId)
KmsKeyId
- KMS key ID used when synchronizing to an encrypted custom image.
This parameter is valid only synchronizing to an encrypted image.
If KmsKeyId is not specified, the default CBS cloud product KMS key is used.Copyright © 2025. All rights reserved.