Class IpRange
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.IpRange
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<IpRange.Builder,IpRange>
@Generated("software.amazon.awssdk:codegen") public final class IpRange extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IpRange.Builder,IpRange>
Describes an IPv4 range.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
IpRange.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IpRange.Builder
builder()
String
cidrIp()
The IPv4 CIDR range.String
description()
A description for the security group rule that references this IPv4 address range.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends IpRange.Builder>
serializableBuilderClass()
IpRange.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
cidrIp
public final String cidrIp()
The IPv4 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
- Returns:
- The IPv4 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
-
description
public final 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 ._-:/()#,@[]+=&;{}!$*
- Returns:
- 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 ._-:/()#,@[]+=&;{}!$*
-
toBuilder
public IpRange.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<IpRange.Builder,IpRange>
-
builder
public static IpRange.Builder builder()
-
serializableBuilderClass
public static Class<? extends IpRange.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-