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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumCatalog scope. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) description(String description) displayName(String displayName) booleanstatic CounterpartyTypeResponseCreate an instance of CounterpartyTypeResponse given an JSON stringgetCode()Machine-readable identifier.Row creation timestamp (UTC).Optional long-form description.Human-readable label.getId()Catalog row id.getScope()Catalog scope.The wire value ofscope: what the server sent, verbatim.Owning tenant id. null for platform-global rows.Row last-modified timestamp (UTC).inthashCode()voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetDescription(String description) voidsetDisplayName(String displayName) voidvoidvoidsetTenantId(UUID tenantId) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of CounterpartyTypeResponse to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) 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_CODE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DISPLAY_NAME
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
SERIALIZED_NAME_TENANT_ID
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CounterpartyTypeResponse
public CounterpartyTypeResponse()
-
-
Method Details
-
getScopeAsString
The wire value ofscope: 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()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
code
-
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
-
createdAt
-
getCreatedAt
Row creation timestamp (UTC).- Returns:
- createdAt
-
setCreatedAt
-
description
-
getDescription
Optional long-form description.- Returns:
- description
-
setDescription
-
displayName
-
getDisplayName
Human-readable label.- Returns:
- displayName
-
setDisplayName
-
id
-
getId
Catalog row id.- Returns:
- id
-
setId
-
scope
-
getScope
Catalog scope. PLATFORM = platform-global (managed by platform admin); TENANT = tenant-local (managed by this tenant).- Returns:
- scope
-
setScope
-
tenantId
-
getTenantId
Owning tenant id. null for platform-global rows.- Returns:
- tenantId
-
setTenantId
-
updatedAt
-
getUpdatedAt
Row last-modified timestamp (UTC).- Returns:
- updatedAt
-
setUpdatedAt
-
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 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 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 CounterpartyTypeResponse
-
fromJson
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
Convert an instance of CounterpartyTypeResponse to an JSON string- Returns:
- JSON string
-