public static final class AuthorizeSecurityGroupRequest.Permissions.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
AuthorizeSecurityGroupRequest.Permissions |
build() |
AuthorizeSecurityGroupRequest.Permissions.Builder |
description(String description)
The description of the security group rule.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
destCidrIp(String destCidrIp)
The destination IPv4 CIDR block.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
ipProtocol(String ipProtocol)
The transport layer protocol.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
ipv6DestCidrIp(String ipv6DestCidrIp)
The destination IPv6 CIDR block.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
ipv6SourceCidrIp(String ipv6SourceCidrIp)
The source IPv6 CIDR block for the security group rule.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
nicType(String nicType)
The network interface controller (NIC) type of the security group rule when the security group is in the classic network.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
policy(String policy)
The authorization policy.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
portRange(String portRange)
The range of destination ports that correspond to the transport layer protocol for the security group rule.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
priority(String priority)
The priority of the security group rule.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
sourceCidrIp(String sourceCidrIp)
The source IPv4 CIDR block for the security group rule.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
sourceGroupId(String sourceGroupId)
The ID of the source security group.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
sourceGroupOwnerAccount(String sourceGroupOwnerAccount)
The Alibaba Cloud account that manages the source security group when you set a security group rule across accounts.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
sourceGroupOwnerId(Long sourceGroupOwnerId)
The ID of the Alibaba Cloud account that manages the source security group when you set a security group rule across accounts.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
sourcePortRange(String sourcePortRange)
The range of source ports that correspond to the transport layer protocol for the security group rule.
|
AuthorizeSecurityGroupRequest.Permissions.Builder |
sourcePrefixListId(String sourcePrefixListId)
The ID of the source prefix list.
|
public AuthorizeSecurityGroupRequest.Permissions.Builder description(String description)
Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder destCidrIp(String destCidrIp)
This parameter is specified to meet quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder ipProtocol(String ipProtocol)
* TCP * UDP * ICMP * ICMPv6 * GRE * ALL: All protocols are supported. Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder ipv6DestCidrIp(String ipv6DestCidrIp)
This parameter is specified to meet quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). Valid values of N: 1 to 100. > The Permissions.N.Ipv6DestCidrIp parameter is valid only when the destination is ECS instances that reside in virtual private clouds (VPCs) and support IPv6 CIDR blocks. You cannot specify this parameter and the `DestCidrIp` parameter at the same time.
public AuthorizeSecurityGroupRequest.Permissions.Builder ipv6SourceCidrIp(String ipv6SourceCidrIp)
Valid values of N: 1 to 100. > The Permissions.N.Ipv6SourceCidrIp parameter is valid only when the source is ECS instances that reside in VPCs and support IPv6 CIDR blocks. You cannot specify this parameter and the `SourceCidrIp` parameter at the same time.
public AuthorizeSecurityGroupRequest.Permissions.Builder nicType(String nicType)
* internet: public NIC * intranet: internal NIC If the security group is in a VPC, this parameter is set to intranet by default and cannot be changed. If you specify only DestGroupId when you configure access between security groups, this parameter must be set to intranet. Default value: internet. Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder policy(String policy)
* accept: allows access. * drop: denies access and returns no responses. In this case, the request times out or the connection cannot be established. Default value: accept. Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder portRange(String portRange)
* When the Permissions.N.IpProtocol parameter is set to TCP or UDP, the port number range is 1 to 65535. Separate the start port number and the end port number with a forward slash (/). Example: 1/200. * When the Permissions.N.IpProtocol parameter is set to ICMP, the port number range is -1/-1, which indicates all ports. * When the Permissions.N.IpProtocol parameter is set to GRE, the port number range is -1/-1, which indicates all ports. * When the Permissions.N.IpProtocol parameter is set to ALL, the port number range is -1/-1, which indicates all ports. For more information, see [Typical applications of commonly used ports](~~40724~~). Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder priority(String priority)
Default value: 1 Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder sourceCidrIp(String sourceCidrIp)
Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder sourceGroupId(String sourceGroupId)
* At least one of `SourceGroupId`, `SourceCidrIp`, `Ipv6SourceCidrIp`, and `SourcePrefixListId` must be specified. * If `SourceGroupId` is specified but `SourceCidrIp` or `Ipv6SourceCidrIp` is not specified, `NicType` must be set to `intranet`. * If both `SourceGroupId` and `SourceCidrIp` are specified, `SourceCidrIp` takes precedence. Valid values of N: 1 to 100. When you call this operation, take note of the following items: * For advanced security groups, security groups cannot be used as authorization objects. * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
public AuthorizeSecurityGroupRequest.Permissions.Builder sourceGroupOwnerAccount(String sourceGroupOwnerAccount)
* If both `SourceGroupOwnerAccount` and `SourceGroupOwnerId` are not specified, access permissions are configured for another security group managed by your account. * If `SourceCidrIp` is specified, the `SourceGroupOwnerAccount` parameter is invalid. Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder sourceGroupOwnerId(Long sourceGroupOwnerId)
* If both `SourceGroupOwnerAccount` and `SourceGroupOwnerId` are not specified, access permissions are configured for another security group managed by your account. * If `SourceCidrIp` is specified, the `SourceGroupOwnerAccount` parameter is invalid. Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder sourcePortRange(String sourcePortRange)
* When the Permissions.N.IpProtocol parameter is set to TCP or UDP, the port number range is 1 to 65535. Separate the start port number and the end port number with a forward slash (/). Example: 1/200. * When the Permissions.N.IpProtocol parameter is set to ICMP, the port number range is -1/-1, which indicates all ports. * When the Permissions.N.IpProtocol parameter is set to GRE, the port number range is -1/-1, which indicates all ports. * When the Permissions.N.IpProtocol parameter is set to ALL, the port number range is -1/-1, which indicates all ports. This parameter is specified to meet quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). Valid values of N: 1 to 100.
public AuthorizeSecurityGroupRequest.Permissions.Builder sourcePrefixListId(String sourcePrefixListId)
Valid values of N: 1 to 100. Note: * If a security group is in the classic network, you cannot configure prefix lists in the security group rules. For information about the limits on security groups and prefix lists, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~). * If you specify the `SourceCidrIp`, `Ipv6SourceCidrIp`, or `SourceGroupId` parameter, this parameter is ignored.
public AuthorizeSecurityGroupRequest.Permissions build()
Copyright © 2023. All rights reserved.