Class Subnet

    • Method Detail

      • subnetIdentifier

        public final String subnetIdentifier()

        The unique identifier for the subnet.

        Returns:
        The unique identifier for the subnet.
      • subnetAvailabilityZone

        public final AvailabilityZone subnetAvailabilityZone()

        The Availability Zone associated with the subnet.

        Returns:
        The Availability Zone associated with the subnet.
      • subnetOutpost

        public final SubnetOutpost subnetOutpost()

        The outpost ARN of the subnet.

        Returns:
        The outpost ARN of the subnet.
      • supportedNetworkTypes

        public final List<NetworkType> supportedNetworkTypes()

        Either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.

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

        Returns:
        Either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
      • hasSupportedNetworkTypes

        public final boolean hasSupportedNetworkTypes()
        For responses, this returns true if the service returned a value for the SupportedNetworkTypes 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.
      • supportedNetworkTypesAsStrings

        public final List<String> supportedNetworkTypesAsStrings()

        Either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.

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

        Returns:
        Either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
      • serializableBuilderClass

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

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)