@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Choice extends Object implements Serializable, Cloneable, StructuredPojo
A choice available to answer question.
Constructor and Description |
---|
Choice() |
Modifier and Type | Method and Description |
---|---|
Choice |
clone() |
boolean |
equals(Object obj) |
List<AdditionalResources> |
getAdditionalResources()
The additional resources for a choice in a custom lens.
|
String |
getChoiceId() |
String |
getDescription() |
ChoiceContent |
getHelpfulResource()
The helpful resource (both text and URL) for a particular choice.
|
ChoiceContent |
getImprovementPlan()
The improvement plan (both text and URL) for a particular choice.
|
String |
getTitle() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalResources(Collection<AdditionalResources> additionalResources)
The additional resources for a choice in a custom lens.
|
void |
setChoiceId(String choiceId) |
void |
setDescription(String description) |
void |
setHelpfulResource(ChoiceContent helpfulResource)
The helpful resource (both text and URL) for a particular choice.
|
void |
setImprovementPlan(ChoiceContent improvementPlan)
The improvement plan (both text and URL) for a particular choice.
|
void |
setTitle(String title) |
String |
toString()
Returns a string representation of this object.
|
Choice |
withAdditionalResources(AdditionalResources... additionalResources)
The additional resources for a choice in a custom lens.
|
Choice |
withAdditionalResources(Collection<AdditionalResources> additionalResources)
The additional resources for a choice in a custom lens.
|
Choice |
withChoiceId(String choiceId) |
Choice |
withDescription(String description) |
Choice |
withHelpfulResource(ChoiceContent helpfulResource)
The helpful resource (both text and URL) for a particular choice.
|
Choice |
withImprovementPlan(ChoiceContent improvementPlan)
The improvement plan (both text and URL) for a particular choice.
|
Choice |
withTitle(String title) |
public void setChoiceId(String choiceId)
choiceId
- public String getChoiceId()
public Choice withChoiceId(String choiceId)
choiceId
- public void setTitle(String title)
title
- public String getTitle()
public Choice withTitle(String title)
title
- public void setDescription(String description)
description
- public String getDescription()
public Choice withDescription(String description)
description
- public void setHelpfulResource(ChoiceContent helpfulResource)
The helpful resource (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one helpful resource.
helpfulResource
- The helpful resource (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one helpful resource.
public ChoiceContent getHelpfulResource()
The helpful resource (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one helpful resource.
This field only applies to custom lenses. Each choice can have only one helpful resource.
public Choice withHelpfulResource(ChoiceContent helpfulResource)
The helpful resource (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one helpful resource.
helpfulResource
- The helpful resource (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one helpful resource.
public void setImprovementPlan(ChoiceContent improvementPlan)
The improvement plan (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one improvement plan.
improvementPlan
- The improvement plan (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one improvement plan.
public ChoiceContent getImprovementPlan()
The improvement plan (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one improvement plan.
This field only applies to custom lenses. Each choice can have only one improvement plan.
public Choice withImprovementPlan(ChoiceContent improvementPlan)
The improvement plan (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one improvement plan.
improvementPlan
- The improvement plan (both text and URL) for a particular choice.
This field only applies to custom lenses. Each choice can have only one improvement plan.
public List<AdditionalResources> getAdditionalResources()
The additional resources for a choice in a custom lens.
A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
IMPROVEMENT_PLAN
, or both.
A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
IMPROVEMENT_PLAN
, or both.
public void setAdditionalResources(Collection<AdditionalResources> additionalResources)
The additional resources for a choice in a custom lens.
A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
IMPROVEMENT_PLAN
, or both.
additionalResources
- The additional resources for a choice in a custom lens.
A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
IMPROVEMENT_PLAN
, or both.
public Choice withAdditionalResources(AdditionalResources... additionalResources)
The additional resources for a choice in a custom lens.
A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
IMPROVEMENT_PLAN
, or both.
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalResources(java.util.Collection)
or withAdditionalResources(java.util.Collection)
if you want to override the existing values.
additionalResources
- The additional resources for a choice in a custom lens.
A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
IMPROVEMENT_PLAN
, or both.
public Choice withAdditionalResources(Collection<AdditionalResources> additionalResources)
The additional resources for a choice in a custom lens.
A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
IMPROVEMENT_PLAN
, or both.
additionalResources
- The additional resources for a choice in a custom lens.
A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
IMPROVEMENT_PLAN
, or both.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.