@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TextInputCard extends Object implements Serializable, Cloneable, StructuredPojo
A card in an Amazon Q App that allows the user to input text.
Constructor and Description |
---|
TextInputCard() |
Modifier and Type | Method and Description |
---|---|
TextInputCard |
clone() |
boolean |
equals(Object obj) |
String |
getDefaultValue()
The default value to pre-populate in the text input field.
|
List<String> |
getDependencies()
Any dependencies or requirements for the text input card.
|
String |
getId()
The unique identifier of the text input card.
|
String |
getPlaceholder()
The placeholder text to display in the text input field.
|
String |
getTitle()
The title or label of the text input card.
|
String |
getType()
The type of the card.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultValue(String defaultValue)
The default value to pre-populate in the text input field.
|
void |
setDependencies(Collection<String> dependencies)
Any dependencies or requirements for the text input card.
|
void |
setId(String id)
The unique identifier of the text input card.
|
void |
setPlaceholder(String placeholder)
The placeholder text to display in the text input field.
|
void |
setTitle(String title)
The title or label of the text input card.
|
void |
setType(String type)
The type of the card.
|
String |
toString()
Returns a string representation of this object.
|
TextInputCard |
withDefaultValue(String defaultValue)
The default value to pre-populate in the text input field.
|
TextInputCard |
withDependencies(Collection<String> dependencies)
Any dependencies or requirements for the text input card.
|
TextInputCard |
withDependencies(String... dependencies)
Any dependencies or requirements for the text input card.
|
TextInputCard |
withId(String id)
The unique identifier of the text input card.
|
TextInputCard |
withPlaceholder(String placeholder)
The placeholder text to display in the text input field.
|
TextInputCard |
withTitle(String title)
The title or label of the text input card.
|
TextInputCard |
withType(CardType type)
The type of the card.
|
TextInputCard |
withType(String type)
The type of the card.
|
public void setId(String id)
The unique identifier of the text input card.
id
- The unique identifier of the text input card.public String getId()
The unique identifier of the text input card.
public TextInputCard withId(String id)
The unique identifier of the text input card.
id
- The unique identifier of the text input card.public void setTitle(String title)
The title or label of the text input card.
title
- The title or label of the text input card.public String getTitle()
The title or label of the text input card.
public TextInputCard withTitle(String title)
The title or label of the text input card.
title
- The title or label of the text input card.public List<String> getDependencies()
Any dependencies or requirements for the text input card.
public void setDependencies(Collection<String> dependencies)
Any dependencies or requirements for the text input card.
dependencies
- Any dependencies or requirements for the text input card.public TextInputCard withDependencies(String... dependencies)
Any dependencies or requirements for the text input card.
NOTE: This method appends the values to the existing list (if any). Use
setDependencies(java.util.Collection)
or withDependencies(java.util.Collection)
if you want to
override the existing values.
dependencies
- Any dependencies or requirements for the text input card.public TextInputCard withDependencies(Collection<String> dependencies)
Any dependencies or requirements for the text input card.
dependencies
- Any dependencies or requirements for the text input card.public void setType(String type)
The type of the card.
type
- The type of the card.CardType
public String getType()
The type of the card.
CardType
public TextInputCard withType(String type)
The type of the card.
type
- The type of the card.CardType
public TextInputCard withType(CardType type)
The type of the card.
type
- The type of the card.CardType
public void setPlaceholder(String placeholder)
The placeholder text to display in the text input field.
placeholder
- The placeholder text to display in the text input field.public String getPlaceholder()
The placeholder text to display in the text input field.
public TextInputCard withPlaceholder(String placeholder)
The placeholder text to display in the text input field.
placeholder
- The placeholder text to display in the text input field.public void setDefaultValue(String defaultValue)
The default value to pre-populate in the text input field.
defaultValue
- The default value to pre-populate in the text input field.public String getDefaultValue()
The default value to pre-populate in the text input field.
public TextInputCard withDefaultValue(String defaultValue)
The default value to pre-populate in the text input field.
defaultValue
- The default value to pre-populate in the text input field.public String toString()
toString
in class Object
Object.toString()
public TextInputCard clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.