Class ExchangeEndpoint
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ExchangeEndpoint
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExchangeEndpoint
extends Object
One endpoint of a Cryptographic Exchange: an application of the tenant (applicationId, applicationName) or an external counterparty (counterparty, with counterpartyTypeId and counterpartyTypeCode when it has a type). Members that do not apply are absent.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId(UUID applicationId) applicationName(String applicationName) counterparty(String counterparty) counterpartyTypeCode(String counterpartyTypeCode) counterpartyTypeId(UUID counterpartyTypeId) booleanstatic ExchangeEndpointCreate an instance of ExchangeEndpoint given an JSON stringThe application of the tenant; absent for an external endpointThe application's nameThe external counterparty's label; absent for an internal endpointThe external counterparty type's codeThe external counterparty's typeinthashCode()voidsetApplicationId(UUID applicationId) voidsetApplicationName(String applicationName) voidsetCounterparty(String counterparty) voidsetCounterpartyTypeCode(String counterpartyTypeCode) voidsetCounterpartyTypeId(UUID counterpartyTypeId) toJson()Convert an instance of ExchangeEndpoint 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_APPLICATION_NAME
- See Also:
-
SERIALIZED_NAME_COUNTERPARTY
- See Also:
-
SERIALIZED_NAME_COUNTERPARTY_TYPE_CODE
- See Also:
-
SERIALIZED_NAME_COUNTERPARTY_TYPE_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExchangeEndpoint
public ExchangeEndpoint()
-
-
Method Details
-
applicationId
-
getApplicationId
The application of the tenant; absent for an external endpoint- Returns:
- applicationId
-
setApplicationId
-
applicationName
-
getApplicationName
The application's name- Returns:
- applicationName
-
setApplicationName
-
counterparty
-
getCounterparty
The external counterparty's label; absent for an internal endpoint- Returns:
- counterparty
-
setCounterparty
-
counterpartyTypeCode
-
getCounterpartyTypeCode
The external counterparty type's code- Returns:
- counterpartyTypeCode
-
setCounterpartyTypeCode
-
counterpartyTypeId
-
getCounterpartyTypeId
The external counterparty's type- 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 ExchangeEndpoint
-
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 ExchangeEndpoint
-
fromJson
Create an instance of ExchangeEndpoint given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExchangeEndpoint
- Throws:
IOException- if the JSON string is invalid with respect to ExchangeEndpoint
-
toJson
Convert an instance of ExchangeEndpoint to an JSON string- Returns:
- JSON string
-