Class ActivationKey.V1

java.lang.Object
com.eqixiac.equinix.core.model.multicloud.ActivationKey.V1
All Implemented Interfaces:
ActivationKey
Enclosing interface:
ActivationKey

public static final class ActivationKey.V1 extends Object implements ActivationKey
A version 1 key: all members in cleartext.

Equality compares the five members, not the encoded form: two keys with the same members issued with different JSON member order are equal.

Author:
ianjones
  • Field Details

    • VERSION

      public static final int VERSION
      The version value of this variant.
      See Also:
  • Method Details

    • builder

      public static ActivationKey.V1.Builder builder()
      Returns:
      a builder for a version 1 key in canonical encoding
    • version

      public int version()
      Returns:
      1
    • destinationEnvironmentUri

      public String destinationEnvironmentUri()
      Returns:
      the URI of the environment the key is intended for; never blank
    • sharedConnectionUuid

      public String sharedConnectionUuid()
      Returns:
      the UUID both providers use for the connection; never blank. Sensitive.
    • connectionSizeMbps

      public int connectionSizeMbps()
      Returns:
      the size of the connection to provision, in Mbps; always > 0
    • destinationAccountId

      public String destinationAccountId()
      Returns:
      the customer's account id at the destination provider; never blank. Sensitive.
    • encode

      public String encode()
      Specified by:
      encode in interface ActivationKey
      Returns:
      the string to hand to the receiving provider; see the class documentation for what each variant returns
    • envelopeVersion

      public OptionalInt envelopeVersion()
      Specified by:
      envelopeVersion in interface ActivationKey
      Returns:
      the envelope's version; empty only for an ActivationKey.Opaque key whose payload carried no readable integer version
    • envelopeDestinationEnvironmentUri

      public Optional<String> envelopeDestinationEnvironmentUri()
      Specified by:
      envelopeDestinationEnvironmentUri in interface ActivationKey
      Returns:
      the envelope's destinationEnvironmentUri; empty only for an ActivationKey.Opaque key whose payload carried no readable destinationEnvironmentUri
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      a description that omits sharedConnectionUuid, destinationAccountId and the encoded form