Class ExchangeCreateRequest
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ExchangeCreateRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExchangeCreateRequest
extends Object
Create a Cryptographic Exchange in DRAFT status
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) applicationId(UUID applicationId) businessPurpose(String businessPurpose) constraintPolicyId(UUID constraintPolicyId) effectiveFrom(OffsetDateTime effectiveFrom) effectiveUntil(OffsetDateTime effectiveUntil) booleanexchangeContextId(UUID exchangeContextId) static ExchangeCreateRequestCreate an instance of ExchangeCreateRequest given an JSON stringCryptographic Actor that will execute the operation (optional at DRAFT)Application this Exchange operates within (optional at DRAFT)Asset identified by stable KID (optional at DRAFT)Free-text business purposeConstraint Policy with the usage restrictions (optional at DRAFT)Validity window start, inclusive: an RFC 3339 instant WITH an offset (Z or +hh:mm).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.Exchange Context that scopes the relationship (optional at DRAFT)getName()Display name; unique uniqueness is NOT enforced — admin disciplinegetNotes()Free-text operator notesOwner principal; defaults to the caller's principal id when omittedgetTags()Free-form tags (string array)inthashCode()ownerPrincipalId(UUID ownerPrincipalId) voidsetActorId(UUID actorId) voidsetApplicationId(UUID applicationId) voidsetAssetKid(String assetKid) voidsetBusinessPurpose(String businessPurpose) voidsetConstraintPolicyId(UUID constraintPolicyId) voidsetEffectiveFrom(OffsetDateTime effectiveFrom) voidsetEffectiveUntil(OffsetDateTime effectiveUntil) voidsetExchangeContextId(UUID exchangeContextId) voidvoidvoidsetOwnerPrincipalId(UUID ownerPrincipalId) voidtoJson()Convert an instance of ExchangeCreateRequest to an JSON stringtoString()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_ACTOR_ID
- See Also:
-
SERIALIZED_NAME_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_ASSET_KID
- See Also:
-
SERIALIZED_NAME_BUSINESS_PURPOSE
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_ID
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_FROM
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_UNTIL
- See Also:
-
SERIALIZED_NAME_EXCHANGE_CONTEXT_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NOTES
- See Also:
-
SERIALIZED_NAME_OWNER_PRINCIPAL_ID
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExchangeCreateRequest
public ExchangeCreateRequest()
-
-
Method Details
-
actorId
-
getActorId
Cryptographic Actor that will execute the operation (optional at DRAFT)- Returns:
- actorId
-
setActorId
-
applicationId
-
getApplicationId
Application this Exchange operates within (optional at DRAFT)- Returns:
- applicationId
-
setApplicationId
-
assetKid
-
getAssetKid
Asset identified by stable KID (optional at DRAFT)- Returns:
- assetKid
-
setAssetKid
-
businessPurpose
-
getBusinessPurpose
Free-text business purpose- Returns:
- businessPurpose
-
setBusinessPurpose
-
constraintPolicyId
-
getConstraintPolicyId
Constraint Policy with the usage restrictions (optional at DRAFT)- Returns:
- constraintPolicyId
-
setConstraintPolicyId
-
effectiveFrom
-
getEffectiveFrom
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
-
effectiveUntil
-
getEffectiveUntil
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
-
exchangeContextId
-
getExchangeContextId
Exchange Context that scopes the relationship (optional at DRAFT)- Returns:
- exchangeContextId
-
setExchangeContextId
-
name
-
getName
Display name; unique uniqueness is NOT enforced — admin discipline- Returns:
- name
-
setName
-
notes
-
getNotes
Free-text operator notes- Returns:
- notes
-
setNotes
-
ownerPrincipalId
-
getOwnerPrincipalId
Owner principal; defaults to the caller's principal id when omitted- Returns:
- ownerPrincipalId
-
setOwnerPrincipalId
-
tags
-
addTagsItem
-
getTags
Free-form tags (string array)- Returns:
- tags
-
setTags
-
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 ExchangeCreateRequest
-
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 ExchangeCreateRequest
-
fromJson
Create an instance of ExchangeCreateRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExchangeCreateRequest
- Throws:
IOException- if the JSON string is invalid with respect to ExchangeCreateRequest
-
toJson
Convert an instance of ExchangeCreateRequest to an JSON string- Returns:
- JSON string
-