Class IpamDiscoveredPublicAddress

java.lang.Object
software.amazon.awssdk.services.ec2.model.IpamDiscoveredPublicAddress
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<IpamDiscoveredPublicAddress.Builder,IpamDiscoveredPublicAddress>

@Generated("software.amazon.awssdk:codegen") public final class IpamDiscoveredPublicAddress extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IpamDiscoveredPublicAddress.Builder,IpamDiscoveredPublicAddress>

A public IP Address discovered by IPAM.

See Also:
  • Method Details

    • ipamResourceDiscoveryId

      public final String ipamResourceDiscoveryId()

      The resource discovery ID.

      Returns:
      The resource discovery ID.
    • addressRegion

      public final String addressRegion()

      The Region of the resource the IP address is assigned to.

      Returns:
      The Region of the resource the IP address is assigned to.
    • address

      public final String address()

      The IP address.

      Returns:
      The IP address.
    • addressOwnerId

      public final String addressOwnerId()

      The ID of the owner of the resource the IP address is assigned to.

      Returns:
      The ID of the owner of the resource the IP address is assigned to.
    • addressAllocationId

      public final String addressAllocationId()

      The allocation ID of the resource the IP address is assigned to.

      Returns:
      The allocation ID of the resource the IP address is assigned to.
    • associationStatus

      public final IpamPublicAddressAssociationStatus associationStatus()

      The association status.

      If the service returns an enum value that is not available in the current SDK version, associationStatus will return IpamPublicAddressAssociationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from associationStatusAsString().

      Returns:
      The association status.
      See Also:
    • associationStatusAsString

      public final String associationStatusAsString()

      The association status.

      If the service returns an enum value that is not available in the current SDK version, associationStatus will return IpamPublicAddressAssociationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from associationStatusAsString().

      Returns:
      The association status.
      See Also:
    • addressType

      public final IpamPublicAddressType addressType()

      The IP address type.

      If the service returns an enum value that is not available in the current SDK version, addressType will return IpamPublicAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from addressTypeAsString().

      Returns:
      The IP address type.
      See Also:
    • addressTypeAsString

      public final String addressTypeAsString()

      The IP address type.

      If the service returns an enum value that is not available in the current SDK version, addressType will return IpamPublicAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from addressTypeAsString().

      Returns:
      The IP address type.
      See Also:
    • service

      public final IpamPublicAddressAwsService service()

      The Amazon Web Services service associated with the IP address.

      If the service returns an enum value that is not available in the current SDK version, service will return IpamPublicAddressAwsService.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from serviceAsString().

      Returns:
      The Amazon Web Services service associated with the IP address.
      See Also:
    • serviceAsString

      public final String serviceAsString()

      The Amazon Web Services service associated with the IP address.

      If the service returns an enum value that is not available in the current SDK version, service will return IpamPublicAddressAwsService.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from serviceAsString().

      Returns:
      The Amazon Web Services service associated with the IP address.
      See Also:
    • serviceResource

      public final String serviceResource()

      The resource ARN or ID.

      Returns:
      The resource ARN or ID.
    • vpcId

      public final String vpcId()

      The ID of the VPC that the resource with the assigned IP address is in.

      Returns:
      The ID of the VPC that the resource with the assigned IP address is in.
    • subnetId

      public final String subnetId()

      The ID of the subnet that the resource with the assigned IP address is in.

      Returns:
      The ID of the subnet that the resource with the assigned IP address is in.
    • publicIpv4PoolId

      public final String publicIpv4PoolId()

      The ID of the public IPv4 pool that the resource with the assigned IP address is from.

      Returns:
      The ID of the public IPv4 pool that the resource with the assigned IP address is from.
    • networkInterfaceId

      public final String networkInterfaceId()

      The network interface ID of the resource with the assigned IP address.

      Returns:
      The network interface ID of the resource with the assigned IP address.
    • networkInterfaceDescription

      public final String networkInterfaceDescription()

      The description of the network interface that IP address is assigned to.

      Returns:
      The description of the network interface that IP address is assigned to.
    • instanceId

      public final String instanceId()

      The instance ID of the instance the assigned IP address is assigned to.

      Returns:
      The instance ID of the instance the assigned IP address is assigned to.
    • tags

      public final IpamPublicAddressTags tags()

      Tags associated with the IP address.

      Returns:
      Tags associated with the IP address.
    • networkBorderGroup

      public final String networkBorderGroup()

      The network border group that the resource that the IP address is assigned to is in.

      Returns:
      The network border group that the resource that the IP address is assigned to is in.
    • hasSecurityGroups

      public final boolean hasSecurityGroups()
      For responses, this returns true if the service returned a value for the SecurityGroups property. This DOES NOT check that the value is non-empty (for which, you should check the 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.
    • securityGroups

      public final List<IpamPublicAddressSecurityGroup> securityGroups()

      Security groups associated with the resource that the IP address is assigned to.

      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 hasSecurityGroups() method.

      Returns:
      Security groups associated with the resource that the IP address is assigned to.
    • sampleTime

      public final Instant sampleTime()

      The last successful resource discovery time.

      Returns:
      The last successful resource discovery time.
    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<IpamDiscoveredPublicAddress.Builder,IpamDiscoveredPublicAddress>
      Returns:
      a builder for type T
    • builder

      public static IpamDiscoveredPublicAddress.Builder builder()
    • serializableBuilderClass

      public static Class<? extends IpamDiscoveredPublicAddress.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.