public static final class ModifySecurityGroupEgressRuleRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ModifySecurityGroupEgressRuleRequest |
build() |
ModifySecurityGroupEgressRuleRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
ModifySecurityGroupEgressRuleRequest.Builder |
description(String description)
The description of the security group rule.
|
ModifySecurityGroupEgressRuleRequest.Builder |
destCidrIp(String destCidrIp)
The destination IPv4 CIDR block.
|
ModifySecurityGroupEgressRuleRequest.Builder |
destGroupId(String destGroupId)
The ID of the destination security group.
|
ModifySecurityGroupEgressRuleRequest.Builder |
destGroupOwnerAccount(String destGroupOwnerAccount)
The Alibaba Cloud account that manages the destination security group when you set security group rule N across accounts.
|
ModifySecurityGroupEgressRuleRequest.Builder |
destGroupOwnerId(Long destGroupOwnerId)
The ID of the Alibaba Cloud account that manages the destination security group when you set security group rule N across accounts.
|
ModifySecurityGroupEgressRuleRequest.Builder |
destPrefixListId(String destPrefixListId)
The ID of the destination prefix list.
|
ModifySecurityGroupEgressRuleRequest.Builder |
ipProtocol(String ipProtocol)
The transport layer protocol of the security group rule.
|
ModifySecurityGroupEgressRuleRequest.Builder |
ipv6DestCidrIp(String ipv6DestCidrIp)
The destination IPv6 CIDR block.
|
ModifySecurityGroupEgressRuleRequest.Builder |
ipv6SourceCidrIp(String ipv6SourceCidrIp)
The source IPv6 CIDR block.
|
ModifySecurityGroupEgressRuleRequest.Builder |
nicType(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.
|
ModifySecurityGroupEgressRuleRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ModifySecurityGroupEgressRuleRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifySecurityGroupEgressRuleRequest.Builder |
policy(String policy)
The action of the security group rule.
|
ModifySecurityGroupEgressRuleRequest.Builder |
portRange(String portRange)
The range of destination ports that correspond to the transport layer protocol.
|
ModifySecurityGroupEgressRuleRequest.Builder |
priority(String priority)
The priority of the security group rule.
|
ModifySecurityGroupEgressRuleRequest.Builder |
regionId(String regionId)
The region ID of the security group.
|
ModifySecurityGroupEgressRuleRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifySecurityGroupEgressRuleRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ModifySecurityGroupEgressRuleRequest.Builder |
securityGroupId(String securityGroupId)
The ID of the security group.
|
ModifySecurityGroupEgressRuleRequest.Builder |
securityGroupRuleId(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.
|
ModifySecurityGroupEgressRuleRequest.Builder |
sourceCidrIp(String sourceCidrIp)
The source IPv4 CIDR block.
|
ModifySecurityGroupEgressRuleRequest.Builder |
sourcePortRange(String sourcePortRange)
The range of source ports that correspond to the transport layer protocol.
|
ModifySecurityGroupEgressRuleRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
public ModifySecurityGroupEgressRuleRequest.Builder sourceRegionId(String sourceRegionId)
public ModifySecurityGroupEgressRuleRequest.Builder clientToken(String clientToken)
public ModifySecurityGroupEgressRuleRequest.Builder description(String description)
public ModifySecurityGroupEgressRuleRequest.Builder destCidrIp(String destCidrIp)
By default, this parameter is left empty.
public ModifySecurityGroupEgressRuleRequest.Builder destGroupId(String destGroupId)
* At least one of DestGroupId, DestCidrIp, Ipv6DestCidrIp, and DestPrefixListId must be specified. * If DestGroupId is specified but DestCidrIp is not specified, the NicType parameter can be set only to intranet. * If both DestGroupId and DestCidrIp are specified, DestCidrIp takes precedence.
public ModifySecurityGroupEgressRuleRequest.Builder destGroupOwnerAccount(String destGroupOwnerAccount)
public ModifySecurityGroupEgressRuleRequest.Builder destGroupOwnerId(Long destGroupOwnerId)
public ModifySecurityGroupEgressRuleRequest.Builder destPrefixListId(String destPrefixListId)
If you specify `DestCidrIp`, `Ipv6DestCidrIp`, or `DestGroupId`, this parameter is ignored.
public ModifySecurityGroupEgressRuleRequest.Builder ipProtocol(String ipProtocol)
* ICMP * GRE * TCP * UDP * ALL: All protocols are supported.
public ModifySecurityGroupEgressRuleRequest.Builder ipv6DestCidrIp(String ipv6DestCidrIp)
> 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.
public ModifySecurityGroupEgressRuleRequest.Builder ipv6SourceCidrIp(String ipv6SourceCidrIp)
> Only the IP addresses of instances in VPCs are supported. You cannot specify both Ipv6SourceCidrIp and `SourceCidrIp`. By default, this parameter is left empty.
public ModifySecurityGroupEgressRuleRequest.Builder nicType(String nicType)
You can add a new rule that meets your business requirements and delete the original rule.
public ModifySecurityGroupEgressRuleRequest.Builder ownerAccount(String ownerAccount)
public ModifySecurityGroupEgressRuleRequest.Builder ownerId(Long ownerId)
public ModifySecurityGroupEgressRuleRequest.Builder policy(String policy)
* accept: allows access. * drop: denies access and returns no responses. Default value: accept.
public ModifySecurityGroupEgressRuleRequest.Builder portRange(String portRange)
* If you set IpProtocol 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. * If you set IpProtocol to ICMP, the port number range is -1/-1. * If you set IpProtocol to GRE, the port number range is -1/-1. * If you set IpProtocol to ALL, the port number range is -1/-1.
public ModifySecurityGroupEgressRuleRequest.Builder priority(String priority)
Default value: 1.
public ModifySecurityGroupEgressRuleRequest.Builder regionId(String regionId)
public ModifySecurityGroupEgressRuleRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifySecurityGroupEgressRuleRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifySecurityGroupEgressRuleRequest.Builder securityGroupId(String securityGroupId)
public ModifySecurityGroupEgressRuleRequest.Builder securityGroupRuleId(String securityGroupRuleId)
This parameter is required when you modify a security group rule based on the security group rule ID.
public ModifySecurityGroupEgressRuleRequest.Builder sourceCidrIp(String sourceCidrIp)
By default, this parameter is left empty.
public ModifySecurityGroupEgressRuleRequest.Builder sourcePortRange(String sourcePortRange)
* If you set IpProtocol 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. * If you set IpProtocol to ICMP, the port number range is -1/-1. * If you set IpProtocol to GRE, the port number range is -1/-1. * If you set IpProtocol to ALL, the port number range is -1/-1.
public ModifySecurityGroupEgressRuleRequest build()
Copyright © 2024. All rights reserved.