Interface SecurityGroupRule.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<SecurityGroupRule.Builder,,- SecurityGroupRule> - SdkBuilder<SecurityGroupRule.Builder,,- SecurityGroupRule> - SdkPojo
- Enclosing class:
- SecurityGroupRule
- 
Method SummaryModifier 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.BuilderreferencedGroupInfo(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.securityGroupRuleArn(String securityGroupRuleArn) The ARN of the security group 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
securityGroupRuleIdThe 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.
 
- 
groupIdThe 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.
 
- 
groupOwnerIdThe 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.
 
- 
isEgressIndicates 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.
 
- 
ipProtocolThe IP protocol name ( tcp,udp,icmp,icmpv6) or number (see Protocol Numbers).Use -1to specify all protocols.- Parameters:
- ipProtocol- The IP protocol name (- tcp,- udp,- icmp,- icmpv6) or number (see Protocol Numbers).- Use - -1to specify all protocols.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
fromPortIf 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.
 
- 
toPortIf 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.
 
- 
cidrIpv4The IPv4 CIDR range. - Parameters:
- cidrIpv4- The IPv4 CIDR range.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
cidrIpv6The IPv6 CIDR range. - Parameters:
- cidrIpv6- The IPv6 CIDR range.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
prefixListIdThe 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.
 
- 
referencedGroupInfoDescribes 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.
 
- 
referencedGroupInfodefault 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.Builderavoiding the need to create one manually viaReferencedSecurityGroup.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreferencedGroupInfo(ReferencedSecurityGroup).- Parameters:
- referencedGroupInfo- a consumer that will call methods on- ReferencedSecurityGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
descriptionThe 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.
 
- 
tagsThe 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.
 
- 
tagsThe 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.
 
- 
tagsThe tags applied to the security group rule. This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
- tags- a consumer that will call methods on- Tag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
securityGroupRuleArnThe ARN of the security group rule. - Parameters:
- securityGroupRuleArn- The ARN of the security group rule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
 
-