com.tencentcloudapi.cvm.v20170312.models.SyncImagesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.cvm.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class SyncImagesRequest extends AbstractModel{
/**
* List of image IDs. You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
Look for the information in the [Image Console](https://console.cloud.tencent.com/cvm/image).
The specified images must meet the following requirements:
The images must be in the `NORMAL` state.
The image size must be smaller than 50 GB.
For more information on image states, see [here](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#image_state).
*/
@SerializedName("ImageIds")
@Expose
private String [] ImageIds;
/**
* List of destination regions for synchronization. A destination region must meet the following requirements:
It cannot be the source region.
It must be valid.
Currently some regions do not support image synchronization.
For specific regions, see [Region](https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1).
*/
@SerializedName("DestinationRegions")
@Expose
private String [] DestinationRegions;
/**
* Get List of image IDs. You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
Look for the information in the [Image Console](https://console.cloud.tencent.com/cvm/image).
The specified images must meet the following requirements:
The images must be in the `NORMAL` state.
The image size must be smaller than 50 GB.
For more information on image states, see [here](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#image_state).
* @return ImageIds List of image IDs. You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
Look for the information in the [Image Console](https://console.cloud.tencent.com/cvm/image).
The specified images must meet the following requirements:
The images must be in the `NORMAL` state.
The image size must be smaller than 50 GB.
For more information on image states, see [here](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#image_state).
*/
public String [] getImageIds() {
return this.ImageIds;
}
/**
* Set List of image IDs. You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
Look for the information in the [Image Console](https://console.cloud.tencent.com/cvm/image).
The specified images must meet the following requirements:
The images must be in the `NORMAL` state.
The image size must be smaller than 50 GB.
For more information on image states, see [here](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#image_state).
* @param ImageIds List of image IDs. You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
Look for the information in the [Image Console](https://console.cloud.tencent.com/cvm/image).
The specified images must meet the following requirements:
The images must be in the `NORMAL` state.
The image size must be smaller than 50 GB.
For more information on image states, see [here](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#image_state).
*/
public void setImageIds(String [] ImageIds) {
this.ImageIds = ImageIds;
}
/**
* Get List of destination regions for synchronization. A destination region must meet the following requirements:
It cannot be the source region.
It must be valid.
Currently some regions do not support image synchronization.
For specific regions, see [Region](https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1).
* @return DestinationRegions List of destination regions for synchronization. A destination region must meet the following requirements:
It cannot be the source region.
It must be valid.
Currently some regions do not support image synchronization.
For specific regions, see [Region](https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1).
*/
public String [] getDestinationRegions() {
return this.DestinationRegions;
}
/**
* Set List of destination regions for synchronization. A destination region must meet the following requirements:
It cannot be the source region.
It must be valid.
Currently some regions do not support image synchronization.
For specific regions, see [Region](https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1).
* @param DestinationRegions List of destination regions for synchronization. A destination region must meet the following requirements:
It cannot be the source region.
It must be valid.
Currently some regions do not support image synchronization.
For specific regions, see [Region](https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1).
*/
public void setDestinationRegions(String [] DestinationRegions) {
this.DestinationRegions = DestinationRegions;
}
public SyncImagesRequest() {
}
/**
* 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.
*/
public SyncImagesRequest(SyncImagesRequest source) {
if (source.ImageIds != null) {
this.ImageIds = new String[source.ImageIds.length];
for (int i = 0; i < source.ImageIds.length; i++) {
this.ImageIds[i] = new String(source.ImageIds[i]);
}
}
if (source.DestinationRegions != null) {
this.DestinationRegions = new String[source.DestinationRegions.length];
for (int i = 0; i < source.DestinationRegions.length; i++) {
this.DestinationRegions[i] = new String(source.DestinationRegions[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "ImageIds.", this.ImageIds);
this.setParamArraySimple(map, prefix + "DestinationRegions.", this.DestinationRegions);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy