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.
  • Field Details

  • Constructor Details

    • ExchangeEndpointRequest

      public ExchangeEndpointRequest()
  • Method Details

    • applicationId

      public ExchangeEndpointRequest applicationId(@Nullable UUID applicationId)
    • getApplicationId

      @Nullable public UUID getApplicationId()
      An application of the caller's tenant. Another tenant's application, or an unknown one, is refused with 404.
      Returns:
      applicationId
    • setApplicationId

      public void setApplicationId(@Nullable UUID applicationId)
    • counterparty

      public ExchangeEndpointRequest counterparty(@Nullable String counterparty)
    • getCounterparty

      @Nullable public String getCounterparty()
      The external counterparty's label, as the crypto audit of the Exchange's operations records it.
      Returns:
      counterparty
    • setCounterparty

      public void setCounterparty(@Nullable String counterparty)
    • counterpartyTypeId

      public ExchangeEndpointRequest counterpartyTypeId(@Nullable UUID counterpartyTypeId)
    • getCounterpartyTypeId

      @Nullable public UUID 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

      public void setCounterpartyTypeId(@Nullable UUID counterpartyTypeId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 of validateJsonElement(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

      public static ExchangeEndpointRequest fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of ExchangeEndpointRequest to an JSON string
      Returns:
      JSON string