Class Warning
- java.lang.Object
-
- software.amazon.awssdk.services.kendra.model.Warning
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Warning.Builder,Warning>
@Generated("software.amazon.awssdk:codegen") public final class Warning extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Warning.Builder,Warning>
The warning code and message that explains a problem with a query.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWarning.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Warning.Builderbuilder()WarningCodecode()The code used to show the type of warning for the query.StringcodeAsString()The code used to show the type of warning for the query.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()The message that explains the problem with the query.List<SdkField<?>>sdkFields()static Class<? extends Warning.Builder>serializableBuilderClass()Warning.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
message
public final String message()
The message that explains the problem with the query.
- Returns:
- The message that explains the problem with the query.
-
code
public final WarningCode code()
The code used to show the type of warning for the query.
If the service returns an enum value that is not available in the current SDK version,
codewill returnWarningCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The code used to show the type of warning for the query.
- See Also:
WarningCode
-
codeAsString
public final String codeAsString()
The code used to show the type of warning for the query.
If the service returns an enum value that is not available in the current SDK version,
codewill returnWarningCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The code used to show the type of warning for the query.
- See Also:
WarningCode
-
toBuilder
public Warning.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Warning.Builder,Warning>
-
builder
public static Warning.Builder builder()
-
serializableBuilderClass
public static Class<? extends Warning.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-