public static final class CreateInstanceRequest.InternetInfo.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
CreateInstanceRequest.InternetInfo |
build() |
CreateInstanceRequest.InternetInfo.Builder |
flowOutBandwidth(Integer flowOutBandwidth)
The Internet bandwidth.
|
CreateInstanceRequest.InternetInfo.Builder |
flowOutType(String flowOutType)
The billing method of Internet usage.
|
CreateInstanceRequest.InternetInfo.Builder |
internetSpec(String internetSpec)
Specifies whether to enable the Internet access feature.
|
CreateInstanceRequest.InternetInfo.Builder |
ipWhitelist(List<String> ipWhitelist)
The whitelist that includes the IP addresses that are allowed to access the ApsaraMQ for RocketMQ broker over the Internet.
|
public CreateInstanceRequest.InternetInfo.Builder flowOutBandwidth(Integer flowOutBandwidth)
This parameter is required only if you set flowOutType to payByBandwidth. Valid values: 1 to 1000.
public CreateInstanceRequest.InternetInfo.Builder flowOutType(String flowOutType)
Valid values: * payByBandwidth: pay-by-bandwidth. If Internet access is enabled for an instance, specify this value for the parameter. * payByTraffic: pay-by-traffic. If Internet access is enabled for an instance, specify this value for the parameter. * uninvolved: No billing method is involved. If Internet access is disabled for an instance, specify this value for the parameter.
public CreateInstanceRequest.InternetInfo.Builder internetSpec(String internetSpec)
Valid values: * enable * disable By default, ApsaraMQ for RocketMQ allows you to access instances in VPCs. If you enable Internet access for an instance, you can access the instance over the Internet. After you enable this feature, you are charged for outbound Internet traffic. For more information, see [Internet access fee](~~427240~~).
public CreateInstanceRequest.InternetInfo.Builder ipWhitelist(List<String> ipWhitelist)
* If you do not configure an IP address whitelist, all CIDR blocks are allowed to access the ApsaraMQ for RocketMQ broker over the Internet. * If configure an IP address whitlist, only the IP addresses in the whitelist are allowed to access the ApsaraMQ for RocketMQ broker over the Internet.
public CreateInstanceRequest.InternetInfo build()
Copyright © 2024. All rights reserved.