Interface SecurityGroupRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SecurityGroupRule.Builder,
,SecurityGroupRule> SdkBuilder<SecurityGroupRule.Builder,
,SecurityGroupRule> SdkPojo
- Enclosing class:
SecurityGroupRule
-
Method Summary
Modifier and TypeMethodDescriptionThe IPv4 CIDR range.The IPv6 CIDR range.description
(String description) The security group rule description.If the protocol is TCP or UDP, this is the start of the port range.The ID of the security group.groupOwnerId
(String groupOwnerId) The ID of the Amazon Web Services account that owns the security group.ipProtocol
(String ipProtocol) Indicates whether the security group rule is an outbound rule.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.referencedGroupInfo
(ReferencedSecurityGroup referencedGroupInfo) Describes the security group that is referenced in the rule.securityGroupRuleId
(String securityGroupRuleId) The ID of the security group rule.tags
(Collection<Tag> tags) The tags applied to the security group rule.tags
(Consumer<Tag.Builder>... tags) The tags applied to the security group rule.The tags applied to the security group rule.If the protocol is TCP or UDP, this is the end of the port range.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
securityGroupRuleId
The ID of the security group rule.
- Parameters:
securityGroupRuleId
- The ID of the security group rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupId
The ID of the security group.
- Parameters:
groupId
- The ID of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupOwnerId
The ID of the Amazon Web Services account that owns the security group.
- Parameters:
groupOwnerId
- The ID of the Amazon Web Services account that owns the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEgress
Indicates whether the security group rule is an outbound rule.
- Parameters:
isEgress
- Indicates whether the security group rule is an outbound rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipProtocol
The IP protocol name (
tcp
,udp
,icmp
,icmpv6
) or number (see Protocol Numbers).Use
-1
to specify all protocols.- Parameters:
ipProtocol
- The IP protocol name (tcp
,udp
,icmp
,icmpv6
) or number (see Protocol Numbers).Use
-1
to specify all protocols.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 ICMP type or -1 (all ICMP types).
- Parameters:
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 ICMP type or -1 (all ICMP types).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
- Parameters:
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 ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cidrIpv4
The IPv4 CIDR range.
- Parameters:
cidrIpv4
- The IPv4 CIDR range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cidrIpv6
The IPv6 CIDR range.
- Parameters:
cidrIpv6
- The IPv6 CIDR range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefixListId
The ID of the prefix list.
- Parameters:
prefixListId
- The ID of the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referencedGroupInfo
Describes the security group that is referenced in the rule.
- Parameters:
referencedGroupInfo
- Describes the security group that is referenced in the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referencedGroupInfo
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 viaReferencedSecurityGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreferencedGroupInfo(ReferencedSecurityGroup)
.- Parameters:
referencedGroupInfo
- a consumer that will call methods onReferencedSecurityGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The security group rule description.
- Parameters:
description
- The security group rule description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags applied to the security group rule.
- Parameters:
tags
- The tags applied to the security group rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags applied to the security group rule.
- Parameters:
tags
- The tags applied to the security group rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-