@Generated(value="software.amazon.awssdk:codegen") public final class Answer extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Answer.Builder,Answer>
An answer of the question.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Answer.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Answer.Builder |
builder() |
List<ChoiceAnswer> |
choiceAnswers()
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 |
hasChoiceAnswers()
For responses, this returns true if the service returned a value for the ChoiceAnswers 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.
|
String |
helpfulResourceDisplayText()
The helpful resource text to be displayed for a custom lens.
|
String |
helpfulResourceUrl()
Returns the value of the HelpfulResourceUrl property for this object.
|
String |
improvementPlanUrl()
Returns the value of the ImprovementPlanUrl property for this object.
|
Boolean |
isApplicable()
Returns the value of the IsApplicable property for this object.
|
String |
notes()
Returns the value of the Notes property for this object.
|
String |
pillarId()
Returns the value of the PillarId property for this object.
|
String |
questionDescription()
Returns the value of the QuestionDescription 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.
|
AnswerReason |
reason()
The reason why the question is not applicable to your workload.
|
String |
reasonAsString()
The reason why the question is not applicable to 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 Answer.Builder> |
serializableBuilderClass() |
Answer.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 String questionDescription()
public final String improvementPlanUrl()
public final String helpfulResourceUrl()
public final String helpfulResourceDisplayText()
The helpful resource text to be displayed for a custom lens.
This field does not apply to Amazon Web Services official lenses.
This field does not apply to Amazon Web Services official lenses.
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 hasChoiceAnswers()
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<ChoiceAnswer> choiceAnswers()
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 hasChoiceAnswers() 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 String notes()
public final AnswerReason reason()
The reason why the question is not applicable to 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 the question is not applicable to 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 Answer.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Answer.Builder,Answer>public static Answer.Builder builder()
public static Class<? extends Answer.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.