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 you can use the activation code to register managed instances.
|
String |
instanceName
The default instance name prefix.
|
String |
ipAddressRange
The IP addresses of hosts that can use the activation code.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID.
|
String |
resourceGroupId
The ID of the resource group to which to assign 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 must be 1 to 100 characters in length.
example:This is description.
@NameInMap(value="InstanceCount") public Integer instanceCount
The maximum number of times that you can use the activation code to register managed instances. Valid values: 1 to 1000.
Default value: 10.
example:10
@NameInMap(value="InstanceName") public String instanceName
The default instance name prefix. The prefix must be 2 to 50 characters in length and can contain letters, digits, periods (.), underscores (_), hyphens (-), and colons (:). The prefix must start with a letter and cannot start with a digit, a special character, http://
, or https://
.
If you use the activation code that is created by calling the CreateActivation operation to register managed instances, the instances are assigned sequential names that include the value of this parameter as a prefix. You can also specify a new instance name to replace the assigned sequential name when you register a managed instance.
If you specify InstanceName when you register a managed instance, an instance name in the <InstanceName>-<Number>
format is generated. The number of digits in the \InstanceCount
value. Example: 001
. If you do not specify InstanceName, the hostname (Hostname) is used as the instance name.
test-InstanceName
@NameInMap(value="IpAddressRange") public String ipAddressRange
The IP addresses of hosts that can use the activation code. The value can be IPv4 addresses, IPv6 addresses, or CIDR blocks.
example:0.0.0.0/0
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID. Supported regions: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), China (Hong Kong), Singapore, Japan (Tokyo), US (Silicon Valley), and US (Virginia). You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the activation code.
example:rg-123******
@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. After the validity period ends, you can no longer use the activation code to register managed instances. Unit: hours. Valid values: 1 to 876576. 876576 hours is equal to 100 years.
Default value: 4.
example: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 setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
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 © 2024. All rights reserved.