public static final class AuthorizeSecurityGroupRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
AuthorizeSecurityGroupRequest |
build() |
AuthorizeSecurityGroupRequest.Builder |
ipProtocol(String ipProtocol)
The transport layer protocol.
|
AuthorizeSecurityGroupRequest.Builder |
policy(String policy)
The action of security group rule N that determines whether to allow inbound access.
|
AuthorizeSecurityGroupRequest.Builder |
portRange(String portRange)
The range of destination ports that correspond to the transport layer protocol for security group rule N.
|
AuthorizeSecurityGroupRequest.Builder |
priority(Integer priority)
The priority of the security group rule.
|
AuthorizeSecurityGroupRequest.Builder |
securityGroupId(String securityGroupId)
The ID of the security group.
|
AuthorizeSecurityGroupRequest.Builder |
sourceCidrIp(String sourceCidrIp)
The source IPv4 CIDR block.
|
AuthorizeSecurityGroupRequest.Builder |
sourcePortRange(String sourcePortRange)
The range of port numbers that correspond to the transport layer protocol for the source security group.
|
public AuthorizeSecurityGroupRequest.Builder ipProtocol(String ipProtocol)
* tcp * udp * icmp * gre * all: All protocols are supported.
public AuthorizeSecurityGroupRequest.Builder policy(String policy)
* accept: allows access. * drop: denies access and returns no responses. Default value: accept.
public AuthorizeSecurityGroupRequest.Builder portRange(String portRange)
* When the IpProtocol parameter is set to tcp or udp, the port number range is **1** to **65535**. The start port number and the end port number are separated by a forward slash (/). Correct example: **1/200**. Incorrect example: **200/1**. * When the IpProtocol parameter is set to icmp, the port number range is **-1/-1**, which indicates all ports. * When the IpProtocol parameter is set to gre, the port number range is **-1/-1**, which indicates all ports. * When the IpProtocol parameter is set to all, the port number range is **-1/-1**, which indicates all ports.
public AuthorizeSecurityGroupRequest.Builder priority(Integer priority)
Default value: **1**.
public AuthorizeSecurityGroupRequest.Builder securityGroupId(String securityGroupId)
public AuthorizeSecurityGroupRequest.Builder sourceCidrIp(String sourceCidrIp)
This parameter is empty by default.
public AuthorizeSecurityGroupRequest.Builder sourcePortRange(String sourcePortRange)
* When the IpProtocol parameter is set to tcp or udp, the port number range is **1 to 65535**. The start port number and the end port number are separated by a forward slash (/). Correct example: **1/200**. Incorrect example: **200/1**. * When the IpProtocol parameter is set to icmp, the port number range is **-1/-1**, which indicates all ports. * When the IpProtocol parameter is set to gre, the port number range is **-1/-1**, which indicates all ports. * When the IpProtocol parameter is set to all, the port number range is **-1/-1**, which indicates all ports.
public AuthorizeSecurityGroupRequest build()
Copyright © 2024. All rights reserved.