public static class AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
description
The description of the security group rule.
|
String |
destCidrIp
The destination IPv4 CIDR block of the security group rule.
|
String |
destGroupId
The ID of the destination security group that is specified in the security group rule.
|
String |
destGroupOwnerAccount
The Alibaba Cloud account that manages the destination security group specified in the security group rule.
|
Long |
destGroupOwnerId
The ID of the Alibaba Cloud account that manages the destination security group specified in the security group rule.
|
String |
destPrefixListId
The ID of the destination prefix list of the security group rule.
|
String |
ipProtocol
The protocol.
|
String |
ipv6DestCidrIp
The destination IPv6 CIDR block of the security group rule.
|
String |
ipv6SourceCidrIp
The source IPv6 CIDR block.
|
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.
|
String |
sourcePortRange
The range of source port numbers for the protocols specified in the security group rule.
|
构造器和说明 |
---|
AuthorizeSecurityGroupEgressRequestPermissions() |
@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 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="DestGroupId") public String destGroupId
The ID of the destination security group that is specified in the security group rule.
DestGroupId
, DestCidrIp
, Ipv6DestCidrIp
, and DestPrefixListId
.DestGroupId
but do not specify DestCidrIp
, you must set NicType
to intranet.DestGroupId
and DestCidrIp
, DestCidrIp
takes precedence.Valid values of N: 1 to 100.
When you specify this parameter, take note of the following items:
sg-bp67acfmxazb4p****
@NameInMap(value="DestGroupOwnerAccount") public String destGroupOwnerAccount
The Alibaba Cloud account that manages the destination security group specified in the security group rule.
DestGroupOwnerAccount
and DestGroupOwnerId
are empty, the rule is created to control access to another security group in your Alibaba Cloud account.DestCidrIp
, DestGroupOwnerAccount
is ignored.Valid values of N: 1 to 100.
example:@NameInMap(value="DestGroupOwnerId") public Long destGroupOwnerId
The ID of the Alibaba Cloud account that manages the destination security group specified in the security group rule.
DestGroupOwnerId
and DestGroupOwnerAccount
are empty, the rule is created to control access to another security group in your Alibaba Cloud account.DestCidrIp
, DestGroupOwnerId
is ignored.Valid values of N: 1 to 100.
example:12345678910
@NameInMap(value="DestPrefixListId") public String destPrefixListId
The ID of the destination 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:
DestCidrIp
, Ipv6DestCidrIp
, or DestGroupId
, this parameter is ignored.Valid values of N: 1 to 100.
example:pl-x1j1k5ykzqlixdcy****
@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:ALL
@NameInMap(value="Ipv6DestCidrIp") public String ipv6DestCidrIp
The destination 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
DestCidrIp
in the same request.
2001:db8:1233:1a00::***
@NameInMap(value="Ipv6SourceCidrIp") public String ipv6SourceCidrIp
The source 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: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:
internet: public NIC.
intranet: internal NIC.
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:80/80
@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. 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="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
public AuthorizeSecurityGroupEgressRequestPermissions()
public static AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions build(Map<String,?> map) throws Exception
Exception
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setDescription(String description)
public String getDescription()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setDestCidrIp(String destCidrIp)
public String getDestCidrIp()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setDestGroupId(String destGroupId)
public String getDestGroupId()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setDestGroupOwnerAccount(String destGroupOwnerAccount)
public String getDestGroupOwnerAccount()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setDestGroupOwnerId(Long destGroupOwnerId)
public Long getDestGroupOwnerId()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setDestPrefixListId(String destPrefixListId)
public String getDestPrefixListId()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setIpProtocol(String ipProtocol)
public String getIpProtocol()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setIpv6DestCidrIp(String ipv6DestCidrIp)
public String getIpv6DestCidrIp()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setIpv6SourceCidrIp(String ipv6SourceCidrIp)
public String getIpv6SourceCidrIp()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setNicType(String nicType)
public String getNicType()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setPolicy(String policy)
public String getPolicy()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setPortRange(String portRange)
public String getPortRange()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setPriority(String priority)
public String getPriority()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setSourceCidrIp(String sourceCidrIp)
public String getSourceCidrIp()
public AuthorizeSecurityGroupEgressRequest.AuthorizeSecurityGroupEgressRequestPermissions setSourcePortRange(String sourcePortRange)
public String getSourcePortRange()
Copyright © 2024. All rights reserved.