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. Writes nothing. mode decides which members are populated; 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 TypeMethodDescriptionaddCapabilitiesItem(CapabilityOffer capabilitiesItem) capabilities(List<CapabilityOffer> capabilities) booleanexchangeId(UUID exchangeId) exchangeStatus(ExchangeActivationPreviewResponse.ExchangeStatusEnum exchangeStatus) Create an instance of ExchangeActivationPreviewResponse given an JSON stringOne offer per activation capability.The Exchange this preview describesThe Exchange's current lifecycle statusThe wire value ofexchangeStatus: what the server sent, verbatim.getMode()Which operation this preview is aboutThe wire value ofmode: what the server sent, verbatim.getPlan()The conferral plan for the chosen capability, or null when no capability was named and the mode is ACTIVATE.Optimistic-lock discriminator to echo on the activate or resume callinthashCode()plan(ConferralPlanResponse plan) voidsetCapabilities(List<CapabilityOffer> capabilities) voidsetExchangeId(UUID exchangeId) voidvoidvoidsetPlan(ConferralPlanResponse plan) 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_CAPABILITIES
- See Also:
-
SERIALIZED_NAME_EXCHANGE_ID
- See Also:
-
SERIALIZED_NAME_EXCHANGE_STATUS
- See Also:
-
SERIALIZED_NAME_MODE
- See Also:
-
SERIALIZED_NAME_PLAN
- 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
-
capabilities
-
addCapabilitiesItem
-
getCapabilities
One offer per activation capability. Empty unless mode is ACTIVATE.- Returns:
- capabilities
-
setCapabilities
-
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) -
mode
public ExchangeActivationPreviewResponse mode(@Nullable ExchangeActivationPreviewResponse.ModeEnum mode) -
getMode
Which operation this preview is about- Returns:
- mode
-
setMode
-
plan
-
getPlan
The conferral plan for the chosen capability, or null when no capability was named and the mode is ACTIVATE.- Returns:
- plan
-
setPlan
-
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
-