Class RetrievalInstructionFailureReason
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RetrievalInstructionFailureReason.Builder,RetrievalInstructionFailureReason>
One reason the most recent create or update did not succeed. code drives programmatic branching (fix the text, fix the configuration, or retry); message carries the specific cause.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()code()Stable, machine-readable classification by fault attribution.final StringStable, machine-readable classification by fault attribution.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.The instruction field this entry is about.final StringThe instruction field this entry is about.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringmessage()Human-readable explanation of the specific cause.static Class<? extends RetrievalInstructionFailureReason.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
fieldName
The instruction field this entry is about. Present on review rejections of a specific field; absent when the failure applies to the whole review, because a client-side execution failure or a service fault has no single field.
If the service returns an enum value that is not available in the current SDK version,
fieldNamewill returnRetrievalInstructionFieldName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfieldNameAsString().- Returns:
- The instruction field this entry is about. Present on review rejections of a specific field; absent when the failure applies to the whole review, because a client-side execution failure or a service fault has no single field.
- See Also:
-
fieldNameAsString
The instruction field this entry is about. Present on review rejections of a specific field; absent when the failure applies to the whole review, because a client-side execution failure or a service fault has no single field.
If the service returns an enum value that is not available in the current SDK version,
fieldNamewill returnRetrievalInstructionFieldName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfieldNameAsString().- Returns:
- The instruction field this entry is about. Present on review rejections of a specific field; absent when the failure applies to the whole review, because a client-side execution failure or a service fault has no single field.
- See Also:
-
code
Stable, machine-readable classification by fault attribution. Valid values:
-
CONTENT_REJECTED – The review rejected the named field's content; revise the text and resubmit.
-
CLIENT_ERROR – The review could not run for a customer-side reason, for example the customer managed AWS KMS key could not be used; fix the configuration and resubmit.
-
INTERNAL_ERROR – The review could not complete due to a service fault; retry the create or update.
New values may be added over time; your client should tolerate values it does not recognize and treat them as a failure.
If the service returns an enum value that is not available in the current SDK version,
codewill returnRetrievalInstructionFailureReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- Stable, machine-readable classification by fault attribution. Valid values:
-
CONTENT_REJECTED – The review rejected the named field's content; revise the text and resubmit.
-
CLIENT_ERROR – The review could not run for a customer-side reason, for example the customer managed AWS KMS key could not be used; fix the configuration and resubmit.
-
INTERNAL_ERROR – The review could not complete due to a service fault; retry the create or update.
New values may be added over time; your client should tolerate values it does not recognize and treat them as a failure.
-
- See Also:
-
-
codeAsString
Stable, machine-readable classification by fault attribution. Valid values:
-
CONTENT_REJECTED – The review rejected the named field's content; revise the text and resubmit.
-
CLIENT_ERROR – The review could not run for a customer-side reason, for example the customer managed AWS KMS key could not be used; fix the configuration and resubmit.
-
INTERNAL_ERROR – The review could not complete due to a service fault; retry the create or update.
New values may be added over time; your client should tolerate values it does not recognize and treat them as a failure.
If the service returns an enum value that is not available in the current SDK version,
codewill returnRetrievalInstructionFailureReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- Stable, machine-readable classification by fault attribution. Valid values:
-
CONTENT_REJECTED – The review rejected the named field's content; revise the text and resubmit.
-
CLIENT_ERROR – The review could not run for a customer-side reason, for example the customer managed AWS KMS key could not be used; fix the configuration and resubmit.
-
INTERNAL_ERROR – The review could not complete due to a service fault; retry the create or update.
New values may be added over time; your client should tolerate values it does not recognize and treat them as a failure.
-
- See Also:
-
-
message
Human-readable explanation of the specific cause. Never contains the customer's own text.
- Returns:
- Human-readable explanation of the specific cause. Never contains the customer's own text.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RetrievalInstructionFailureReason.Builder,RetrievalInstructionFailureReason> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-