Package ai.shipeasy.admin.model
Class RevokeKeyResponse
java.lang.Object
ai.shipeasy.admin.model.RevokeKeyResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class RevokeKeyResponse
extends Object
Confirms the key is revoked. Idempotent — revoking an already-revoked key returns the same shape.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RevokeKeyResponseCreate an instance of RevokeKeyResponse given an JSON stringgetId()Id of the key that was revoked.Get revokedinthashCode()voidvoidsetRevoked(Boolean revoked) toJson()Convert an instance of RevokeKeyResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_REVOKED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RevokeKeyResponse
public RevokeKeyResponse()
-
-
Method Details
-
id
-
getId
Id of the key that was revoked.- Returns:
- id
-
setId
-
revoked
-
getRevoked
Get revoked- Returns:
- revoked
-
setRevoked
-
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 RevokeKeyResponse
-
fromJson
Create an instance of RevokeKeyResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RevokeKeyResponse
- Throws:
IOException- if the JSON string is invalid with respect to RevokeKeyResponse
-
toJson
Convert an instance of RevokeKeyResponse to an JSON string- Returns:
- JSON string
-