@Generated(value="software.amazon.awssdk:codegen") public final class CreateIpamPoolRequest extends Ec2Request implements ToCopyableBuilder<CreateIpamPoolRequest.Builder,CreateIpamPoolRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateIpamPoolRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AddressFamily |
addressFamily()
The IP protocol assigned to this IPAM pool.
|
String |
addressFamilyAsString()
The IP protocol assigned to this IPAM pool.
|
Integer |
allocationDefaultNetmaskLength()
The default netmask length for allocations added to this pool.
|
Integer |
allocationMaxNetmaskLength()
The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant.
|
Integer |
allocationMinNetmaskLength()
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant.
|
List<RequestIpamResourceTag> |
allocationResourceTags()
Tags that are required for resources that use CIDRs from this IPAM pool.
|
Boolean |
autoImport()
If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically
import them as allocations into your IPAM.
|
IpamPoolAwsService |
awsService()
Limits which service in Amazon Web Services that the pool can be used in.
|
String |
awsServiceAsString()
Limits which service in Amazon Web Services that the pool can be used in.
|
static CreateIpamPoolRequest.Builder |
builder() |
String |
clientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
description()
A description for the IPAM pool.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAllocationResourceTags()
For responses, this returns true if the service returned a value for the AllocationResourceTags property.
|
int |
hashCode() |
boolean |
hasTagSpecifications()
For responses, this returns true if the service returned a value for the TagSpecifications property.
|
String |
ipamScopeId()
The ID of the scope in which you would like to create the IPAM pool.
|
String |
locale()
In IPAM, the locale is the Amazon Web Services Region where you want to make an IPAM pool available for
allocations.
|
Boolean |
publiclyAdvertisable()
Determines if the pool is publicly advertisable.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateIpamPoolRequest.Builder> |
serializableBuilderClass() |
String |
sourceIpamPoolId()
The ID of the source IPAM pool.
|
List<TagSpecification> |
tagSpecifications()
The key/value combination of a tag assigned to the resource.
|
CreateIpamPoolRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String ipamScopeId()
The ID of the scope in which you would like to create the IPAM pool.
public final String locale()
In IPAM, the locale is the Amazon Web Services Region where you want to make an IPAM pool available for allocations. Only resources in the same Region as the locale of the pool can get IP address allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM pool that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, you cannot modify it. If you do not choose a locale, resources in Regions others than the IPAM's home region cannot use CIDRs from this pool.
Possible values: Any Amazon Web Services Region, such as us-east-1.
Possible values: Any Amazon Web Services Region, such as us-east-1.
public final String sourceIpamPoolId()
The ID of the source IPAM pool. Use this option to create a pool within an existing pool. Note that the CIDR you provision for the pool within the source pool must be available in the source pool's CIDR range.
public final String description()
A description for the IPAM pool.
public final AddressFamily addressFamily()
The IP protocol assigned to this IPAM pool. You must choose either IPv4 or IPv6 protocol for a pool.
If the service returns an enum value that is not available in the current SDK version, addressFamily
will return AddressFamily.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
addressFamilyAsString().
AddressFamilypublic final String addressFamilyAsString()
The IP protocol assigned to this IPAM pool. You must choose either IPv4 or IPv6 protocol for a pool.
If the service returns an enum value that is not available in the current SDK version, addressFamily
will return AddressFamily.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
addressFamilyAsString().
AddressFamilypublic final Boolean autoImport()
If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.
A locale must be set on the pool for this feature to work.
A locale must be set on the pool for this feature to work.
public final Boolean publiclyAdvertisable()
Determines if the pool is publicly advertisable. This option is not available for pools with AddressFamily set to
ipv4.
ipv4.public final Integer allocationMinNetmaskLength()
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. The minimum netmask length must be less than the maximum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
public final Integer allocationMaxNetmaskLength()
The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. The maximum netmask length must be greater than the minimum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
public final Integer allocationDefaultNetmaskLength()
The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.
public final boolean hasAllocationResourceTags()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<RequestIpamResourceTag> allocationResourceTags()
Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAllocationResourceTags() method.
public final boolean hasTagSpecifications()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<TagSpecification> tagSpecifications()
The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value
as the filter value. For example, to find all resources that have a tag with the key Owner and the
value TeamA, specify tag:Owner for the filter name and TeamA for the
filter value.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTagSpecifications() method.
Owner and the value TeamA, specify tag:Owner for the filter name
and TeamA for the filter value.public final String clientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
public final IpamPoolAwsService awsService()
Limits which service in Amazon Web Services that the pool can be used in. "ec2", for example, allows users to use space for Elastic IP addresses and VPCs.
If the service returns an enum value that is not available in the current SDK version, awsService will
return IpamPoolAwsService.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
awsServiceAsString().
IpamPoolAwsServicepublic final String awsServiceAsString()
Limits which service in Amazon Web Services that the pool can be used in. "ec2", for example, allows users to use space for Elastic IP addresses and VPCs.
If the service returns an enum value that is not available in the current SDK version, awsService will
return IpamPoolAwsService.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
awsServiceAsString().
IpamPoolAwsServicepublic CreateIpamPoolRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateIpamPoolRequest.Builder,CreateIpamPoolRequest>toBuilder in class Ec2Requestpublic static CreateIpamPoolRequest.Builder builder()
public static Class<? extends CreateIpamPoolRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.