Class EvaluationFormItem
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.EvaluationFormItem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EvaluationFormItem.Builder,EvaluationFormItem>
@Generated("software.amazon.awssdk:codegen") public final class EvaluationFormItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EvaluationFormItem.Builder,EvaluationFormItem>
Information about an item from an evaluation form. The item must be either a section or a question.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEvaluationFormItem.Builderstatic classEvaluationFormItem.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EvaluationFormItem.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static EvaluationFormItemfromQuestion(Consumer<EvaluationFormQuestion.Builder> question)Create an instance of this class withquestion()initialized to the given value.static EvaluationFormItemfromQuestion(EvaluationFormQuestion question)Create an instance of this class withquestion()initialized to the given value.static EvaluationFormItemfromSection(Consumer<EvaluationFormSection.Builder> section)Create an instance of this class withsection()initialized to the given value.static EvaluationFormItemfromSection(EvaluationFormSection section)Create an instance of this class withsection()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()EvaluationFormQuestionquestion()The information of the question.List<SdkField<?>>sdkFields()EvaluationFormSectionsection()The information of the section.static Class<? extends EvaluationFormItem.Builder>serializableBuilderClass()EvaluationFormItem.BuildertoBuilder()StringtoString()Returns a string representation of this object.EvaluationFormItem.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
-
section
public final EvaluationFormSection section()
The information of the section.
- Returns:
- The information of the section.
-
question
public final EvaluationFormQuestion question()
The information of the question.
- Returns:
- The information of the question.
-
toBuilder
public EvaluationFormItem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EvaluationFormItem.Builder,EvaluationFormItem>
-
builder
public static EvaluationFormItem.Builder builder()
-
serializableBuilderClass
public static Class<? extends EvaluationFormItem.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.
-
fromSection
public static EvaluationFormItem fromSection(EvaluationFormSection section)
Create an instance of this class withsection()initialized to the given value.The information of the section.
- Parameters:
section- The information of the section.
-
fromSection
public static EvaluationFormItem fromSection(Consumer<EvaluationFormSection.Builder> section)
Create an instance of this class withsection()initialized to the given value.The information of the section.
- Parameters:
section- The information of the section.
-
fromQuestion
public static EvaluationFormItem fromQuestion(EvaluationFormQuestion question)
Create an instance of this class withquestion()initialized to the given value.The information of the question.
- Parameters:
question- The information of the question.
-
fromQuestion
public static EvaluationFormItem fromQuestion(Consumer<EvaluationFormQuestion.Builder> question)
Create an instance of this class withquestion()initialized to the given value.The information of the question.
- Parameters:
question- The information of the question.
-
type
public EvaluationFormItem.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 beEvaluationFormItem.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 beEvaluationFormItem.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-