Interface SecurityGroupRuleRequest.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SecurityGroupRuleRequest.Builder,SecurityGroupRuleRequest>
,SdkBuilder<SecurityGroupRuleRequest.Builder,SecurityGroupRuleRequest>
,SdkPojo
- Enclosing class:
- SecurityGroupRuleRequest
public static interface SecurityGroupRuleRequest.Builder extends SdkPojo, CopyableBuilder<SecurityGroupRuleRequest.Builder,SecurityGroupRuleRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecurityGroupRuleRequest.Builder
cidrIpv4(String cidrIpv4)
The IPv4 CIDR range.SecurityGroupRuleRequest.Builder
cidrIpv6(String cidrIpv6)
The IPv6 CIDR range.SecurityGroupRuleRequest.Builder
description(String description)
The description of the security group rule.SecurityGroupRuleRequest.Builder
fromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range.SecurityGroupRuleRequest.Builder
ipProtocol(String ipProtocol)
SecurityGroupRuleRequest.Builder
prefixListId(String prefixListId)
The ID of the prefix list.SecurityGroupRuleRequest.Builder
referencedGroupId(String referencedGroupId)
The ID of the security group that is referenced in the security group rule.SecurityGroupRuleRequest.Builder
toPort(Integer toPort)
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 Detail
-
ipProtocol
SecurityGroupRuleRequest.Builder ipProtocol(String 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
SecurityGroupRuleRequest.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.
- 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 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toPort
SecurityGroupRuleRequest.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 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 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 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cidrIpv4
SecurityGroupRuleRequest.Builder cidrIpv4(String 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
SecurityGroupRuleRequest.Builder cidrIpv6(String 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
SecurityGroupRuleRequest.Builder prefixListId(String 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
SecurityGroupRuleRequest.Builder referencedGroupId(String 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
SecurityGroupRuleRequest.Builder description(String 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.
-
-