Class ExchangeEndpointRequest
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ExchangeEndpointRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExchangeEndpointRequest
extends Object
One endpoint of a Cryptographic Exchange: an application of the tenant (applicationId) or an external counterparty (counterparty, with an optional counterpartyTypeId). Exactly one of applicationId and counterparty.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId(UUID applicationId) counterparty(String counterparty) counterpartyTypeId(UUID counterpartyTypeId) booleanstatic ExchangeEndpointRequestCreate an instance of ExchangeEndpointRequest given an JSON stringAn application of the caller's tenant.The external counterparty's label, as the crypto audit of the Exchange's operations records it.The external counterparty's type: a platform-global type or one of the caller's tenant.inthashCode()voidsetApplicationId(UUID applicationId) voidsetCounterparty(String counterparty) voidsetCounterpartyTypeId(UUID counterpartyTypeId) toJson()Convert an instance of ExchangeEndpointRequest 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_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_COUNTERPARTY
- See Also:
-
SERIALIZED_NAME_COUNTERPARTY_TYPE_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExchangeEndpointRequest
public ExchangeEndpointRequest()
-
-
Method Details
-
applicationId
-
getApplicationId
An application of the caller's tenant. Another tenant's application, or an unknown one, is refused with 404.- Returns:
- applicationId
-
setApplicationId
-
counterparty
-
getCounterparty
The external counterparty's label, as the crypto audit of the Exchange's operations records it.- Returns:
- counterparty
-
setCounterparty
-
counterpartyTypeId
-
getCounterpartyTypeId
The external counterparty's type: a platform-global type or one of the caller's tenant. Another tenant's type, or an unknown one, is refused with 404. Only with counterparty.- Returns:
- counterpartyTypeId
-
setCounterpartyTypeId
-
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 ExchangeEndpointRequest
-
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 ExchangeEndpointRequest
-
fromJson
Create an instance of ExchangeEndpointRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExchangeEndpointRequest
- Throws:
IOException- if the JSON string is invalid with respect to ExchangeEndpointRequest
-
toJson
Convert an instance of ExchangeEndpointRequest to an JSON string- Returns:
- JSON string
-