Class ExchangeContextResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ExchangeContextResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExchangeContextResponse
extends Object
A governed business scenario of the tenant, such as card embossing with one bureau. Every Capability Grant belongs to exactly one context: suspending the context denies every grant in it, and closing it revokes its Cryptographic Exchanges and retires its grants. The context names no application, counterparty or direction; those are the endpoints of its Exchanges.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets sensitivitystatic enumGets or Sets status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbusinessPurpose(String businessPurpose) createdAt(OffsetDateTime createdAt) description(String description) displayName(String displayName) booleanstatic ExchangeContextResponseCreate an instance of ExchangeContextResponse given an JSON stringGet businessPurposeGet createdAtGet descriptionGet displayNamegetId()Get idgetName()Get nameThe Internal Crypto Use Case that owns this context, or null for a context the tenant owns.Free-text name of the regulatory regime the scenario operates under; null when none is recorded.Get sensitivityThe wire value ofsensitivity: what the server sent, verbatim.Get statusThe wire value ofstatus: what the server sent, verbatim.Get tenantIdGet updatedAtinthashCode()ownedByUseCaseId(UUID ownedByUseCaseId) regulatoryRegime(String regulatoryRegime) sensitivity(ExchangeContextResponse.SensitivityEnum sensitivity) voidsetBusinessPurpose(String businessPurpose) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDescription(String description) voidsetDisplayName(String displayName) voidvoidvoidsetOwnedByUseCaseId(UUID ownedByUseCaseId) voidsetRegulatoryRegime(String regulatoryRegime) voidsetSensitivity(ExchangeContextResponse.SensitivityEnum sensitivity) voidvoidsetTenantId(UUID tenantId) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of ExchangeContextResponse 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_BUSINESS_PURPOSE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DISPLAY_NAME
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OWNED_BY_USE_CASE_ID
- See Also:
-
SERIALIZED_NAME_REGULATORY_REGIME
- See Also:
-
SERIALIZED_NAME_SENSITIVITY
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TENANT_ID
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExchangeContextResponse
public ExchangeContextResponse()
-
-
Method Details
-
getSensitivityAsString
The wire value ofsensitivity: 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
getSensitivity()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
-
businessPurpose
-
getBusinessPurpose
Get businessPurpose- Returns:
- businessPurpose
-
setBusinessPurpose
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
displayName
-
getDisplayName
Get displayName- Returns:
- displayName
-
setDisplayName
-
id
-
getId
Get id- Returns:
- id
-
setId
-
name
-
getName
Get name- Returns:
- name
-
setName
-
ownedByUseCaseId
-
getOwnedByUseCaseId
The Internal Crypto Use Case that owns this context, or null for a context the tenant owns. A use case provisions its own context and owns it for good. A context with an owner admits only that use case's grants: creating, moving, activating or cloning an Exchange into it, adding an Exchange grant, and creating any other Capability Grant in it are refused 409 exchange-context-owned-by-use-case, naming this id, and so is closing it; the use case is revoked through its own operation, which closes the context.- Returns:
- ownedByUseCaseId
-
setOwnedByUseCaseId
-
regulatoryRegime
-
getRegulatoryRegime
Free-text name of the regulatory regime the scenario operates under; null when none is recorded.- Returns:
- regulatoryRegime
-
setRegulatoryRegime
-
sensitivity
public ExchangeContextResponse sensitivity(@Nonnull ExchangeContextResponse.SensitivityEnum sensitivity) -
getSensitivity
Get sensitivity- Returns:
- sensitivity
-
setSensitivity
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
tenantId
-
getTenantId
Get tenantId- Returns:
- tenantId
-
setTenantId
-
updatedAt
-
getUpdatedAt
Get updatedAt- 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 ExchangeContextResponse
-
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 ExchangeContextResponse
-
fromJson
Create an instance of ExchangeContextResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExchangeContextResponse
- Throws:
IOException- if the JSON string is invalid with respect to ExchangeContextResponse
-
toJson
Convert an instance of ExchangeContextResponse to an JSON string- Returns:
- JSON string
-