Interface SecurityGroupRuleRequest.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SecurityGroupRuleRequest.Builder,
,SecurityGroupRuleRequest> SdkBuilder<SecurityGroupRuleRequest.Builder,
,SecurityGroupRuleRequest> SdkPojo
- Enclosing class:
SecurityGroupRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe IPv4 CIDR range.The IPv6 CIDR range.description
(String description) The description of the security group rule.If the protocol is TCP or UDP, this is the start of the port range.ipProtocol
(String ipProtocol) prefixListId
(String prefixListId) The ID of the prefix list.referencedGroupId
(String referencedGroupId) The ID of the security group that is referenced in 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
-
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. To specify a single IPv4 address, use the /32 prefix length.
- Parameters:
cidrIpv4
- The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cidrIpv6
The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.
- Parameters:
cidrIpv6
- The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.- 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.
-
referencedGroupId
The ID of the security group that is referenced in the security group rule.
- Parameters:
referencedGroupId
- The ID of the security group that is referenced in the security group rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the security group rule.
- Parameters:
description
- The description of the security group rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-