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