Interface IpRange.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<IpRange.Builder,IpRange>,SdkBuilder<IpRange.Builder,IpRange>,SdkPojo
- Enclosing class:
- IpRange
@Mutable @NotThreadSafe public static interface IpRange.Builder extends SdkPojo, CopyableBuilder<IpRange.Builder,IpRange>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IpRange.BuildercidrIp(String cidrIp)The IPv4 address range.IpRange.Builderdescription(String description)A description for the security group rule that references this IPv4 address 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
description
IpRange.Builder description(String description)
A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
- Parameters:
description- A description for the security group rule that references this IPv4 address range.Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cidrIp
IpRange.Builder cidrIp(String cidrIp)
The IPv4 address range. You can either specify a CIDR block or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
Amazon Web Services canonicalizes IPv4 and IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR block, Amazon Web Services canonicalizes the CIDR block to 100.68.0.0/18. Any subsequent DescribeSecurityGroups and DescribeSecurityGroupRules calls will return the canonicalized form of the CIDR block. Additionally, if you attempt to add another rule with the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is already a rule for the canonicalized form of the CIDR block (such as 100.68.0.0/18), the API throws an duplicate rule error.
- Parameters:
cidrIp- The IPv4 address range. You can either specify a CIDR block or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.Amazon Web Services canonicalizes IPv4 and IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR block, Amazon Web Services canonicalizes the CIDR block to 100.68.0.0/18. Any subsequent DescribeSecurityGroups and DescribeSecurityGroupRules calls will return the canonicalized form of the CIDR block. Additionally, if you attempt to add another rule with the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is already a rule for the canonicalized form of the CIDR block (such as 100.68.0.0/18), the API throws an duplicate rule error.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-