public static class RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
description
The description of the security group rule.
|
String |
destCidrIp
The destination IPv4 CIDR block.
|
String |
ipProtocol
The protocol.
|
String |
ipv6DestCidrIp
The destination IPv6 CIDR block.
|
String |
ipv6SourceCidrIp
The source IPv6 CIDR block of the security group rule.
|
String |
nicType
The network interface controller (NIC) type of the security group rule if the security group resides in the classic network.
|
String |
policy
The action of the security group rule.
|
String |
portRange
The range of destination port numbers for the protocols specified in the security group rule.
|
String |
priority
The priority of the security group rule.
|
String |
sourceCidrIp
The source IPv4 CIDR block of the security group rule.
|
String |
sourceGroupId
The ID of the source security group that is specified in the security group rule.
|
String |
sourceGroupOwnerAccount
The Alibaba Cloud account that manages the source security group specified in the security group rule.
|
Long |
sourceGroupOwnerId
The ID of the Alibaba Cloud account that manages the source security group specified in the security group rule.
|
String |
sourcePortRange
The range of source port numbers for the protocols specified in the security group rule.
|
String |
sourcePrefixListId
The ID of the source prefix list of the security group rule.
|
构造器和说明 |
---|
RevokeSecurityGroupRequestPermissions() |
@NameInMap(value="Description") public String description
The description of the security group rule. The description must be 1 to 512 characters in length.
Valid values of N: 1 to 100.
example:This is description.
@NameInMap(value="DestCidrIp") public String destCidrIp
The destination IPv4 CIDR block. IPv4 CIDR blocks and IPv4 addresses are supported.
This parameter is used to support quintuple rules. For more information, see Security group quintuple rules.
Valid values of N: 1 to 100.
example:10.0.0.0/8
@NameInMap(value="IpProtocol") public String ipProtocol
The protocol. The values of this parameter are case-insensitive. Valid values:
Valid values of N: 1 to 100.
example:TCP
@NameInMap(value="Ipv6DestCidrIp") public String ipv6DestCidrIp
The destination IPv6 CIDR block. IPv6 CIDR blocks and IPv6 addresses are supported.
This parameter is used to support quintuple rules. For more information, see Security group quintuple rules.
Valid values of N: 1 to 100.
example: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.
2001:db8:1233:1a00::***
@NameInMap(value="Ipv6SourceCidrIp") public String ipv6SourceCidrIp
The source IPv6 CIDR block of the security group rule. IPv6 CIDR blocks and IPv6 addresses are supported.
Valid values of N: 1 to 100.
example: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.
2001:db8:1234:1a00::***
@NameInMap(value="NicType") public String nicType
The network interface controller (NIC) type of the security group rule if the security group resides in the classic network. Valid values:
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.
example:intranet
@NameInMap(value="Policy") public String policy
The action of the security group rule. Valid values:
Default value: accept.
Valid values of N: 1 to 100.
example:accept
@NameInMap(value="PortRange") public String portRange
The range of destination port numbers for the protocols specified in the security group rule. Valid values:
Valid values of N: 1 to 100.
example:1/200
@NameInMap(value="Priority") public String priority
The priority of the security group rule. A smaller value specifies a higher priority. Valid values: 1 to 100.
Default value: 1.
Valid values of N: 1 to 100.
example:1
@NameInMap(value="SourceCidrIp") public String sourceCidrIp
The source IPv4 CIDR block of the security group rule. IPv4 CIDR blocks and IPv4 addresses are supported.
Valid values of N: 1 to 100.
example:10.0.0.0/8
@NameInMap(value="SourceGroupId") public String sourceGroupId
The ID of the source security group that is specified in the security group rule.
SourceGroupId
, SourceCidrIp
, Ipv6SourceCidrIp
, and SourcePrefixListId
.SourceGroupId
but do not specify SourceCidrIp
or Ipv6SourceCidrIp
, you must set NicType to intranet.SourceGroupId
and SourceCidrIp
, SourceCidrIp
takes precedence.When you specify this parameter, take note of the following items:
Valid values of N: 1 to 100.
example:sg-bp67acfmxa123b****
@NameInMap(value="SourceGroupOwnerAccount") public String sourceGroupOwnerAccount
The Alibaba Cloud account that manages the source security group specified in the security group rule.
SourceGroupOwnerAccount
and SourceGroupOwnerId
are empty, access control on another security group in your Alibaba Cloud account is removed.SourceCidrIp
, SourceGroupOwnerAccount
is ignored.Valid values of N: 1 to 100.
example:@NameInMap(value="SourceGroupOwnerId") public Long sourceGroupOwnerId
The ID of the Alibaba Cloud account that manages the source security group specified in the security group rule.
SourceGroupOwnerId
and SourceGroupOwnerAccount
are empty, access control on another security group in your Alibaba Cloud account is removed.SourceCidrIp
, SourceGroupOwnerId
is ignored.Valid values of N: 1 to 100.
example:12345678910
@NameInMap(value="SourcePortRange") public String sourcePortRange
The range of source port numbers for the protocols specified in the security group rule. Valid values:
This parameter is used to support quintuple rules. For more information, see Security group quintuple rules.
Valid values of N: 1 to 100.
example:80/80
@NameInMap(value="SourcePrefixListId") public String sourcePrefixListId
The ID of the source prefix list of the security group rule. You can call the DescribePrefixLists operation to query the IDs of available prefix lists.
When you specify this parameter, take note of the following items:
SourceCidrIp
, Ipv6SourceCidrIp
, or SourceGroupId
, this parameter is ignored.Valid values of N: 1 to 100.
example:pl-x1j1k5ykzqlixdcy****
public static RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions build(Map<String,?> map) throws Exception
Exception
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setDescription(String description)
public String getDescription()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setDestCidrIp(String destCidrIp)
public String getDestCidrIp()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setIpProtocol(String ipProtocol)
public String getIpProtocol()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setIpv6DestCidrIp(String ipv6DestCidrIp)
public String getIpv6DestCidrIp()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setIpv6SourceCidrIp(String ipv6SourceCidrIp)
public String getIpv6SourceCidrIp()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setNicType(String nicType)
public String getNicType()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setPolicy(String policy)
public String getPolicy()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setPortRange(String portRange)
public String getPortRange()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setPriority(String priority)
public String getPriority()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setSourceCidrIp(String sourceCidrIp)
public String getSourceCidrIp()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setSourceGroupId(String sourceGroupId)
public String getSourceGroupId()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setSourceGroupOwnerAccount(String sourceGroupOwnerAccount)
public String getSourceGroupOwnerAccount()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setSourceGroupOwnerId(Long sourceGroupOwnerId)
public Long getSourceGroupOwnerId()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setSourcePortRange(String sourcePortRange)
public String getSourcePortRange()
public RevokeSecurityGroupRequest.RevokeSecurityGroupRequestPermissions setSourcePrefixListId(String sourcePrefixListId)
public String getSourcePrefixListId()
Copyright © 2024. All rights reserved.