Class ExternalKeyValidateResponse
-
- All Implemented Interfaces:
public final class ExternalKeyValidateResponseResult of a validation roundtrip against the customer's KMS.
HTTP 200 for both outcomes — the operation completed;
statussays whether the key works.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classExternalKeyValidateResponse.BuilderA builder for ExternalKeyValidateResponse.
public final classExternalKeyValidateResponse.Statussuccess— encrypt/decrypt roundtrip succeeded.failure— the roundtrip failed or timed out; seeerror.
-
Method Summary
Modifier and Type Method Description final Optional<String>error()Error message when status is failure.final ExternalKeyValidateResponse.Statusstatus()success— encrypt/decrypt roundtrip succeeded.final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("external_key_validation")final JsonField<String>_error()Returns the raw JSON value of error. final JsonField<ExternalKeyValidateResponse.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final ExternalKeyValidateResponse.BuildertoBuilder()final ExternalKeyValidateResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ExternalKeyValidateResponse.Builderbuilder()Returns a mutable builder for constructing an instance of ExternalKeyValidateResponse. -
-
Method Detail
-
status
final ExternalKeyValidateResponse.Status status()
success— encrypt/decrypt roundtrip succeeded.failure— the roundtrip failed or timed out; seeerror.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("external_key_validation")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_error
final JsonField<String> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ExternalKeyValidateResponse.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ExternalKeyValidateResponse.Builder toBuilder()
-
validate
final ExternalKeyValidateResponse validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ExternalKeyValidateResponse.Builder builder()
Returns a mutable builder for constructing an instance of ExternalKeyValidateResponse.
The following fields are required:
.error() .status()
-
-
-
-