Class ExchangeUpdateRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ExchangeUpdateRequest extends Object
PATCH-style update for DRAFT or READY Exchange. References mutated on READY demote to DRAFT.
  • Field Details

  • Constructor Details

    • ExchangeUpdateRequest

      public ExchangeUpdateRequest()
  • Method Details

    • actorId

      public ExchangeUpdateRequest actorId(@Nullable UUID actorId)
    • getActorId

      @Nullable public UUID getActorId()
      Actor reference (optional). Mutating on READY demotes to DRAFT.
      Returns:
      actorId
    • setActorId

      public void setActorId(@Nullable UUID actorId)
    • applicationId

      public ExchangeUpdateRequest applicationId(@Nullable UUID applicationId)
    • getApplicationId

      @Nullable public UUID getApplicationId()
      Application reference (optional). Mutating on READY demotes to DRAFT.
      Returns:
      applicationId
    • setApplicationId

      public void setApplicationId(@Nullable UUID applicationId)
    • assetKid

      public ExchangeUpdateRequest assetKid(@Nullable String assetKid)
    • getAssetKid

      @Nullable public String getAssetKid()
      Asset KID (optional). Mutating on READY demotes to DRAFT.
      Returns:
      assetKid
    • setAssetKid

      public void setAssetKid(@Nullable String assetKid)
    • businessPurpose

      public ExchangeUpdateRequest businessPurpose(@Nullable String businessPurpose)
    • getBusinessPurpose

      @Nullable public String getBusinessPurpose()
      Business purpose (optional)
      Returns:
      businessPurpose
    • setBusinessPurpose

      public void setBusinessPurpose(@Nullable String businessPurpose)
    • constraintPolicyId

      public ExchangeUpdateRequest constraintPolicyId(@Nullable UUID constraintPolicyId)
    • getConstraintPolicyId

      @Nullable public UUID getConstraintPolicyId()
      Constraint Policy (optional). Mutating on READY demotes to DRAFT.
      Returns:
      constraintPolicyId
    • setConstraintPolicyId

      public void setConstraintPolicyId(@Nullable UUID constraintPolicyId)
    • effectiveFrom

      public ExchangeUpdateRequest effectiveFrom(@Nullable OffsetDateTime effectiveFrom)
    • getEffectiveFrom

      @Nullable public OffsetDateTime getEffectiveFrom()
      Optional. Validity window start, inclusive: an RFC 3339 instant WITH an offset (Z or +hh:mm). A value without an offset is refused with 400 naming the member. Stored and returned in UTC; the cryptographic service refuses the Exchange's grant before this instant.
      Returns:
      effectiveFrom
    • setEffectiveFrom

      public void setEffectiveFrom(@Nullable OffsetDateTime effectiveFrom)
    • effectiveUntil

      public ExchangeUpdateRequest effectiveUntil(@Nullable OffsetDateTime effectiveUntil)
    • getEffectiveUntil

      @Nullable public OffsetDateTime getEffectiveUntil()
      Optional. Validity window end, exclusive — must be after effectiveFrom when both are set: an RFC 3339 instant WITH an offset; a value without one is refused with 400 naming the member. Stored and returned in UTC; the cryptographic service refuses the Exchange's grant from this instant on, whether or not the expiry job has yet moved the Exchange to EXPIRED.
      Returns:
      effectiveUntil
    • setEffectiveUntil

      public void setEffectiveUntil(@Nullable OffsetDateTime effectiveUntil)
    • exchangeContextId

      public ExchangeUpdateRequest exchangeContextId(@Nullable UUID exchangeContextId)
    • getExchangeContextId

      @Nullable public UUID getExchangeContextId()
      Exchange Context (optional). Mutating on READY demotes to DRAFT.
      Returns:
      exchangeContextId
    • setExchangeContextId

      public void setExchangeContextId(@Nullable UUID exchangeContextId)
    • name

      public ExchangeUpdateRequest name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Display name (optional)
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • notes

      public ExchangeUpdateRequest notes(@Nullable String notes)
    • getNotes

      @Nullable public String getNotes()
      Notes (optional)
      Returns:
      notes
    • setNotes

      public void setNotes(@Nullable String notes)
    • ownerPrincipalId

      public ExchangeUpdateRequest ownerPrincipalId(@Nullable UUID ownerPrincipalId)
    • getOwnerPrincipalId

      @Nullable public UUID getOwnerPrincipalId()
      Owner principal (optional)
      Returns:
      ownerPrincipalId
    • setOwnerPrincipalId

      public void setOwnerPrincipalId(@Nullable UUID ownerPrincipalId)
    • tags

      public ExchangeUpdateRequest tags(@Nullable List<String> tags)
    • addTagsItem

      public ExchangeUpdateRequest addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      Tags (optional, replaces existing list when provided)
      Returns:
      tags
    • setTags

      public void setTags(@Nullable List<String> tags)
    • version

      public ExchangeUpdateRequest version(@Nonnull Integer version)
    • getVersion

      @Nonnull public Integer getVersion()
      Optimistic-lock version of the Exchange
      Returns:
      version
    • setVersion

      public void setVersion(@Nonnull Integer version)
    • 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 ExchangeUpdateRequest
    • 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 ExchangeUpdateRequest
    • fromJson

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

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