public class CreateActivationRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateActivationRequest.CreateActivationRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
description
The description of the activation code.
|
Integer |
instanceCount
The maximum number of times that the activation code can be used to register managed instances.
|
String |
instanceName
The default instance name prefix.
|
String |
ipAddressRange
The IP addresses of hosts that are allowed to use the activation code.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The ID of the region in which to create the activation code.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<CreateActivationRequest.CreateActivationRequestTag> |
tag
The tags to add to the activation code.
|
Long |
timeToLiveInHours
The validity period of the activation code.
|
构造器和说明 |
---|
CreateActivationRequest() |
@NameInMap(value="Description") public String description
The description of the activation code. The description can be 1 to 100 characters in length and cannot start with `http://` or `https://`.
@NameInMap(value="InstanceCount") public Integer instanceCount
The maximum number of times that the activation code can be used to register managed instances. Valid values: 1 to 1000.
Default value: 10.
@NameInMap(value="InstanceName") public String instanceName
The default instance name prefix. The instance name prefix must be 1 to 50 characters in length. It must start with a letter and cannot start with `http://` or `https://`. The instance name prefix can contain letters, digits, periods (.), underscores (\_), hyphens (-), and colons (:).
If you use the activation code created by calling the CreateActivation operation to register managed instances, the instances are assigned sequential names that are prefixed by the value of this parameter. You can also specify a new instance name to override the assigned sequential name when you register a managed instance.
If you use an activation code for which the InstanceName parameter is specified to register a managed instance, an instance name in the format of `
@NameInMap(value="IpAddressRange") public String ipAddressRange
The IP addresses of hosts that are allowed to use the activation code. The value can be IPv4 addresses, IPv6 addresses, or CIDR blocks.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the activation code. The following regions are supported: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), and China (Hong Kong).
You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tag") public List<CreateActivationRequest.CreateActivationRequestTag> tag
The tags to add to the activation code.
@NameInMap(value="TimeToLiveInHours") public Long timeToLiveInHours
The validity period of the activation code. The activation code cannot be used to register new instances after the validity period expires. Unit: hours. Valid values: 1 to 24.
Default value: 4.
public static CreateActivationRequest build(Map<String,?> map) throws Exception
Exception
public CreateActivationRequest setDescription(String description)
public String getDescription()
public CreateActivationRequest setInstanceCount(Integer instanceCount)
public Integer getInstanceCount()
public CreateActivationRequest setInstanceName(String instanceName)
public String getInstanceName()
public CreateActivationRequest setIpAddressRange(String ipAddressRange)
public String getIpAddressRange()
public CreateActivationRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateActivationRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateActivationRequest setRegionId(String regionId)
public String getRegionId()
public CreateActivationRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateActivationRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateActivationRequest setTag(List<CreateActivationRequest.CreateActivationRequestTag> tag)
public List<CreateActivationRequest.CreateActivationRequestTag> getTag()
public CreateActivationRequest setTimeToLiveInHours(Long timeToLiveInHours)
public Long getTimeToLiveInHours()
Copyright © 2023. All rights reserved.