Class CreateExchangeContextRequest
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.CreateExchangeContextRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateExchangeContextRequest
extends Object
A governed business scenario of the tenant. It names no application, counterparty or direction: those belong to the Cryptographic Exchanges created in it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumData classification of the payloads exchanged in the scenario. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbusinessPurpose(String businessPurpose) description(String description) displayName(String displayName) booleanstatic CreateExchangeContextRequestCreate an instance of CreateExchangeContextRequest given an JSON stringBusiness purpose of the scenario (visible to auditors)Free-text description of the scenarioHuman-readable labelgetName()Technical slug unique among the live Exchange Contexts of the tenant.Optional free-text name of the regulatory regime the scenario operates under, at most 120 characters.Data classification of the payloads exchanged in the scenario.The wire value ofsensitivity: what the server sent, verbatim.inthashCode()regulatoryRegime(String regulatoryRegime) sensitivity(CreateExchangeContextRequest.SensitivityEnum sensitivity) voidsetBusinessPurpose(String businessPurpose) voidsetDescription(String description) voidsetDisplayName(String displayName) voidvoidsetRegulatoryRegime(String regulatoryRegime) voidtoJson()Convert an instance of CreateExchangeContextRequest to an JSON stringtoString()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_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DISPLAY_NAME
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_REGULATORY_REGIME
- See Also:
-
SERIALIZED_NAME_SENSITIVITY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateExchangeContextRequest
public CreateExchangeContextRequest()
-
-
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
-
businessPurpose
-
getBusinessPurpose
Business purpose of the scenario (visible to auditors)- Returns:
- businessPurpose
-
setBusinessPurpose
-
description
-
getDescription
Free-text description of the scenario- Returns:
- description
-
setDescription
-
displayName
-
getDisplayName
Human-readable label- Returns:
- displayName
-
setDisplayName
-
name
-
getName
Technical slug unique among the live Exchange Contexts of the tenant. Lowercase alphanumerics and hyphens only.- Returns:
- name
-
setName
-
regulatoryRegime
-
getRegulatoryRegime
Optional free-text name of the regulatory regime the scenario operates under, at most 120 characters.- Returns:
- regulatoryRegime
-
setRegulatoryRegime
-
sensitivity
public CreateExchangeContextRequest sensitivity(@Nullable CreateExchangeContextRequest.SensitivityEnum sensitivity) -
getSensitivity
Data classification of the payloads exchanged in the scenario. INTERNAL when omitted.- Returns:
- sensitivity
-
setSensitivity
-
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 CreateExchangeContextRequest
-
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 CreateExchangeContextRequest
-
fromJson
Create an instance of CreateExchangeContextRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateExchangeContextRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateExchangeContextRequest
-
toJson
Convert an instance of CreateExchangeContextRequest to an JSON string- Returns:
- JSON string
-