Class GuardrailAutomatedReasoningFinding
java.lang.Object
software.amazon.awssdk.services.bedrockruntime.model.GuardrailAutomatedReasoningFinding
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<GuardrailAutomatedReasoningFinding.Builder,
GuardrailAutomatedReasoningFinding>
@Generated("software.amazon.awssdk:codegen")
public final class GuardrailAutomatedReasoningFinding
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<GuardrailAutomatedReasoningFinding.Builder,GuardrailAutomatedReasoningFinding>
Represents a logical validation result from automated reasoning policy evaluation. The finding indicates whether claims in the input are logically valid, invalid, satisfiable, impossible, or have other logical issues.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.Create an instance of this class withimpossible()
initialized to the given value.Create an instance of this class withimpossible()
initialized to the given value.Create an instance of this class withinvalid()
initialized to the given value.Create an instance of this class withinvalid()
initialized to the given value.fromNoTranslations
(Consumer<GuardrailAutomatedReasoningNoTranslationsFinding.Builder> noTranslations) Create an instance of this class withnoTranslations()
initialized to the given value.fromNoTranslations
(GuardrailAutomatedReasoningNoTranslationsFinding noTranslations) Create an instance of this class withnoTranslations()
initialized to the given value.Create an instance of this class withsatisfiable()
initialized to the given value.Create an instance of this class withsatisfiable()
initialized to the given value.Create an instance of this class withtooComplex()
initialized to the given value.Create an instance of this class withtooComplex()
initialized to the given value.fromTranslationAmbiguous
(Consumer<GuardrailAutomatedReasoningTranslationAmbiguousFinding.Builder> translationAmbiguous) Create an instance of this class withtranslationAmbiguous()
initialized to the given value.fromTranslationAmbiguous
(GuardrailAutomatedReasoningTranslationAmbiguousFinding translationAmbiguous) Create an instance of this class withtranslationAmbiguous()
initialized to the given value.Create an instance of this class withvalid()
initialized to the given value.Create an instance of this class withvalid()
initialized to the given value.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
Returns the value of the Impossible property for this object.invalid()
Returns the value of the Invalid property for this object.Returns the value of the NoTranslations property for this object.Returns the value of the Satisfiable property for this object.static Class
<? extends GuardrailAutomatedReasoningFinding.Builder> Take this object and create a builder that contains all of the current property values of this object.Returns the value of the TooComplex property for this object.final String
toString()
Returns a string representation of this object.Returns the value of the TranslationAmbiguous property for this object.type()
Retrieve an enum value representing which member of this object is populated.valid()
Returns the value of the Valid property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
valid
Returns the value of the Valid property for this object.- Returns:
- The value of the Valid property for this object.
-
invalid
Returns the value of the Invalid property for this object.- Returns:
- The value of the Invalid property for this object.
-
satisfiable
Returns the value of the Satisfiable property for this object.- Returns:
- The value of the Satisfiable property for this object.
-
impossible
Returns the value of the Impossible property for this object.- Returns:
- The value of the Impossible property for this object.
-
translationAmbiguous
Returns the value of the TranslationAmbiguous property for this object.- Returns:
- The value of the TranslationAmbiguous property for this object.
-
tooComplex
Returns the value of the TooComplex property for this object.- Returns:
- The value of the TooComplex property for this object.
-
noTranslations
Returns the value of the NoTranslations property for this object.- Returns:
- The value of the NoTranslations property for this object.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<GuardrailAutomatedReasoningFinding.Builder,
GuardrailAutomatedReasoningFinding> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends GuardrailAutomatedReasoningFinding.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
-
fromValid
public static GuardrailAutomatedReasoningFinding fromValid(GuardrailAutomatedReasoningValidFinding valid) Create an instance of this class withvalid()
initialized to the given value. Sets the value of the Valid property for this object.- Parameters:
valid
- The new value for the Valid property for this object.
-
fromValid
public static GuardrailAutomatedReasoningFinding fromValid(Consumer<GuardrailAutomatedReasoningValidFinding.Builder> valid) Create an instance of this class withvalid()
initialized to the given value. Sets the value of the Valid property for this object.- Parameters:
valid
- The new value for the Valid property for this object.
-
fromInvalid
public static GuardrailAutomatedReasoningFinding fromInvalid(GuardrailAutomatedReasoningInvalidFinding invalid) Create an instance of this class withinvalid()
initialized to the given value. Sets the value of the Invalid property for this object.- Parameters:
invalid
- The new value for the Invalid property for this object.
-
fromInvalid
public static GuardrailAutomatedReasoningFinding fromInvalid(Consumer<GuardrailAutomatedReasoningInvalidFinding.Builder> invalid) Create an instance of this class withinvalid()
initialized to the given value. Sets the value of the Invalid property for this object.- Parameters:
invalid
- The new value for the Invalid property for this object.
-
fromSatisfiable
public static GuardrailAutomatedReasoningFinding fromSatisfiable(GuardrailAutomatedReasoningSatisfiableFinding satisfiable) Create an instance of this class withsatisfiable()
initialized to the given value. Sets the value of the Satisfiable property for this object.- Parameters:
satisfiable
- The new value for the Satisfiable property for this object.
-
fromSatisfiable
public static GuardrailAutomatedReasoningFinding fromSatisfiable(Consumer<GuardrailAutomatedReasoningSatisfiableFinding.Builder> satisfiable) Create an instance of this class withsatisfiable()
initialized to the given value. Sets the value of the Satisfiable property for this object.- Parameters:
satisfiable
- The new value for the Satisfiable property for this object.
-
fromImpossible
public static GuardrailAutomatedReasoningFinding fromImpossible(GuardrailAutomatedReasoningImpossibleFinding impossible) Create an instance of this class withimpossible()
initialized to the given value. Sets the value of the Impossible property for this object.- Parameters:
impossible
- The new value for the Impossible property for this object.
-
fromImpossible
public static GuardrailAutomatedReasoningFinding fromImpossible(Consumer<GuardrailAutomatedReasoningImpossibleFinding.Builder> impossible) Create an instance of this class withimpossible()
initialized to the given value. Sets the value of the Impossible property for this object.- Parameters:
impossible
- The new value for the Impossible property for this object.
-
fromTranslationAmbiguous
public static GuardrailAutomatedReasoningFinding fromTranslationAmbiguous(GuardrailAutomatedReasoningTranslationAmbiguousFinding translationAmbiguous) Create an instance of this class withtranslationAmbiguous()
initialized to the given value. Sets the value of the TranslationAmbiguous property for this object.- Parameters:
translationAmbiguous
- The new value for the TranslationAmbiguous property for this object.
-
fromTranslationAmbiguous
public static GuardrailAutomatedReasoningFinding fromTranslationAmbiguous(Consumer<GuardrailAutomatedReasoningTranslationAmbiguousFinding.Builder> translationAmbiguous) Create an instance of this class withtranslationAmbiguous()
initialized to the given value. Sets the value of the TranslationAmbiguous property for this object.- Parameters:
translationAmbiguous
- The new value for the TranslationAmbiguous property for this object.
-
fromTooComplex
public static GuardrailAutomatedReasoningFinding fromTooComplex(GuardrailAutomatedReasoningTooComplexFinding tooComplex) Create an instance of this class withtooComplex()
initialized to the given value. Sets the value of the TooComplex property for this object.- Parameters:
tooComplex
- The new value for the TooComplex property for this object.
-
fromTooComplex
public static GuardrailAutomatedReasoningFinding fromTooComplex(Consumer<GuardrailAutomatedReasoningTooComplexFinding.Builder> tooComplex) Create an instance of this class withtooComplex()
initialized to the given value. Sets the value of the TooComplex property for this object.- Parameters:
tooComplex
- The new value for the TooComplex property for this object.
-
fromNoTranslations
public static GuardrailAutomatedReasoningFinding fromNoTranslations(GuardrailAutomatedReasoningNoTranslationsFinding noTranslations) Create an instance of this class withnoTranslations()
initialized to the given value. Sets the value of the NoTranslations property for this object.- Parameters:
noTranslations
- The new value for the NoTranslations property for this object.
-
fromNoTranslations
public static GuardrailAutomatedReasoningFinding fromNoTranslations(Consumer<GuardrailAutomatedReasoningNoTranslationsFinding.Builder> noTranslations) Create an instance of this class withnoTranslations()
initialized to the given value. Sets the value of the NoTranslations property for this object.- Parameters:
noTranslations
- The new value for the NoTranslations property for this object.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beGuardrailAutomatedReasoningFinding.Type.UNKNOWN_TO_SDK_VERSION
if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beGuardrailAutomatedReasoningFinding.Type.UNKNOWN_TO_SDK_VERSION
if zero members are set, andnull
if more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-