Class ModifyImageSharePermissionRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cvm.v20170312.models.ModifyImageSharePermissionRequest
-
public class ModifyImageSharePermissionRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ModifyImageSharePermissionRequest()
ModifyImageSharePermissionRequest(ModifyImageSharePermissionRequest 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getAccountIds()
Get 接收共享镜像的账号Id列表,array型参数的格式可以参考[API简介](/document/api/213/568)。账号ID不同于QQ号,查询用户账号ID请查看[账号信息](https://console.cloud.tencent.com/developer)中的账号ID栏。String
getImageId()
Get 镜像ID,形如`img-gvbnzy6f`。镜像Id可以通过如下方式获取:
通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。
镜像ID必须指定为状态为`NORMAL`的镜像。镜像状态请参考[镜像数据表](https://cloud.tencent.com/document/product/213/15753#Image)。String
getPermission()
Get 操作,包括 `SHARE`,`CANCEL`。其中`SHARE`代表共享操作,`CANCEL`代表取消共享操作。void
setAccountIds(String[] AccountIds)
Set 接收共享镜像的账号Id列表,array型参数的格式可以参考[API简介](/document/api/213/568)。账号ID不同于QQ号,查询用户账号ID请查看[账号信息](https://console.cloud.tencent.com/developer)中的账号ID栏。void
setImageId(String ImageId)
Set 镜像ID,形如`img-gvbnzy6f`。镜像Id可以通过如下方式获取:
通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。
镜像ID必须指定为状态为`NORMAL`的镜像。镜像状态请参考[镜像数据表](https://cloud.tencent.com/document/product/213/15753#Image)。void
setPermission(String Permission)
Set 操作,包括 `SHARE`,`CANCEL`。其中`SHARE`代表共享操作,`CANCEL`代表取消共享操作。void
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ModifyImageSharePermissionRequest
public ModifyImageSharePermissionRequest()
-
ModifyImageSharePermissionRequest
public ModifyImageSharePermissionRequest(ModifyImageSharePermissionRequest 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.
-
-
Method Detail
-
getImageId
public String getImageId()
Get 镜像ID,形如`img-gvbnzy6f`。镜像Id可以通过如下方式获取:- 通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
- 通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。
镜像ID必须指定为状态为`NORMAL`的镜像。镜像状态请参考[镜像数据表](https://cloud.tencent.com/document/product/213/15753#Image)。- Returns:
- ImageId 镜像ID,形如`img-gvbnzy6f`。镜像Id可以通过如下方式获取:
- 通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
- 通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。
镜像ID必须指定为状态为`NORMAL`的镜像。镜像状态请参考[镜像数据表](https://cloud.tencent.com/document/product/213/15753#Image)。 - 通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
- 通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
-
setImageId
public void setImageId(String ImageId)
Set 镜像ID,形如`img-gvbnzy6f`。镜像Id可以通过如下方式获取:- 通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
- 通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。
镜像ID必须指定为状态为`NORMAL`的镜像。镜像状态请参考[镜像数据表](https://cloud.tencent.com/document/product/213/15753#Image)。- Parameters:
ImageId
- 镜像ID,形如`img-gvbnzy6f`。镜像Id可以通过如下方式获取:- 通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
- 通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。
镜像ID必须指定为状态为`NORMAL`的镜像。镜像状态请参考[镜像数据表](https://cloud.tencent.com/document/product/213/15753#Image)。- 通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
- 通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。
-
getAccountIds
public String[] getAccountIds()
Get 接收共享镜像的账号Id列表,array型参数的格式可以参考[API简介](/document/api/213/568)。账号ID不同于QQ号,查询用户账号ID请查看[账号信息](https://console.cloud.tencent.com/developer)中的账号ID栏。- Returns:
- AccountIds 接收共享镜像的账号Id列表,array型参数的格式可以参考[API简介](/document/api/213/568)。账号ID不同于QQ号,查询用户账号ID请查看[账号信息](https://console.cloud.tencent.com/developer)中的账号ID栏。
-
setAccountIds
public void setAccountIds(String[] AccountIds)
Set 接收共享镜像的账号Id列表,array型参数的格式可以参考[API简介](/document/api/213/568)。账号ID不同于QQ号,查询用户账号ID请查看[账号信息](https://console.cloud.tencent.com/developer)中的账号ID栏。- Parameters:
AccountIds
- 接收共享镜像的账号Id列表,array型参数的格式可以参考[API简介](/document/api/213/568)。账号ID不同于QQ号,查询用户账号ID请查看[账号信息](https://console.cloud.tencent.com/developer)中的账号ID栏。
-
getPermission
public String getPermission()
Get 操作,包括 `SHARE`,`CANCEL`。其中`SHARE`代表共享操作,`CANCEL`代表取消共享操作。- Returns:
- Permission 操作,包括 `SHARE`,`CANCEL`。其中`SHARE`代表共享操作,`CANCEL`代表取消共享操作。
-
setPermission
public void setPermission(String Permission)
Set 操作,包括 `SHARE`,`CANCEL`。其中`SHARE`代表共享操作,`CANCEL`代表取消共享操作。- Parameters:
Permission
- 操作,包括 `SHARE`,`CANCEL`。其中`SHARE`代表共享操作,`CANCEL`代表取消共享操作。
-
-