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)
If the protocol is TCP or UDP, this is the start of the port range.
|
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)
If the protocol is TCP or UDP, this is the end of the port range.
|
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)
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6,
this is the type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6
types, you must specify all ICMP/ICMPv6 codes.SecurityGroupRule.Builder toPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the type number. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6,
this is the type number. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6
types, you must specify all ICMP/ICMPv6 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 theTag.Builder
avoiding the need to create one manually via
Tag.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to #tags(List
.
tags
- a consumer that will call methods on Tag.Builder
#tags(java.util.Collection)
Copyright © 2023. All rights reserved.