Class IpamPoolAllocation
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.IpamPoolAllocation
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<IpamPoolAllocation.Builder,IpamPoolAllocation>
@Generated("software.amazon.awssdk:codegen") public final class IpamPoolAllocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IpamPoolAllocation.Builder,IpamPoolAllocation>
In IPAM, an allocation is a CIDR assignment from an IPAM pool to another IPAM pool or to a resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
IpamPoolAllocation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IpamPoolAllocation.Builder
builder()
String
cidr()
The CIDR for the allocation.String
description()
A description of the pool allocation.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
ipamPoolAllocationId()
The ID of an allocation.String
resourceId()
The ID of the resource.String
resourceOwner()
The owner of the resource.String
resourceRegion()
The Amazon Web Services Region of the resource.IpamPoolAllocationResourceType
resourceType()
The type of the resource.String
resourceTypeAsString()
The type of the resource.List<SdkField<?>>
sdkFields()
static Class<? extends IpamPoolAllocation.Builder>
serializableBuilderClass()
IpamPoolAllocation.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
-
cidr
public final String cidr()
The CIDR for the allocation. A CIDR is a representation of an IP address and its associated network mask (or netmask) and refers to a range of IP addresses. An IPv4 CIDR example is
10.24.34.0/23
. An IPv6 CIDR example is2001:DB8::/32
.- Returns:
- The CIDR for the allocation. A CIDR is a representation of an IP address and its associated network mask
(or netmask) and refers to a range of IP addresses. An IPv4 CIDR example is
10.24.34.0/23
. An IPv6 CIDR example is2001:DB8::/32
.
-
ipamPoolAllocationId
public final String ipamPoolAllocationId()
The ID of an allocation.
- Returns:
- The ID of an allocation.
-
description
public final String description()
A description of the pool allocation.
- Returns:
- A description of the pool allocation.
-
resourceId
public final String resourceId()
The ID of the resource.
- Returns:
- The ID of the resource.
-
resourceType
public final IpamPoolAllocationResourceType resourceType()
The type of the resource.
If the service returns an enum value that is not available in the current SDK version,
resourceType
will returnIpamPoolAllocationResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromresourceTypeAsString()
.- Returns:
- The type of the resource.
- See Also:
IpamPoolAllocationResourceType
-
resourceTypeAsString
public final String resourceTypeAsString()
The type of the resource.
If the service returns an enum value that is not available in the current SDK version,
resourceType
will returnIpamPoolAllocationResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromresourceTypeAsString()
.- Returns:
- The type of the resource.
- See Also:
IpamPoolAllocationResourceType
-
resourceRegion
public final String resourceRegion()
The Amazon Web Services Region of the resource.
- Returns:
- The Amazon Web Services Region of the resource.
-
resourceOwner
public final String resourceOwner()
The owner of the resource.
- Returns:
- The owner of the resource.
-
toBuilder
public IpamPoolAllocation.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<IpamPoolAllocation.Builder,IpamPoolAllocation>
-
builder
public static IpamPoolAllocation.Builder builder()
-
serializableBuilderClass
public static Class<? extends IpamPoolAllocation.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.
-
-