Class OrchestrationKeyResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class OrchestrationKeyResponse extends Object
Response from key creation. Returns key identity + algorithm + lifecycle status.
  • Field Details

  • Constructor Details

    • OrchestrationKeyResponse

      public OrchestrationKeyResponse()
  • Method Details

    • algorithm

      public OrchestrationKeyResponse algorithm(@Nullable String algorithm)
    • getAlgorithm

      @Nullable public String getAlgorithm()
      Cryptographic algorithm
      Returns:
      algorithm
    • setAlgorithm

      public void setAlgorithm(@Nullable String algorithm)
    • createdAt

      public OrchestrationKeyResponse createdAt(@Nullable String createdAt)
    • getCreatedAt

      @Nullable public String getCreatedAt()
      Key creation timestamp
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable String createdAt)
    • kid

      public OrchestrationKeyResponse kid(@Nullable String kid)
    • getKid

      @Nullable public String getKid()
      Human-readable key identifier
      Returns:
      kid
    • setKid

      public void setKid(@Nullable String kid)
    • status

      public OrchestrationKeyResponse status(@Nullable String status)
    • getStatus

      @Nullable public String getStatus()
      Key status reported by the cryptographic service
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable String status)
    • uuid

      public OrchestrationKeyResponse uuid(@Nullable UUID uuid)
    • getUuid

      @Nullable public UUID getUuid()
      The created key's identity (key_aliases.id): the value a use-case asset records as keyIdentity and the audit trail as the key identity.
      Returns:
      uuid
    • setUuid

      public void setUuid(@Nullable UUID uuid)
    • 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 OrchestrationKeyResponse
    • 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 OrchestrationKeyResponse
    • fromJson

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

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