Class ExchangeActivationPreviewResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ExchangeActivationPreviewResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExchangeActivationPreviewResponse
extends Object
What activating, resuming or inspecting this Exchange would confer, one plan per live grant it owns. Writes nothing. version is the optimistic-lock discriminator the subsequent write must echo.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe Exchange's current lifecycle statusstatic enumWhich operation this preview is about -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGrantsItem(ExchangeGrantConferral grantsItem) booleanexchangeId(UUID exchangeId) exchangeStatus(ExchangeActivationPreviewResponse.ExchangeStatusEnum exchangeStatus) Create an instance of ExchangeActivationPreviewResponse given an JSON stringThe Exchange this preview describesThe Exchange's current lifecycle statusThe wire value ofexchangeStatus: what the server sent, verbatim.One plan per live grant the Exchange owns, each with the refusal the write would return for that grant, if anygetMode()Which operation this preview is aboutThe wire value ofmode: what the server sent, verbatim.The problem document the activation would return for the Exchange as a whole — it owns no live grant — or null.Optimistic-lock discriminator to echo on the activate or resume callgrants(List<ExchangeGrantConferral> grants) inthashCode()refusal(ProblemDetails refusal) voidsetExchangeId(UUID exchangeId) voidvoidsetGrants(List<ExchangeGrantConferral> grants) voidvoidsetRefusal(ProblemDetails refusal) voidsetVersion(Integer version) toJson()Convert an instance of ExchangeActivationPreviewResponse 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_EXCHANGE_ID
- See Also:
-
SERIALIZED_NAME_EXCHANGE_STATUS
- See Also:
-
SERIALIZED_NAME_GRANTS
- See Also:
-
SERIALIZED_NAME_MODE
- See Also:
-
SERIALIZED_NAME_REFUSAL
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExchangeActivationPreviewResponse
public ExchangeActivationPreviewResponse()
-
-
Method Details
-
getExchangeStatusAsString
The wire value ofexchangeStatus: 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
getExchangeStatus()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
-
getModeAsString
The wire value ofmode: 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
getMode()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
-
exchangeId
-
getExchangeId
The Exchange this preview describes- Returns:
- exchangeId
-
setExchangeId
-
exchangeStatus
public ExchangeActivationPreviewResponse exchangeStatus(@Nullable ExchangeActivationPreviewResponse.ExchangeStatusEnum exchangeStatus) -
getExchangeStatus
The Exchange's current lifecycle status- Returns:
- exchangeStatus
-
setExchangeStatus
public void setExchangeStatus(@Nullable ExchangeActivationPreviewResponse.ExchangeStatusEnum exchangeStatus) -
grants
-
addGrantsItem
-
getGrants
One plan per live grant the Exchange owns, each with the refusal the write would return for that grant, if any- Returns:
- grants
-
setGrants
-
mode
public ExchangeActivationPreviewResponse mode(@Nullable ExchangeActivationPreviewResponse.ModeEnum mode) -
getMode
Which operation this preview is about- Returns:
- mode
-
setMode
-
refusal
-
getRefusal
The problem document the activation would return for the Exchange as a whole — it owns no live grant — or null. Branch on its type URI.- Returns:
- refusal
-
setRefusal
-
version
-
getVersion
Optimistic-lock discriminator to echo on the activate or resume call- Returns:
- version
-
setVersion
-
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 ExchangeActivationPreviewResponse
-
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 ExchangeActivationPreviewResponse
-
fromJson
Create an instance of ExchangeActivationPreviewResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExchangeActivationPreviewResponse
- Throws:
IOException- if the JSON string is invalid with respect to ExchangeActivationPreviewResponse
-
toJson
Convert an instance of ExchangeActivationPreviewResponse to an JSON string- Returns:
- JSON string
-