public class ModifyInstanceNetworkSpecRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
allocatePublicIp
Specifies whether to assign a public IP address.
|
Boolean |
autoPay
Specifies whether to automatically complete the payment.
|
String |
clientToken
The client token that you want to use to ensure the idempotence of the request.
|
String |
endTime
The end time of the temporary bandwidth upgrade.
|
String |
instanceId
The ID of the instance for which you want to modify bandwidth configurations.
|
Integer |
internetMaxBandwidthIn
The maximum inbound public bandwidth.
|
Integer |
internetMaxBandwidthOut
The maximum outbound public bandwidth.
|
String |
ISP
> This parameter is in invitational preview and is unavailable for general users.
|
String |
networkChargeType
The new billing method for network usage.
|
String |
ownerAccount |
Long |
ownerId |
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
startTime
The start time of the temporary bandwidth upgrade.
|
构造器和说明 |
---|
ModifyInstanceNetworkSpecRequest() |
@NameInMap(value="AllocatePublicIp") public Boolean allocatePublicIp
Specifies whether to assign a public IP address.
Default value: false.
@NameInMap(value="AutoPay") public Boolean autoPay
Specifies whether to automatically complete the payment. Valid values:
* true: After you modify the bandwidth configurations, the payment (if any) is automatically completed. Make sure that you have a sufficient balance in your account when 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 automatically completed. 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.
@NameInMap(value="ClientToken") public String clientToken
The client token that you want to use to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that the value is unique among different requests. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@NameInMap(value="EndTime") public String endTime
The end time of the temporary bandwidth upgrade. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddThhZ format. The time must be in UTC and accurate to **hours (hh)**.
> The interval between the end time and the start time of the temporary bandwidth upgrade must be greater than or equal to 3 hours.
@NameInMap(value="ISP") public String ISP
> This parameter is in invitational preview and is unavailable for general users.
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance for which you want to modify bandwidth configurations.
@NameInMap(value="InternetMaxBandwidthIn") public Integer internetMaxBandwidthIn
The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:
* When the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, the valid values of this parameter are 1 to 10 and the default value is 10.
* When the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter are 1 to the `InternetMaxBandwidthOut` value and the default value is the `InternetMaxBandwidthOut` value.
@NameInMap(value="InternetMaxBandwidthOut") public Integer internetMaxBandwidthOut
The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100.
@NameInMap(value="NetworkChargeType") public String networkChargeType
The new billing method for network usage. Valid values:
* PayByBandwidth: pay-by-bandwidth
* PayByTraffic: pay-by-traffic
> When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** billing method for network usage.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StartTime") public String startTime
The start time of the temporary bandwidth upgrade. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddThh:mmZ format. The time must be in UTC and accurate to **minutes (mm)**.
public static ModifyInstanceNetworkSpecRequest build(Map<String,?> map) throws Exception
Exception
public ModifyInstanceNetworkSpecRequest setAllocatePublicIp(Boolean allocatePublicIp)
public Boolean getAllocatePublicIp()
public ModifyInstanceNetworkSpecRequest setAutoPay(Boolean autoPay)
public Boolean getAutoPay()
public ModifyInstanceNetworkSpecRequest setClientToken(String clientToken)
public String getClientToken()
public ModifyInstanceNetworkSpecRequest setEndTime(String endTime)
public String getEndTime()
public ModifyInstanceNetworkSpecRequest setISP(String ISP)
public String getISP()
public ModifyInstanceNetworkSpecRequest setInstanceId(String instanceId)
public String getInstanceId()
public ModifyInstanceNetworkSpecRequest setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn)
public Integer getInternetMaxBandwidthIn()
public ModifyInstanceNetworkSpecRequest setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut)
public Integer getInternetMaxBandwidthOut()
public ModifyInstanceNetworkSpecRequest setNetworkChargeType(String networkChargeType)
public String getNetworkChargeType()
public ModifyInstanceNetworkSpecRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyInstanceNetworkSpecRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyInstanceNetworkSpecRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyInstanceNetworkSpecRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifyInstanceNetworkSpecRequest setStartTime(String startTime)
public String getStartTime()
Copyright © 2023. All rights reserved.