Class ExchangeListItemResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ExchangeListItemResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExchangeListItemResponse
extends Object
List-page projection of a Cryptographic Exchange
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumLifecycle statusstatic enumWhy the Exchange reached its terminal state. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationName(String applicationName) counterparty(String counterparty) effectiveFrom(OffsetDateTime effectiveFrom) effectiveUntil(OffsetDateTime effectiveUntil) booleanstatic ExchangeListItemResponseCreate an instance of ExchangeListItemResponse given an JSON stringApplication display name (filter-friendly)Counterparty (filter-friendly)Validity window startValidity window endgetId()Stable Exchange UUIDgetName()Display nameOwner principal UUIDLifecycle statusThe wire value ofstatus: what the server sent, verbatim.Why the Exchange reached its terminal state.The wire value ofterminalCause: what the server sent, verbatim.Identity (key_aliases.id) of the destroyed key whose destruction ended the Exchange.Last modification timestamp (default sort)inthashCode()ownerPrincipalId(UUID ownerPrincipalId) voidsetApplicationName(String applicationName) voidsetCounterparty(String counterparty) voidsetEffectiveFrom(OffsetDateTime effectiveFrom) voidsetEffectiveUntil(OffsetDateTime effectiveUntil) voidvoidvoidsetOwnerPrincipalId(UUID ownerPrincipalId) voidvoidsetTerminalCause(ExchangeListItemResponse.TerminalCauseEnum terminalCause) voidsetTerminalCauseKeyIdentity(UUID terminalCauseKeyIdentity) voidsetUpdatedAt(OffsetDateTime updatedAt) terminalCause(ExchangeListItemResponse.TerminalCauseEnum terminalCause) terminalCauseKeyIdentity(UUID terminalCauseKeyIdentity) toJson()Convert an instance of ExchangeListItemResponse to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_APPLICATION_NAME
- See Also:
-
SERIALIZED_NAME_COUNTERPARTY
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_FROM
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_UNTIL
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OWNER_PRINCIPAL_ID
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TERMINAL_CAUSE
- See Also:
-
SERIALIZED_NAME_TERMINAL_CAUSE_KEY_IDENTITY
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExchangeListItemResponse
public ExchangeListItemResponse()
-
-
Method Details
-
getStatusAsString
The wire value ofstatus: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getStatus()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
getTerminalCauseAsString
The wire value ofterminalCause: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getTerminalCause()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
applicationName
-
getApplicationName
Application display name (filter-friendly)- Returns:
- applicationName
-
setApplicationName
-
counterparty
-
getCounterparty
Counterparty (filter-friendly)- Returns:
- counterparty
-
setCounterparty
-
effectiveFrom
-
getEffectiveFrom
Validity window start- Returns:
- effectiveFrom
-
setEffectiveFrom
-
effectiveUntil
-
getEffectiveUntil
Validity window end- Returns:
- effectiveUntil
-
setEffectiveUntil
-
id
-
getId
Stable Exchange UUID- Returns:
- id
-
setId
-
name
-
getName
Display name- Returns:
- name
-
setName
-
ownerPrincipalId
-
getOwnerPrincipalId
Owner principal UUID- Returns:
- ownerPrincipalId
-
setOwnerPrincipalId
-
status
-
getStatus
Lifecycle status- Returns:
- status
-
setStatus
-
terminalCause
public ExchangeListItemResponse terminalCause(@Nullable ExchangeListItemResponse.TerminalCauseEnum terminalCause) -
getTerminalCause
Why the Exchange reached its terminal state. KEY_DESTROYED means the key it names was destroyed and the Exchange ended with it; CONSUMED means its Capability Grant was used up (single use taken, or maxUsage reached). Absent while the Exchange is not REVOKED, EXPIRED or CONSUMED.- Returns:
- terminalCause
-
setTerminalCause
-
terminalCauseKeyIdentity
-
getTerminalCauseKeyIdentity
Identity (key_aliases.id) of the destroyed key whose destruction ended the Exchange. Present exactly when terminalCause is KEY_DESTROYED.- Returns:
- terminalCauseKeyIdentity
-
setTerminalCauseKeyIdentity
-
updatedAt
-
getUpdatedAt
Last modification timestamp (default sort)- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ExchangeListItemResponse
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a ExchangeListItemResponse
-
fromJson
Create an instance of ExchangeListItemResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExchangeListItemResponse
- Throws:
IOException- if the JSON string is invalid with respect to ExchangeListItemResponse
-
toJson
Convert an instance of ExchangeListItemResponse to an JSON string- Returns:
- JSON string
-