public static final class ModifyInstanceNetworkSpecRequest.Builder extends Object
public ModifyInstanceNetworkSpecRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyInstanceNetworkSpecRequest.Builder allocatePublicIp(Boolean allocatePublicIp)
Default value: false.
public ModifyInstanceNetworkSpecRequest.Builder autoPay(Boolean autoPay)
* true: After you modify the bandwidth configurations, the payment is automatically complete. Make sure that you have a sufficient balance in your account before you set AutoPay to true. If your account balance is insufficient, your order cannot be paid in the ECS console and becomes invalid. You must cancel the order. * false: After you modify the bandwidth configurations, an order is generated but the payment is not complete. If your account balance is insufficient, you can set AutoPay to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com) to pay for the order. Default value: true.
public ModifyInstanceNetworkSpecRequest.Builder clientToken(String clientToken)
public ModifyInstanceNetworkSpecRequest.Builder endTime(String endTime)
> The interval between the end time and the start time of the temporary bandwidth upgrade must be greater than or equal to 3 hours.
public ModifyInstanceNetworkSpecRequest.Builder ISP(String ISP)
public ModifyInstanceNetworkSpecRequest.Builder instanceId(String instanceId)
public ModifyInstanceNetworkSpecRequest.Builder internetMaxBandwidthIn(Integer internetMaxBandwidthIn)
* If the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, the valid values of this parameter range from 1 to 10, and the default value is 10. * If the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter range from 1 to the value of `InternetMaxBandwidthOut`, and the default value is the value of `InternetMaxBandwidthOut`.
public ModifyInstanceNetworkSpecRequest.Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
public ModifyInstanceNetworkSpecRequest.Builder networkChargeType(String networkChargeType)
* PayByBandwidth * PayByTraffic > When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidth values are used as the upper limits of bandwidths instead of guaranteed values. In scenarios where demand outstrips resource supplies, these maximum bandwidths may be limited. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** billing method for network usage.
public ModifyInstanceNetworkSpecRequest.Builder ownerAccount(String ownerAccount)
public ModifyInstanceNetworkSpecRequest.Builder ownerId(Long ownerId)
public ModifyInstanceNetworkSpecRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyInstanceNetworkSpecRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyInstanceNetworkSpecRequest.Builder startTime(String startTime)
public ModifyInstanceNetworkSpecRequest build()
Copyright © 2024. All rights reserved.