Class EvaluationAnswerData
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.EvaluationAnswerData
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EvaluationAnswerData.Builder,EvaluationAnswerData>
@Generated("software.amazon.awssdk:codegen") public final class EvaluationAnswerData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EvaluationAnswerData.Builder,EvaluationAnswerData>
Information about answer data for a contact evaluation. Answer data must be either string, numeric, or not applicable.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEvaluationAnswerData.Builderstatic classEvaluationAnswerData.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EvaluationAnswerData.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static EvaluationAnswerDatafromNotApplicable(Boolean notApplicable)Create an instance of this class withnotApplicable()initialized to the given value.static EvaluationAnswerDatafromNumericValue(Double numericValue)Create an instance of this class withnumericValue()initialized to the given value.static EvaluationAnswerDatafromStringValue(String stringValue)Create an instance of this class withstringValue()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleannotApplicable()The flag to mark the question as not applicable.DoublenumericValue()The numeric value for an answer in a contact evaluation.List<SdkField<?>>sdkFields()static Class<? extends EvaluationAnswerData.Builder>serializableBuilderClass()StringstringValue()The string value for an answer in a contact evaluation.EvaluationAnswerData.BuildertoBuilder()StringtoString()Returns a string representation of this object.EvaluationAnswerData.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
stringValue
public final String stringValue()
The string value for an answer in a contact evaluation.
- Returns:
- The string value for an answer in a contact evaluation.
-
numericValue
public final Double numericValue()
The numeric value for an answer in a contact evaluation.
- Returns:
- The numeric value for an answer in a contact evaluation.
-
notApplicable
public final Boolean notApplicable()
The flag to mark the question as not applicable.
- Returns:
- The flag to mark the question as not applicable.
-
toBuilder
public EvaluationAnswerData.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EvaluationAnswerData.Builder,EvaluationAnswerData>
-
builder
public static EvaluationAnswerData.Builder builder()
-
serializableBuilderClass
public static Class<? extends EvaluationAnswerData.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.
-
fromStringValue
public static EvaluationAnswerData fromStringValue(String stringValue)
Create an instance of this class withstringValue()initialized to the given value.The string value for an answer in a contact evaluation.
- Parameters:
stringValue- The string value for an answer in a contact evaluation.
-
fromNumericValue
public static EvaluationAnswerData fromNumericValue(Double numericValue)
Create an instance of this class withnumericValue()initialized to the given value.The numeric value for an answer in a contact evaluation.
- Parameters:
numericValue- The numeric value for an answer in a contact evaluation.
-
fromNotApplicable
public static EvaluationAnswerData fromNotApplicable(Boolean notApplicable)
Create an instance of this class withnotApplicable()initialized to the given value.The flag to mark the question as not applicable.
- Parameters:
notApplicable- The flag to mark the question as not applicable.
-
type
public EvaluationAnswerData.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beEvaluationAnswerData.Type.UNKNOWN_TO_SDK_VERSIONif 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 beEvaluationAnswerData.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-