public static final class ModifyInstanceAttributeRequest.Builder extends Object
public ModifyInstanceAttributeRequest.Builder cpuOptions(ModifyInstanceAttributeRequest.CpuOptions cpuOptions)
public ModifyInstanceAttributeRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyInstanceAttributeRequest.Builder creditSpecification(String creditSpecification)
* Standard * Unlimited For more information about the performance modes of burstable instances, see [Overview](~~59977~~).
public ModifyInstanceAttributeRequest.Builder deletionProtection(Boolean deletionProtection)
> 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.
public ModifyInstanceAttributeRequest.Builder description(String description)
public ModifyInstanceAttributeRequest.Builder enableJumboFrame(Boolean enableJumboFrame)
* true * false You can enable the Jumbo Frames feature only for specific instance types. For more information, see [MTU and jumbo frames](~~200512~~).
public ModifyInstanceAttributeRequest.Builder hostName(String hostName)
* When you change the hostname of the instance, the instance cannot be in the Creating (`Pending`) or Starting (`Starting`) state. Otherwise, the new hostname and the configurations in `/etc/hosts` may not take effect. You can call the [DescribeInstances](~~25506~~) operation to query the status of the instance. * After you change the hostname, you must call the [RebootInstance](~~25502~~) operation 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 (-). The hostname 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 (-). The hostname cannot start or end with a period (.) or a hyphen (-).
public ModifyInstanceAttributeRequest.Builder instanceId(String instanceId)
public ModifyInstanceAttributeRequest.Builder instanceName(String instanceName)
public ModifyInstanceAttributeRequest.Builder networkInterfaceQueueNumber(Integer networkInterfaceQueueNumber)
public ModifyInstanceAttributeRequest.Builder ownerAccount(String ownerAccount)
public ModifyInstanceAttributeRequest.Builder ownerId(Long ownerId)
public ModifyInstanceAttributeRequest.Builder password(String password)
( ) ` ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; \" < > , . ? / The password of a Windows instance cannot start with a forward slash (/). > For security reasons, we recommend that you use HTTPS to send requests if `Password` is specified.
public ModifyInstanceAttributeRequest.Builder privateDnsNameOptions(ModifyInstanceAttributeRequest.PrivateDnsNameOptions privateDnsNameOptions)
public ModifyInstanceAttributeRequest.Builder recyclable(Boolean recyclable)
public ModifyInstanceAttributeRequest.Builder remoteConnectionOptions(ModifyInstanceAttributeRequest.RemoteConnectionOptions remoteConnectionOptions)
public ModifyInstanceAttributeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyInstanceAttributeRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyInstanceAttributeRequest.Builder securityGroupIds(List<String> securityGroupIds)
* 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, 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 security groups and the instance must belong to the same VPC. * The valid values of N vary based on the maximum number of security groups to which the instance can belong. For more information, see the [Security group limits](~~25412#SecurityGroupQuota1~~) section in the "Limits and quotas" topic. * New security groups become valid for the instance after a short delay.
public ModifyInstanceAttributeRequest.Builder userData(String userData)
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.
public ModifyInstanceAttributeRequest build()
Copyright © 2024. All rights reserved.