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

  • Constructor Details

    • ExchangeEndpoint

      public ExchangeEndpoint()
  • Method Details

    • applicationId

      public ExchangeEndpoint applicationId(@Nullable UUID applicationId)
    • getApplicationId

      @Nullable public UUID getApplicationId()
      The application of the tenant; absent for an external endpoint
      Returns:
      applicationId
    • setApplicationId

      public void setApplicationId(@Nullable UUID applicationId)
    • applicationName

      public ExchangeEndpoint applicationName(@Nullable String applicationName)
    • getApplicationName

      @Nullable public String getApplicationName()
      The application's name
      Returns:
      applicationName
    • setApplicationName

      public void setApplicationName(@Nullable String applicationName)
    • counterparty

      public ExchangeEndpoint counterparty(@Nullable String counterparty)
    • getCounterparty

      @Nullable public String getCounterparty()
      The external counterparty's label; absent for an internal endpoint
      Returns:
      counterparty
    • setCounterparty

      public void setCounterparty(@Nullable String counterparty)
    • counterpartyTypeCode

      public ExchangeEndpoint counterpartyTypeCode(@Nullable String counterpartyTypeCode)
    • getCounterpartyTypeCode

      @Nullable public String getCounterpartyTypeCode()
      The external counterparty type's code
      Returns:
      counterpartyTypeCode
    • setCounterpartyTypeCode

      public void setCounterpartyTypeCode(@Nullable String counterpartyTypeCode)
    • counterpartyTypeId

      public ExchangeEndpoint counterpartyTypeId(@Nullable UUID counterpartyTypeId)
    • getCounterpartyTypeId

      @Nullable public UUID getCounterpartyTypeId()
      The external counterparty's type
      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 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 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 ExchangeEndpoint
    • fromJson

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

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