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.
  • Field Details

  • Constructor Details

    • ConferralPlanResponse

      public ConferralPlanResponse()
  • Method Details

    • capability

      public ConferralPlanResponse capability(@Nullable String capability)
    • getCapability

      @Nullable public String getCapability()
      The capability this plan is about. Null when the plan describes a grant carrying more than one capability.
      Returns:
      capability
    • setCapability

      public void setCapability(@Nullable String capability)
    • grant

      public ConferralPlanResponse grant(@Nullable GrantDraft grant)
    • getGrant

      @Nullable public GrantDraft getGrant()
      The grant this conferral would create or restore
      Returns:
      grant
    • setGrant

      public void setGrant(@Nullable GrantDraft grant)
    • operationPermissions

      public ConferralPlanResponse operationPermissions(@Nullable OperationPermissionPlan operationPermissions)
    • getOperationPermissions

      @Nullable public OperationPermissionPlan getOperationPermissions()
      The scope arithmetic. Null when the conferral was refused before any arithmetic ran.
      Returns:
      operationPermissions
    • setOperationPermissions

      public void setOperationPermissions(@Nullable OperationPermissionPlan operationPermissions)
    • refusal

      public ConferralPlanResponse refusal(@Nullable ProblemDetails refusal)
    • getRefusal

      @Nullable public ProblemDetails 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

      public void setRefusal(@Nullable ProblemDetails refusal)
    • 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 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 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 ConferralPlanResponse
    • fromJson

      public static ConferralPlanResponse fromJson(String jsonString) throws IOException
      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

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