Class ApplicationResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ApplicationResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ApplicationResponse
extends Object
An application registered under a tenant: identity, lifecycle, business identity, ownership, risk classification and metadata, as stored. Every member is present in the body, a value never entered being null; `defaultActorId` is present on the create response only.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumSensitivity of the data the application handles.static enumEnvironment classification.static enumKind of principal; always `APPLICATION` on this record.static enumOperational risk level.static enumLifecycle status of the application: `ACTIVE`, `SUSPENDED` (temporarily not admitted to cryptographic operations) or `DISABLED`. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRegulatoryScopeItem(String regulatoryScopeItem) addRolesItem(String rolesItem) businessUnit(String businessUnit) costCenter(String costCenter) createdAt(OffsetDateTime createdAt) dataClassification(ApplicationResponse.DataClassificationEnum dataClassification) defaultActorId(UUID defaultActorId) description(String description) displayName(String displayName) environment(ApplicationResponse.EnvironmentEnum environment) booleanexternalRefs(Map<String, Object> externalRefs) static ApplicationResponseCreate an instance of ApplicationResponse given an JSON stringOrganizational unit responsible for the application; null when none was entered.Cost center for chargeback; null when none was entered.When the application was created.Sensitivity of the data the application handles.The wire value ofdataClassification: what the server sent, verbatim.UUID of the default Cryptographic Actor created in the same transaction as the application, the Actor a first credential is issued for.Purpose and scope of the application; null when none was entered.Business-domain name.Environment classification.The wire value ofenvironment: what the server sent, verbatim.References to external systems such as a CMDB or an issue tracker; empty when none were entered.getId()UUID of the application.Client identifier of the application, equal to `id`.getName()Service-identity slug, unique among the tenant's live applications compared case-insensitively.Business owner's e-mail address; null when none was entered.Business owner of the application; null when none was entered.Kind of principal; always `APPLICATION` on this record.The wire value ofprincipalType: what the server sent, verbatim.Regulations that apply to the application; empty when none was entered.Operational risk level.The wire value ofriskLevel: what the server sent, verbatim.getRoles()Always empty: an application's authority lives on its Cryptographic Actors.Lifecycle status of the application: `ACTIVE`, `SUSPENDED` (temporarily not admitted to cryptographic operations) or `DISABLED`.The wire value ofstatus: what the server sent, verbatim.getTags()Free-form tags; empty when none were entered.Technical contact's e-mail address; null when none was entered.Technical contact for the application; null when none was entered.UUID of the tenant that owns the application.When the application was last updated.inthashCode()ownerEmail(String ownerEmail) principalType(ApplicationResponse.PrincipalTypeEnum principalType) putExternalRefsItem(String key, Object externalRefsItem) putTagsItem(String key, Object tagsItem) regulatoryScope(List<String> regulatoryScope) riskLevel(ApplicationResponse.RiskLevelEnum riskLevel) voidsetBusinessUnit(String businessUnit) voidsetCostCenter(String costCenter) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDataClassification(ApplicationResponse.DataClassificationEnum dataClassification) voidsetDefaultActorId(UUID defaultActorId) voidsetDescription(String description) voidsetDisplayName(String displayName) voidsetEnvironment(ApplicationResponse.EnvironmentEnum environment) voidsetExternalRefs(Map<String, Object> externalRefs) voidvoidsetLoginId(String loginId) voidvoidsetOwnerEmail(String ownerEmail) voidsetOwnerName(String ownerName) voidsetPrincipalType(ApplicationResponse.PrincipalTypeEnum principalType) voidsetRegulatoryScope(List<String> regulatoryScope) voidsetRiskLevel(ApplicationResponse.RiskLevelEnum riskLevel) voidvoidvoidvoidsetTechnicalContactEmail(String technicalContactEmail) voidsetTechnicalContactName(String technicalContactName) voidsetTenantId(String tenantId) voidsetUpdatedAt(OffsetDateTime updatedAt) status(ApplicationResponse.StatusEnum status) technicalContactEmail(String technicalContactEmail) technicalContactName(String technicalContactName) toJson()Convert an instance of ApplicationResponse 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_BUSINESS_UNIT
- See Also:
-
SERIALIZED_NAME_COST_CENTER
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DATA_CLASSIFICATION
- See Also:
-
SERIALIZED_NAME_DEFAULT_ACTOR_ID
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DISPLAY_NAME
- See Also:
-
SERIALIZED_NAME_ENVIRONMENT
- See Also:
-
SERIALIZED_NAME_EXTERNAL_REFS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_LOGIN_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OWNER_EMAIL
- See Also:
-
SERIALIZED_NAME_OWNER_NAME
- See Also:
-
SERIALIZED_NAME_PRINCIPAL_TYPE
- See Also:
-
SERIALIZED_NAME_REGULATORY_SCOPE
- See Also:
-
SERIALIZED_NAME_RISK_LEVEL
- See Also:
-
SERIALIZED_NAME_ROLES
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
SERIALIZED_NAME_TECHNICAL_CONTACT_EMAIL
- See Also:
-
SERIALIZED_NAME_TECHNICAL_CONTACT_NAME
- See Also:
-
SERIALIZED_NAME_TENANT_ID
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ApplicationResponse
public ApplicationResponse()
-
-
Method Details
-
getDataClassificationAsString
The wire value ofdataClassification: 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
getDataClassification()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
-
getEnvironmentAsString
The wire value ofenvironment: 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
getEnvironment()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
-
getPrincipalTypeAsString
The wire value ofprincipalType: 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
getPrincipalType()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
-
getRiskLevelAsString
The wire value ofriskLevel: 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
getRiskLevel()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
-
getStatusAsString
The wire value ofstatus: 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
getStatus()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
-
businessUnit
-
getBusinessUnit
Organizational unit responsible for the application; null when none was entered.- Returns:
- businessUnit
-
setBusinessUnit
-
costCenter
-
getCostCenter
Cost center for chargeback; null when none was entered.- Returns:
- costCenter
-
setCostCenter
-
createdAt
-
getCreatedAt
When the application was created.- Returns:
- createdAt
-
setCreatedAt
-
dataClassification
public ApplicationResponse dataClassification(@Nullable ApplicationResponse.DataClassificationEnum dataClassification) -
getDataClassification
Sensitivity of the data the application handles. Never null: present on every application record this server returns.- Returns:
- dataClassification
-
setDataClassification
public void setDataClassification(@Nullable ApplicationResponse.DataClassificationEnum dataClassification) -
defaultActorId
-
getDefaultActorId
UUID of the default Cryptographic Actor created in the same transaction as the application, the Actor a first credential is issued for. Present on the `createApplication` response only; absent from every other application response.- Returns:
- defaultActorId
-
setDefaultActorId
-
description
-
getDescription
Purpose and scope of the application; null when none was entered.- Returns:
- description
-
setDescription
-
displayName
-
getDisplayName
Business-domain name. Equal to `name` when none was entered.- Returns:
- displayName
-
setDisplayName
-
environment
-
getEnvironment
Environment classification. Never null: every application record carries it, `PRODUCTION` when none was entered at creation.- Returns:
- environment
-
setEnvironment
-
externalRefs
-
putExternalRefsItem
-
getExternalRefs
References to external systems such as a CMDB or an issue tracker; empty when none were entered.- Returns:
- externalRefs
-
setExternalRefs
-
id
-
getId
UUID of the application.- Returns:
- id
-
setId
-
loginId
-
getLoginId
Client identifier of the application, equal to `id`.- Returns:
- loginId
-
setLoginId
-
name
-
getName
Service-identity slug, unique among the tenant's live applications compared case-insensitively.- Returns:
- name
-
setName
-
ownerEmail
-
getOwnerEmail
Business owner's e-mail address; null when none was entered.- Returns:
- ownerEmail
-
setOwnerEmail
-
ownerName
-
getOwnerName
Business owner of the application; null when none was entered.- Returns:
- ownerName
-
setOwnerName
-
principalType
public ApplicationResponse principalType(@Nonnull ApplicationResponse.PrincipalTypeEnum principalType) -
getPrincipalType
Kind of principal; always `APPLICATION` on this record.- Returns:
- principalType
-
setPrincipalType
-
regulatoryScope
-
addRegulatoryScopeItem
-
getRegulatoryScope
Regulations that apply to the application; empty when none was entered.- Returns:
- regulatoryScope
-
setRegulatoryScope
-
riskLevel
-
getRiskLevel
Operational risk level. Never null: present on every application record this server returns.- Returns:
- riskLevel
-
setRiskLevel
-
roles
-
addRolesItem
-
getRoles
Always empty: an application's authority lives on its Cryptographic Actors.- Returns:
- roles
-
setRoles
-
status
-
getStatus
Lifecycle status of the application: `ACTIVE`, `SUSPENDED` (temporarily not admitted to cryptographic operations) or `DISABLED`.- Returns:
- status
-
setStatus
-
tags
-
putTagsItem
-
getTags
Free-form tags; empty when none were entered.- Returns:
- tags
-
setTags
-
technicalContactEmail
-
getTechnicalContactEmail
Technical contact's e-mail address; null when none was entered.- Returns:
- technicalContactEmail
-
setTechnicalContactEmail
-
technicalContactName
-
getTechnicalContactName
Technical contact for the application; null when none was entered.- Returns:
- technicalContactName
-
setTechnicalContactName
-
tenantId
-
getTenantId
UUID of the tenant that owns the application.- Returns:
- tenantId
-
setTenantId
-
updatedAt
-
getUpdatedAt
When the application was last updated.- 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 ApplicationResponse
-
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 ApplicationResponse
-
fromJson
Create an instance of ApplicationResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApplicationResponse
- Throws:
IOException- if the JSON string is invalid with respect to ApplicationResponse
-
toJson
Convert an instance of ApplicationResponse to an JSON string- Returns:
- JSON string
-