@Generated(value="software.amazon.awssdk:codegen") public final class AnswerSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AnswerSummary.Builder,AnswerSummary>
An answer summary of a lens review in a workload.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AnswerSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AnswerSummary.Builder |
builder() |
List<ChoiceAnswerSummary> |
choiceAnswerSummaries()
A list of selected choices to a question in your workload.
|
List<Choice> |
choices()
Returns the value of the Choices property for this object.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasChoiceAnswerSummaries()
For responses, this returns true if the service returned a value for the ChoiceAnswerSummaries property.
|
boolean |
hasChoices()
For responses, this returns true if the service returned a value for the Choices property.
|
int |
hashCode() |
boolean |
hasSelectedChoices()
For responses, this returns true if the service returned a value for the SelectedChoices property.
|
Boolean |
isApplicable()
Returns the value of the IsApplicable property for this object.
|
String |
pillarId()
Returns the value of the PillarId property for this object.
|
String |
questionId()
Returns the value of the QuestionId property for this object.
|
String |
questionTitle()
Returns the value of the QuestionTitle property for this object.
|
QuestionType |
questionType()
The type of the question.
|
String |
questionTypeAsString()
The type of the question.
|
AnswerReason |
reason()
The reason why a choice is non-applicable to a question in your workload.
|
String |
reasonAsString()
The reason why a choice is non-applicable to a question in your workload.
|
Risk |
risk()
Returns the value of the Risk property for this object.
|
String |
riskAsString()
Returns the value of the Risk property for this object.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
selectedChoices()
Returns the value of the SelectedChoices property for this object.
|
static Class<? extends AnswerSummary.Builder> |
serializableBuilderClass() |
AnswerSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String questionId()
public final String pillarId()
public final String questionTitle()
public final boolean hasChoices()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Choice> choices()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasChoices() method.
public final boolean hasSelectedChoices()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> selectedChoices()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSelectedChoices() method.
public final boolean hasChoiceAnswerSummaries()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<ChoiceAnswerSummary> choiceAnswerSummaries()
A list of selected choices to a question in your workload.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasChoiceAnswerSummaries() method.
public final Boolean isApplicable()
public final Risk risk()
If the service returns an enum value that is not available in the current SDK version, risk will return
Risk.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
riskAsString().
Riskpublic final String riskAsString()
If the service returns an enum value that is not available in the current SDK version, risk will return
Risk.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
riskAsString().
Riskpublic final AnswerReason reason()
The reason why a choice is non-applicable to a question in your workload.
If the service returns an enum value that is not available in the current SDK version, reason will
return AnswerReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
reasonAsString().
AnswerReasonpublic final String reasonAsString()
The reason why a choice is non-applicable to a question in your workload.
If the service returns an enum value that is not available in the current SDK version, reason will
return AnswerReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
reasonAsString().
AnswerReasonpublic final QuestionType questionType()
The type of the question.
If the service returns an enum value that is not available in the current SDK version, questionType will
return QuestionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
questionTypeAsString().
QuestionTypepublic final String questionTypeAsString()
The type of the question.
If the service returns an enum value that is not available in the current SDK version, questionType will
return QuestionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
questionTypeAsString().
QuestionTypepublic AnswerSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AnswerSummary.Builder,AnswerSummary>public static AnswerSummary.Builder builder()
public static Class<? extends AnswerSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.