public static final class RevokeSecurityGroupRequest.Permissions.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
RevokeSecurityGroupRequest.Permissions |
build() |
RevokeSecurityGroupRequest.Permissions.Builder |
description(String description)
The description of the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
destCidrIp(String destCidrIp)
The destination IPv4 CIDR block.
|
RevokeSecurityGroupRequest.Permissions.Builder |
ipProtocol(String ipProtocol)
The protocol.
|
RevokeSecurityGroupRequest.Permissions.Builder |
ipv6DestCidrIp(String ipv6DestCidrIp)
The destination IPv6 CIDR block.
|
RevokeSecurityGroupRequest.Permissions.Builder |
ipv6SourceCidrIp(String ipv6SourceCidrIp)
The source IPv6 CIDR block of the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
nicType(String nicType)
The network interface controller (NIC) type of the security group rule if the security group resides in the classic network.
|
RevokeSecurityGroupRequest.Permissions.Builder |
policy(String policy)
The action of the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
portRange(String portRange)
The range of destination port numbers for the protocols specified in the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
priority(String priority)
The priority of the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
sourceCidrIp(String sourceCidrIp)
The source IPv4 CIDR block of the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
sourceGroupId(String sourceGroupId)
The ID of the source security group that is specified in the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
sourceGroupOwnerAccount(String sourceGroupOwnerAccount)
The Alibaba Cloud account that manages the source security group specified in the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
sourceGroupOwnerId(Long sourceGroupOwnerId)
The ID of the Alibaba Cloud account that manages the source security group specified in the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
sourcePortRange(String sourcePortRange)
The range of source port numbers for the protocols specified in the security group rule.
|
RevokeSecurityGroupRequest.Permissions.Builder |
sourcePrefixListId(String sourcePrefixListId)
The ID of the source prefix list of the security group rule.
|
public RevokeSecurityGroupRequest.Permissions.Builder description(String description)
Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions.Builder destCidrIp(String destCidrIp)
This parameter is used to support quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions.Builder ipProtocol(String ipProtocol)
* TCP. * UDP. * ICMP. * ICMPv6. * GRE. * ALL: All protocols are supported. Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions.Builder ipv6DestCidrIp(String ipv6DestCidrIp)
This parameter is used to support quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). Valid values of N: 1 to 100. > This parameter is valid only for ECS instances that reside in VPCs and support IPv6 CIDR blocks. You cannot specify both this parameter and `DestCidrIp` in the same request.
public RevokeSecurityGroupRequest.Permissions.Builder ipv6SourceCidrIp(String ipv6SourceCidrIp)
Valid values of N: 1 to 100. > This parameter is valid only for Elastic Compute Service (ECS) instances that reside in virtual private clouds (VPCs) and support IPv6 CIDR blocks. You cannot specify both this parameter and `SourceCidrIp` in the same request.
public RevokeSecurityGroupRequest.Permissions.Builder nicType(String nicType)
* internet: public NIC. * intranet: internal NIC. If the security group resides in a VPC, this parameter is set to intranet by default and cannot be modified. If you specify only `SourceGroupId` when you remove access control configurations between security groups, you must set this parameter to intranet. Default value: internet. Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions.Builder policy(String policy)
* accept: allows inbound access. * drop: denies inbound 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 RevokeSecurityGroupRequest.Permissions.Builder portRange(String portRange)
* If you set IpProtocol to TCP or UDP, the port number range is 1 to 65535. Specify a port number range in the format of \
public RevokeSecurityGroupRequest.Permissions.Builder priority(String priority)
Default value: 1. Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions.Builder sourceCidrIp(String sourceCidrIp)
Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions.Builder sourceGroupId(String sourceGroupId)
* You must specify at least one of the following parameters: `SourceGroupId`, `SourceCidrIp`, `Ipv6SourceCidrIp`, and `SourcePrefixListId`. * If you specify `SourceGroupId` but do not specify `SourceCidrIp` or `Ipv6SourceCidrIp`, you must set NicType to intranet. * If you specify both `SourceGroupId` and `SourceCidrIp`, `SourceCidrIp` takes precedence. When you specify this parameter, take note of the following items: * In advanced security groups, security groups cannot be used as authorization objects. * In each basic security group, up to 20 security groups can be used as authorization objects in security group rules. Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions.Builder sourceGroupOwnerAccount(String sourceGroupOwnerAccount)
* If both `SourceGroupOwnerAccount` and `SourceGroupOwnerId` are empty, access control on another security group in your Alibaba Cloud account is removed. * If you specify `SourceCidrIp`, `SourceGroupOwnerAccount` is ignored. Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions.Builder sourceGroupOwnerId(Long sourceGroupOwnerId)
* If both `SourceGroupOwnerId` and `SourceGroupOwnerAccount` are empty, access control on another security group in your Alibaba Cloud account is removed. * If you specify `SourceCidrIp`, `SourceGroupOwnerId` is ignored. Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions.Builder sourcePortRange(String sourcePortRange)
* If you set IpProtocol to TCP or UDP, the port number range is 1 to 65535. Specify a port number range in the format of \
public RevokeSecurityGroupRequest.Permissions.Builder sourcePrefixListId(String sourcePrefixListId)
When you specify this parameter, take note of the following items: * If a security group resides in the classic network, you cannot specify prefix lists in the rules of the security group. For information about the limits on security groups and prefix lists, see the [Security group limits](~~25412#SecurityGroupQuota1~~) section of the "Limits and quotas" topic. * If you specify `SourceCidrIp`, `Ipv6SourceCidrIp`, or `SourceGroupId`, this parameter is ignored. Valid values of N: 1 to 100.
public RevokeSecurityGroupRequest.Permissions build()
Copyright © 2024. All rights reserved.