public class ModifyInstanceAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestRemoteConnectionOptions |
限定符和类型 | 字段和说明 |
---|---|
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 |
String |
hostName
The hostname of the instance.
|
String |
instanceId
The ID of the instance.
|
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.
|
Boolean |
recyclable
> This parameter is in invitational preview and unavailable for general users.
|
ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestRemoteConnectionOptions |
remoteConnectionOptions
> This parameter is in invitational preview and unavailable for general users.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<String> |
securityGroupIds
The IDs of replacement security groups.
|
String |
userData
The user data of the instance.
|
构造器和说明 |
---|
ModifyInstanceAttributeRequest() |
@NameInMap(value="CreditSpecification") public String creditSpecification
The performance mode of the burstable instance. Valid values:
* Standard: standard mode
* Unlimited: unlimited mode
For more information about the performance modes of burstable instances, see [Burstable instances](~~59977~~).
@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](~~25507~~) operation to release the instance.
> This parameter is applicable to only pay-as-you-go instances. It can protect instances against manual releases, but not against automatic releases.
@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://`.
This parameter is empty by default.
@NameInMap(value="EnableJumboFrame") public Boolean enableJumboFrame
@NameInMap(value="HostName") public String hostName
The hostname of the instance. Take note of the following items:
* When you modify the hostname of an instance, the instance must not be in the Creating (Pending) or Starting (Starting) state. Otherwise, the new hostname and the configurations in `/etc/hosts` cannot take effect. You can call the [DescribeInstances](~~25506~~) operation to query the state of the instance.
* After the hostname is modified, you must call the [RebootInstance](~~25502~~) operation to restart the instance for the new hostname to take effect.
The following limits apply to the hostnames of instances that run different operating systems:
* For Windows Server, the hostname must be 2 to 15 characters in length and can contain letters, digits, and hyphens (-). It cannot start or end with a hyphen (-), contain consecutive hyphens (-), or contain only digits.
* For other operating systems such as Linux, the hostname must be 2 to 64 characters in length. You can use periods (.) to separate a hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-). The hostname cannot contain consecutive periods (.) or hyphens (-). It cannot start or end with a period (.) or a hyphen (-).
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
@NameInMap(value="InstanceName") public String instanceName
The name of the instance. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="NetworkInterfaceQueueNumber") public Integer networkInterfaceQueueNumber
The number of queues supported by the primary ENI.
@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. Special characters include:
()`~!@#$%^&*-_+=|{}[]:;\"<>,.?/
The password of a Windows instance cannot start with a forward slash (/).
> If the `Password` parameter is specified, we recommend that you send requests over HTTPS to prevent password leaks.
@NameInMap(value="Recyclable") public Boolean recyclable
> This parameter is in invitational preview and unavailable for general users.
@NameInMap(value="RemoteConnectionOptions") public ModifyInstanceAttributeRequest.ModifyInstanceAttributeRequestRemoteConnectionOptions remoteConnectionOptions
> This parameter is in invitational preview and unavailable for general users.
@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.
* All security group IDs must be unique.
* The instance is moved from the current security groups to the replacement security groups. If you want the instance to remain in the current security groups, you must add the IDs of the current security groups to the list.
* You can move the instance to security groups of a different type. However, the list cannot contain the IDs of both basic and advanced security groups.
* The specified security group and instance must belong to the same virtual private cloud (VPC).
* The valid values of N are based on the maximum number of security groups to which the instance can belong. For more information, see [Limits](~~25412#SecurityGroupQuota1~~).
* New security groups become valid for corresponding instances after a short latency.
@NameInMap(value="UserData") public String userData
The user data of the instance. User data must be encoded in Base64.
The size of the user data cannot exceed 16 KB before it is encoded in Base64. We recommend that you do not pass in confidential information such as passwords and private keys in the plaintext format. 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.
public static ModifyInstanceAttributeRequest build(Map<String,?> map) throws Exception
Exception
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 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 © 2023. All rights reserved.