public class ModifyInstanceAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestCpuOptions |
cpuOptions |
String |
creditSpecification
The performance mode of the burstable instance.
|
Boolean |
deletionProtection
The release protection attribute of the instance.
|
String |
description
The description of the instance.
|
Boolean |
enableJumboFrame
Specifies whether to enable the Jumbo Frames feature for the instance.
|
String |
hostName
The hostname of the instance.
|
String |
instanceId
The instance ID.
|
String |
instanceName
The name of the instance.
|
Integer |
networkInterfaceQueueNumber
The number of queues supported by the primary ENI.
|
String |
ownerAccount |
Long |
ownerId |
String |
password
The password of the instance.
|
ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestPrivateDnsNameOptions |
privateDnsNameOptions
This parameter is in invitational preview and is not publicly available.
|
Boolean |
recyclable
This parameter is in invitational preview and is not publicly available.
|
ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestRemoteConnectionOptions |
remoteConnectionOptions
This parameter is in invitational preview and is not publicly available.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<String> |
securityGroupIds
The IDs of replacement security groups.
|
String |
userData
The user data of the instance.
|
构造器和说明 |
---|
ModifyInstanceAttributeRequest() |
@NameInMap(value="CpuOptions") public ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestCpuOptions cpuOptions
@NameInMap(value="CreditSpecification") public String creditSpecification
The performance mode of the burstable instance. Valid values:
For more information about the performance modes of burstable instances, see Overview.
example:Standard
@NameInMap(value="DeletionProtection") public Boolean deletionProtection
The release protection attribute of the instance. This parameter specifies whether you can use the ECS console or call the DeleteInstance operation to release the instance.
example:This parameter is applicable only to pay-as-you-go instances. The release protection attribute can protect instances against manual releases, but not against automatic releases.
false
@NameInMap(value="Description") public String description
The description of the instance. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
testInstanceDescription
@NameInMap(value="EnableJumboFrame") public Boolean enableJumboFrame
Specifies whether to enable the Jumbo Frames feature for the instance. Valid values:
You can enable the Jumbo Frames feature only for specific instance types. For more information, see MTU and jumbo frames.
example:false
@NameInMap(value="HostName") public String hostName
The hostname of the instance. Take note of the following items:
Pending
) or Starting (Starting
) state. Otherwise, the new hostname and the configurations in /etc/hosts
may not take effect. You can call the DescribeInstances operation to query the status of the instance.The following limits apply to the hostnames of instances that run different operating systems:
testHostName
@NameInMap(value="InstanceId") public String instanceId
The instance ID.
This parameter is required.
example:i-bp67acfmxazb4ph****
@NameInMap(value="InstanceName") public String instanceName
The name of the instance. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http://
or https://
. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
testInstanceName
@NameInMap(value="NetworkInterfaceQueueNumber") public Integer networkInterfaceQueueNumber
The number of queues supported by the primary ENI.
example:8
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Password") public String password
The password of the instance. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The following special characters are supported:
( ) ` ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; \\" < > , . ? /
The password of a Windows instance cannot start with a forward slash (/).
example:For security reasons, we recommend that you use HTTPS to send requests if
Password
is specified.
Test123456
@NameInMap(value="PrivateDnsNameOptions") public ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestPrivateDnsNameOptions privateDnsNameOptions
This parameter is in invitational preview and is not publicly available.
@NameInMap(value="Recyclable") public Boolean recyclable
example:This parameter is in invitational preview and is not publicly available.
hide
@NameInMap(value="RemoteConnectionOptions") public ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestRemoteConnectionOptions remoteConnectionOptions
This parameter is in invitational preview and is not publicly available.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityGroupIds") public List<String> securityGroupIds
The IDs of replacement security groups.
sg-bp15ed6xe1yxeycg7o****
@NameInMap(value="UserData") public String userData
The user data of the instance. The user data must be encoded in Base64.
The maximum size of the raw data before encoding is 32 KB. We recommend that you do not pass in confidential information such as passwords and private keys in plaintext. If you must pass in confidential information, we recommend that you encrypt and Base64-encode the information before you pass it in. Then, you can decode and decrypt the information in the same way within the instance.
example:ZWNobyBoZWxsbyBlY3Mh
public static ModifyInstanceAttributeRequest build(Map<String,?> map) throws Exception
Exception
public ModifyInstanceAttributeRequest setCpuOptions(ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestCpuOptions cpuOptions)
public ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestCpuOptions getCpuOptions()
public ModifyInstanceAttributeRequest setCreditSpecification(String creditSpecification)
public String getCreditSpecification()
public ModifyInstanceAttributeRequest setDeletionProtection(Boolean deletionProtection)
public Boolean getDeletionProtection()
public ModifyInstanceAttributeRequest setDescription(String description)
public String getDescription()
public ModifyInstanceAttributeRequest setEnableJumboFrame(Boolean enableJumboFrame)
public Boolean getEnableJumboFrame()
public ModifyInstanceAttributeRequest setHostName(String hostName)
public String getHostName()
public ModifyInstanceAttributeRequest setInstanceId(String instanceId)
public String getInstanceId()
public ModifyInstanceAttributeRequest setInstanceName(String instanceName)
public String getInstanceName()
public ModifyInstanceAttributeRequest setNetworkInterfaceQueueNumber(Integer networkInterfaceQueueNumber)
public Integer getNetworkInterfaceQueueNumber()
public ModifyInstanceAttributeRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyInstanceAttributeRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyInstanceAttributeRequest setPassword(String password)
public String getPassword()
public ModifyInstanceAttributeRequest setPrivateDnsNameOptions(ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestPrivateDnsNameOptions privateDnsNameOptions)
public ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestPrivateDnsNameOptions getPrivateDnsNameOptions()
public ModifyInstanceAttributeRequest setRecyclable(Boolean recyclable)
public Boolean getRecyclable()
public ModifyInstanceAttributeRequest setRemoteConnectionOptions(ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestRemoteConnectionOptions remoteConnectionOptions)
public ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestRemoteConnectionOptions getRemoteConnectionOptions()
public ModifyInstanceAttributeRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyInstanceAttributeRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifyInstanceAttributeRequest setSecurityGroupIds(List<String> securityGroupIds)
public ModifyInstanceAttributeRequest setUserData(String userData)
public String getUserData()
Copyright © 2024. All rights reserved.