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 enumSELF, INTERNAL, OUTBOUND or INBOUND, derived from the endpointsstatic enumLifecycle statusstatic enumWhy the Exchange reached its terminal state. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGrantsItem(ExchangeGrantSummary grantsItem) destination(ExchangeEndpoint destination) effectiveFrom(OffsetDateTime effectiveFrom) effectiveUntil(OffsetDateTime effectiveUntil) booleanexchangeContextId(UUID exchangeContextId) exchangeContextName(String exchangeContextName) static ExchangeListItemResponseCreate an instance of ExchangeListItemResponse given an JSON stringWhere the relationship endsValidity window startValidity window endExchange Context reference idExchange Context display nameThe Capability Grants the Exchange owns, live and retired, oldest firstgetId()Stable Exchange UUIDgetName()Display nameWhere the relationship startsOwner principal UUIDSELF, INTERNAL, OUTBOUND or INBOUND, derived from the endpointsThe wire value ofrelationship: what the server sent, verbatim.The time zone in which the schedules of the grants' Constraint Policy versions are evaluated: the platform setting authorization.schedule.timezone, an IANA region zone or UTC.Lifecycle statusThe wire value ofstatus: what the server sent, verbatim.When the Exchange was suspended; present only while it is SUSPENDEDWho suspended the Exchange; present only while it is SUSPENDED.Why the Exchange was suspended; present only while it is SUSPENDEDWhy 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)grants(List<ExchangeGrantSummary> grants) inthashCode()origin(ExchangeEndpoint origin) ownerPrincipalId(UUID ownerPrincipalId) relationship(ExchangeListItemResponse.RelationshipEnum relationship) scheduleTimeZone(String scheduleTimeZone) voidsetDestination(ExchangeEndpoint destination) voidsetEffectiveFrom(OffsetDateTime effectiveFrom) voidsetEffectiveUntil(OffsetDateTime effectiveUntil) voidsetExchangeContextId(UUID exchangeContextId) voidsetExchangeContextName(String exchangeContextName) voidsetGrants(List<ExchangeGrantSummary> grants) voidvoidvoidsetOrigin(ExchangeEndpoint origin) voidsetOwnerPrincipalId(UUID ownerPrincipalId) voidsetRelationship(ExchangeListItemResponse.RelationshipEnum relationship) voidsetScheduleTimeZone(String scheduleTimeZone) voidvoidsetSuspendedAt(OffsetDateTime suspendedAt) voidsetSuspendedBy(String suspendedBy) voidsetSuspendedReason(String suspendedReason) voidsetTerminalCause(ExchangeListItemResponse.TerminalCauseEnum terminalCause) voidsetTerminalCauseKeyIdentity(UUID terminalCauseKeyIdentity) voidsetUpdatedAt(OffsetDateTime updatedAt) suspendedAt(OffsetDateTime suspendedAt) suspendedBy(String suspendedBy) suspendedReason(String suspendedReason) 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_DESTINATION
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_FROM
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_UNTIL
- See Also:
-
SERIALIZED_NAME_EXCHANGE_CONTEXT_ID
- See Also:
-
SERIALIZED_NAME_EXCHANGE_CONTEXT_NAME
- See Also:
-
SERIALIZED_NAME_GRANTS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_ORIGIN
- See Also:
-
SERIALIZED_NAME_OWNER_PRINCIPAL_ID
- See Also:
-
SERIALIZED_NAME_RELATIONSHIP
- See Also:
-
SERIALIZED_NAME_SCHEDULE_TIME_ZONE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SUSPENDED_AT
- See Also:
-
SERIALIZED_NAME_SUSPENDED_BY
- See Also:
-
SERIALIZED_NAME_SUSPENDED_REASON
- 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
-
getRelationshipAsString
The wire value ofrelationship: 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
getRelationship()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
-
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
-
destination
-
getDestination
Where the relationship ends- Returns:
- destination
-
setDestination
-
effectiveFrom
-
getEffectiveFrom
Validity window start- Returns:
- effectiveFrom
-
setEffectiveFrom
-
effectiveUntil
-
getEffectiveUntil
Validity window end- Returns:
- effectiveUntil
-
setEffectiveUntil
-
exchangeContextId
-
getExchangeContextId
Exchange Context reference id- Returns:
- exchangeContextId
-
setExchangeContextId
-
exchangeContextName
-
getExchangeContextName
Exchange Context display name- Returns:
- exchangeContextName
-
setExchangeContextName
-
grants
-
addGrantsItem
-
getGrants
The Capability Grants the Exchange owns, live and retired, oldest first- Returns:
- grants
-
setGrants
-
id
-
getId
Stable Exchange UUID- Returns:
- id
-
setId
-
name
-
getName
Display name- Returns:
- name
-
setName
-
origin
-
getOrigin
Where the relationship starts- Returns:
- origin
-
setOrigin
-
ownerPrincipalId
-
getOwnerPrincipalId
Owner principal UUID- Returns:
- ownerPrincipalId
-
setOwnerPrincipalId
-
relationship
public ExchangeListItemResponse relationship(@Nullable ExchangeListItemResponse.RelationshipEnum relationship) -
getRelationship
SELF, INTERNAL, OUTBOUND or INBOUND, derived from the endpoints- Returns:
- relationship
-
setRelationship
-
scheduleTimeZone
-
getScheduleTimeZone
The time zone in which the schedules of the grants' Constraint Policy versions are evaluated: the platform setting authorization.schedule.timezone, an IANA region zone or UTC.- Returns:
- scheduleTimeZone
-
setScheduleTimeZone
-
status
-
getStatus
Lifecycle status- Returns:
- status
-
setStatus
-
suspendedAt
-
getSuspendedAt
When the Exchange was suspended; present only while it is SUSPENDED- Returns:
- suspendedAt
-
setSuspendedAt
-
suspendedBy
-
getSuspendedBy
Who suspended the Exchange; present only while it is SUSPENDED. Shown to a caller seated in the platform tenant; any other caller (an impersonation session and core-api relaying a tenant caller's read included) receives it only when it names a member of the caller's own tenant, and otherwise receives it withheld (absent or null): a platform operator's principal, a service or system principal, and a value that names neither a live member nor one of the tenant's own Cryptographic Actors.- Returns:
- suspendedBy
-
setSuspendedBy
-
suspendedReason
-
getSuspendedReason
Why the Exchange was suspended; present only while it is SUSPENDED- Returns:
- suspendedReason
-
setSuspendedReason
-
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 last live 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
-