public class ModifySecurityGroupEgressRuleRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the security group rule.
|
String |
destCidrIp
The destination IPv4 CIDR block.
|
String |
destGroupId
The ID of the destination security group.
|
String |
destGroupOwnerAccount
The Alibaba Cloud account that manages the destination security group when you set security group rule N across accounts.
|
Long |
destGroupOwnerId
The ID of the Alibaba Cloud account that manages the destination security group when you set security group rule N across accounts.
|
String |
destPrefixListId
The ID of the destination prefix list.
|
String |
ipProtocol
The transport layer protocol of the security group rule.
|
String |
ipv6DestCidrIp
The destination IPv6 CIDR block.
|
String |
ipv6SourceCidrIp
The source IPv6 CIDR block.
|
String |
nicType
You cannot modify this parameter when you modify a security group rule by specifying its ID.\
You can add a new rule that meets your business requirements and delete the original rule.
|
String |
ownerAccount |
Long |
ownerId |
String |
policy
The action of the security group rule.
|
String |
portRange
The range of destination ports that correspond to the transport layer protocol.
|
String |
priority
The priority of the security group rule.
|
String |
regionId
The region ID of the security group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
securityGroupId
The ID of the security group.
|
String |
securityGroupRuleId
The ID of the security group rule.\
This parameter is required when you modify a security group rule based on the security group rule ID.
|
String |
sourceCidrIp
The source IPv4 CIDR block.
|
String |
sourcePortRange
The range of source ports that correspond to the transport layer protocol.
|
构造器和说明 |
---|
ModifySecurityGroupEgressRuleRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.**** For more information, see How to ensure idempotence.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Description") public String description
The description of the security group rule. The description must be 1 to 512 characters in length.
example:This is a new securitygroup rule.
@NameInMap(value="DestCidrIp") public String destCidrIp
The destination IPv4 CIDR block. IPv4 CIDR blocks and IPv4 addresses are supported.
By default, this parameter is left empty.
example:10.0.0.0/8
@NameInMap(value="DestGroupId") public String destGroupId
The ID of the destination security group. You must specify at least one of DestGroupId
and DestCidrIp
.
sg-bp67acfmxa123b****
@NameInMap(value="DestGroupOwnerAccount") public String destGroupOwnerAccount
The Alibaba Cloud account that manages the destination security group when you set security group rule N across accounts.
example:@NameInMap(value="DestGroupOwnerId") public Long destGroupOwnerId
The ID of the Alibaba Cloud account that manages the destination security group when you set security group rule N across accounts.
example:1234567890
@NameInMap(value="DestPrefixListId") public String destPrefixListId
The ID of the destination prefix list. You can call the DescribePrefixLists operation to query the IDs of available prefix lists.
If you specify DestCidrIp
, Ipv6DestCidrIp
, or DestGroupId
, this parameter is ignored.
pl-x1j1k5ykzqlixdcy****
@NameInMap(value="IpProtocol") public String ipProtocol
The transport layer protocol of the security group rule. The value of this parameter is case-insensitive. Valid values:
tcp
@NameInMap(value="Ipv6DestCidrIp") public String ipv6DestCidrIp
The destination IPv6 CIDR block. IPv6 CIDR blocks and IPv6 addresses are supported.
Only the IP addresses of instances in virtual private clouds (VPCs) are supported. You cannot specify both Ipv6DestCidrIp and
DestCidrIp
.
By default, this parameter is left empty.
example:2001:db8:1233:1a00::***
@NameInMap(value="Ipv6SourceCidrIp") public String ipv6SourceCidrIp
The source IPv6 CIDR block. IPv6 CIDR blocks and IPv6 addresses are supported.
Only the IP addresses of instances in VPCs are supported. You cannot specify both Ipv6SourceCidrIp and
SourceCidrIp
.
By default, this parameter is left empty.
example:2001:db8:1234:1a00::***
@NameInMap(value="NicType") public String nicType
You cannot modify this parameter when you modify a security group rule by specifying its ID.\ You can add a new rule that meets your business requirements and delete the original rule.
example:intranet
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Policy") public String policy
The action of the security group rule. Valid values:
Default value: accept.
example:accept
@NameInMap(value="PortRange") public String portRange
The range of destination ports that correspond to the transport layer protocol. Valid values:
80/80
@NameInMap(value="Priority") public String priority
The priority of the security group rule. Valid values: 1 to 100.
Default value: 1.
example:1
@NameInMap(value="RegionId") public String regionId
The region ID of the security group. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityGroupId") public String securityGroupId
The ID of the security group.
This parameter is required.
example:sg-bp67acfmxazb4p****
@NameInMap(value="SecurityGroupRuleId") public String securityGroupRuleId
The ID of the security group rule.\ This parameter is required when you modify a security group rule based on the security group rule ID.
example:sgr-bp67acfmxazb4q****
@NameInMap(value="SourceCidrIp") public String sourceCidrIp
The source IPv4 CIDR block. IPv4 CIDR blocks and IPv4 addresses are supported.
By default, this parameter is left empty.
example:10.0.0.0/8
@NameInMap(value="SourcePortRange") public String sourcePortRange
The range of source ports that correspond to the transport layer protocol. Valid values:
80/80
public static ModifySecurityGroupEgressRuleRequest build(Map<String,?> map) throws Exception
Exception
public ModifySecurityGroupEgressRuleRequest setClientToken(String clientToken)
public String getClientToken()
public ModifySecurityGroupEgressRuleRequest setDescription(String description)
public String getDescription()
public ModifySecurityGroupEgressRuleRequest setDestCidrIp(String destCidrIp)
public String getDestCidrIp()
public ModifySecurityGroupEgressRuleRequest setDestGroupId(String destGroupId)
public String getDestGroupId()
public ModifySecurityGroupEgressRuleRequest setDestGroupOwnerAccount(String destGroupOwnerAccount)
public String getDestGroupOwnerAccount()
public ModifySecurityGroupEgressRuleRequest setDestGroupOwnerId(Long destGroupOwnerId)
public Long getDestGroupOwnerId()
public ModifySecurityGroupEgressRuleRequest setDestPrefixListId(String destPrefixListId)
public String getDestPrefixListId()
public ModifySecurityGroupEgressRuleRequest setIpProtocol(String ipProtocol)
public String getIpProtocol()
public ModifySecurityGroupEgressRuleRequest setIpv6DestCidrIp(String ipv6DestCidrIp)
public String getIpv6DestCidrIp()
public ModifySecurityGroupEgressRuleRequest setIpv6SourceCidrIp(String ipv6SourceCidrIp)
public String getIpv6SourceCidrIp()
public ModifySecurityGroupEgressRuleRequest setNicType(String nicType)
public String getNicType()
public ModifySecurityGroupEgressRuleRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifySecurityGroupEgressRuleRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifySecurityGroupEgressRuleRequest setPolicy(String policy)
public String getPolicy()
public ModifySecurityGroupEgressRuleRequest setPortRange(String portRange)
public String getPortRange()
public ModifySecurityGroupEgressRuleRequest setPriority(String priority)
public String getPriority()
public ModifySecurityGroupEgressRuleRequest setRegionId(String regionId)
public String getRegionId()
public ModifySecurityGroupEgressRuleRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifySecurityGroupEgressRuleRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifySecurityGroupEgressRuleRequest setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public ModifySecurityGroupEgressRuleRequest setSecurityGroupRuleId(String securityGroupRuleId)
public String getSecurityGroupRuleId()
public ModifySecurityGroupEgressRuleRequest setSourceCidrIp(String sourceCidrIp)
public String getSourceCidrIp()
public ModifySecurityGroupEgressRuleRequest setSourcePortRange(String sourcePortRange)
public String getSourcePortRange()
Copyright © 2024. All rights reserved.