Class CounterpartyTypeResponse

java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.CounterpartyTypeResponse

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class CounterpartyTypeResponse extends Object
Counterparty type catalog entry as seen by the caller. The scope field disambiguates platform-global vs tenant-local rows.
  • Field Details

  • Constructor Details

    • CounterpartyTypeResponse

      public CounterpartyTypeResponse()
  • Method Details

    • getScopeAsString

      public String getScopeAsString()
      The wire value of scope: 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 getScope() reads UNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel.
      • For an absent member, null.
      Returns:
      the wire value, or null when the member is absent
    • code

      public CounterpartyTypeResponse code(@Nullable String code)
    • getCode

      @Nullable public String getCode()
      Machine-readable identifier. Unique within its scope (platform-global, or one tenant) and never shared between the platform-global scope and a tenant. IMMUTABLE post-creation.
      Returns:
      code
    • setCode

      public void setCode(@Nullable String code)
    • createdAt

      public CounterpartyTypeResponse createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Row creation timestamp (UTC).
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • description

      public CounterpartyTypeResponse description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Optional long-form description.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • displayName

      public CounterpartyTypeResponse displayName(@Nullable String displayName)
    • getDisplayName

      @Nullable public String getDisplayName()
      Human-readable label.
      Returns:
      displayName
    • setDisplayName

      public void setDisplayName(@Nullable String displayName)
    • id

      public CounterpartyTypeResponse id(@Nullable UUID id)
    • getId

      @Nullable public UUID getId()
      Catalog row id.
      Returns:
      id
    • setId

      public void setId(@Nullable UUID id)
    • scope

    • getScope

      @Nullable public CounterpartyTypeResponse.ScopeEnum getScope()
      Catalog scope. PLATFORM = platform-global (managed by platform admin); TENANT = tenant-local (managed by this tenant).
      Returns:
      scope
    • setScope

      public void setScope(@Nullable CounterpartyTypeResponse.ScopeEnum scope)
    • tenantId

      public CounterpartyTypeResponse tenantId(@Nullable UUID tenantId)
    • getTenantId

      @Nullable public UUID getTenantId()
      Owning tenant id. null for platform-global rows.
      Returns:
      tenantId
    • setTenantId

      public void setTenantId(@Nullable UUID tenantId)
    • updatedAt

      public CounterpartyTypeResponse updatedAt(@Nullable OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Row last-modified timestamp (UTC).
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nullable OffsetDateTime updatedAt)
    • 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 CounterpartyTypeResponse
    • 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 CounterpartyTypeResponse
    • fromJson

      public static CounterpartyTypeResponse fromJson(String jsonString) throws IOException
      Create an instance of CounterpartyTypeResponse given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CounterpartyTypeResponse
      Throws:
      IOException - if the JSON string is invalid with respect to CounterpartyTypeResponse
    • toJson

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