Class ConferralPlanResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ConferralPlanResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ConferralPlanResponse
extends Object
What a conferral would do and whether it may happen. refusal is the problem document the corresponding write would return, with the same type URI, and is null when the conferral is admitted. Nothing here is written.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncapability(String capability) booleanstatic ConferralPlanResponseCreate an instance of ConferralPlanResponse given an JSON stringThe capability this plan is about.getGrant()The grant this conferral would create or restoreThe scope arithmetic.The problem document the write would return, or null when admitted.grant(GrantDraft grant) inthashCode()operationPermissions(OperationPermissionPlan operationPermissions) refusal(ProblemDetails refusal) voidsetCapability(String capability) voidsetGrant(GrantDraft grant) voidsetOperationPermissions(OperationPermissionPlan operationPermissions) voidsetRefusal(ProblemDetails refusal) toJson()Convert an instance of ConferralPlanResponse 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_CAPABILITY
- See Also:
-
SERIALIZED_NAME_GRANT
- See Also:
-
SERIALIZED_NAME_OPERATION_PERMISSIONS
- See Also:
-
SERIALIZED_NAME_REFUSAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ConferralPlanResponse
public ConferralPlanResponse()
-
-
Method Details
-
capability
-
getCapability
The capability this plan is about. Null when the plan describes a grant carrying more than one capability.- Returns:
- capability
-
setCapability
-
grant
-
getGrant
The grant this conferral would create or restore- Returns:
- grant
-
setGrant
-
operationPermissions
public ConferralPlanResponse operationPermissions(@Nullable OperationPermissionPlan operationPermissions) -
getOperationPermissions
The scope arithmetic. Null when the conferral was refused before any arithmetic ran.- Returns:
- operationPermissions
-
setOperationPermissions
-
refusal
-
getRefusal
The problem document the write would return, or null when admitted. Branch on its type URI, never on its detail text.- Returns:
- refusal
-
setRefusal
-
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 ConferralPlanResponse
-
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 ConferralPlanResponse
-
fromJson
Create an instance of ConferralPlanResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ConferralPlanResponse
- Throws:
IOException- if the JSON string is invalid with respect to ConferralPlanResponse
-
toJson
Convert an instance of ConferralPlanResponse to an JSON string- Returns:
- JSON string
-