Class ActivationKey.V1
java.lang.Object
com.eqixiac.equinix.core.model.multicloud.ActivationKey.V1
- All Implemented Interfaces:
ActivationKey
- Enclosing interface:
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for a version 1 key.Nested classes/interfaces inherited from interface ActivationKey
ActivationKey.Opaque, ActivationKey.RedactingSerializer, ActivationKey.V1, ActivationKey.V2EncryptedModifier and TypeInterfaceDescriptionstatic final classA key this SDK release cannot interpret.static final classThe Jackson serializer of every variant: it writes the empty object{}and nothing else, so no key material reaches JSON produced by anyObjectMapper, including one withSerializationFeature.FAIL_ON_EMPTY_BEANSenabled (the default).static final classA version 1 key: all members in cleartext.static final classA version 2 key: the envelope in cleartext, everything else encrypted for the destination environment. -
Field Summary
Fields -
Method Summary
Methods inherited from interface ActivationKey
destinationEnvironmentIdModifier and TypeMethodDescriptionThe environment id named by the envelope'sdestinationEnvironmentUri, extracted byEnvironmentRef.environmentIdOf(String).
-
Field Details
-
VERSION
public static final int VERSIONTheversionvalue of this variant.- See Also:
-
-
Method Details
-
builder
- Returns:
- a builder for a version 1 key in canonical encoding
-
version
public int version()- Returns:
1
-
destinationEnvironmentUri
- Returns:
- the URI of the environment the key is intended for; never blank
-
connectionSizeMbps
public int connectionSizeMbps()- Returns:
- the size of the connection to provision, in Mbps; always
> 0
-
destinationAccountId
- Returns:
- the customer's account id at the destination provider; never blank. Sensitive.
-
encode
- Specified by:
encodein interfaceActivationKey- Returns:
- the string to hand to the receiving provider; see the class documentation for what each variant returns
-
envelopeVersion
- Specified by:
envelopeVersionin interfaceActivationKey- Returns:
- the envelope's
version; empty only for anActivationKey.Opaquekey whose payload carried no readable integerversion
-
envelopeDestinationEnvironmentUri
- Specified by:
envelopeDestinationEnvironmentUriin interfaceActivationKey- Returns:
- the envelope's
destinationEnvironmentUri; empty only for anActivationKey.Opaquekey whose payload carried no readabledestinationEnvironmentUri
-
equals
-
hashCode
-
toString
-