public static interface SecurityGroupRule.Builder extends SdkPojo, CopyableBuilder<SecurityGroupRule.Builder,SecurityGroupRule>
Modifier and Type | Method and Description |
---|---|
SecurityGroupRule.Builder |
cidrIpv4(String cidrIpv4)
The IPv4 CIDR range.
|
SecurityGroupRule.Builder |
cidrIpv6(String cidrIpv6)
The IPv6 CIDR range.
|
SecurityGroupRule.Builder |
description(String description)
The security group rule description.
|
SecurityGroupRule.Builder |
fromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type.
|
SecurityGroupRule.Builder |
groupId(String groupId)
The ID of the security group.
|
SecurityGroupRule.Builder |
groupOwnerId(String groupOwnerId)
The ID of the Amazon Web Services account that owns the security group.
|
SecurityGroupRule.Builder |
ipProtocol(String ipProtocol)
|
SecurityGroupRule.Builder |
isEgress(Boolean isEgress)
Indicates whether the security group rule is an outbound rule.
|
SecurityGroupRule.Builder |
prefixListId(String prefixListId)
The ID of the prefix list.
|
default SecurityGroupRule.Builder |
referencedGroupInfo(Consumer<ReferencedSecurityGroup.Builder> referencedGroupInfo)
Describes the security group that is referenced in the rule.
|
SecurityGroupRule.Builder |
referencedGroupInfo(ReferencedSecurityGroup referencedGroupInfo)
Describes the security group that is referenced in the rule.
|
SecurityGroupRule.Builder |
securityGroupRuleId(String securityGroupRuleId)
The ID of the security group rule.
|
SecurityGroupRule.Builder |
tags(Collection<Tag> tags)
The tags applied to the security group rule.
|
SecurityGroupRule.Builder |
tags(Consumer<Tag.Builder>... tags)
The tags applied to the security group rule.
|
SecurityGroupRule.Builder |
tags(Tag... tags)
The tags applied to the security group rule.
|
SecurityGroupRule.Builder |
toPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
SecurityGroupRule.Builder securityGroupRuleId(String securityGroupRuleId)
The ID of the security group rule.
securityGroupRuleId
- The ID of the security group rule.SecurityGroupRule.Builder groupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.SecurityGroupRule.Builder groupOwnerId(String groupOwnerId)
The ID of the Amazon Web Services account that owns the security group.
groupOwnerId
- The ID of the Amazon Web Services account that owns the security group.SecurityGroupRule.Builder isEgress(Boolean isEgress)
Indicates whether the security group rule is an outbound rule.
isEgress
- Indicates whether the security group rule is an outbound rule.SecurityGroupRule.Builder ipProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number
(see Protocol Numbers).
Use -1
to specify all protocols.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or
number (see Protocol
Numbers).
Use -1
to specify all protocols.
SecurityGroupRule.Builder fromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.
fromPort
- The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. A value of -1 indicates
all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.SecurityGroupRule.Builder toPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1
indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of
-1
indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must
specify all codes.SecurityGroupRule.Builder cidrIpv4(String cidrIpv4)
The IPv4 CIDR range.
cidrIpv4
- The IPv4 CIDR range.SecurityGroupRule.Builder cidrIpv6(String cidrIpv6)
The IPv6 CIDR range.
cidrIpv6
- The IPv6 CIDR range.SecurityGroupRule.Builder prefixListId(String prefixListId)
The ID of the prefix list.
prefixListId
- The ID of the prefix list.SecurityGroupRule.Builder referencedGroupInfo(ReferencedSecurityGroup referencedGroupInfo)
Describes the security group that is referenced in the rule.
referencedGroupInfo
- Describes the security group that is referenced in the rule.default SecurityGroupRule.Builder referencedGroupInfo(Consumer<ReferencedSecurityGroup.Builder> referencedGroupInfo)
Describes the security group that is referenced in the rule.
This is a convenience method that creates an instance of theReferencedSecurityGroup.Builder
avoiding
the need to create one manually via ReferencedSecurityGroup.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to referencedGroupInfo(ReferencedSecurityGroup)
.referencedGroupInfo
- a consumer that will call methods on ReferencedSecurityGroup.Builder
referencedGroupInfo(ReferencedSecurityGroup)
SecurityGroupRule.Builder description(String description)
The security group rule description.
description
- The security group rule description.SecurityGroupRule.Builder tags(Collection<Tag> tags)
The tags applied to the security group rule.
tags
- The tags applied to the security group rule.SecurityGroupRule.Builder tags(Tag... tags)
The tags applied to the security group rule.
tags
- The tags applied to the security group rule.SecurityGroupRule.Builder tags(Consumer<Tag.Builder>... tags)
The tags applied to the security group rule.
This is a convenience method that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
Copyright © 2022. All rights reserved.