Class Card
- java.lang.Object
-
- software.amazon.awssdk.services.qapps.model.Card
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Card.Builder,Card>
@Generated("software.amazon.awssdk:codegen") public final class Card extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Card.Builder,Card>
A card representing a component or step in an Amazon Q App's flow.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCard.Builderstatic classCard.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Card.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FileUploadCardfileUpload()A container for the properties of the file upload card.FormInputCardformInput()A container for the properties of the form input card.static CardfromFileUpload(Consumer<FileUploadCard.Builder> fileUpload)Create an instance of this class withfileUpload()initialized to the given value.static CardfromFileUpload(FileUploadCard fileUpload)Create an instance of this class withfileUpload()initialized to the given value.static CardfromFormInput(Consumer<FormInputCard.Builder> formInput)Create an instance of this class withformInput()initialized to the given value.static CardfromFormInput(FormInputCard formInput)Create an instance of this class withformInput()initialized to the given value.static CardfromQPlugin(Consumer<QPluginCard.Builder> qPlugin)Create an instance of this class withqPlugin()initialized to the given value.static CardfromQPlugin(QPluginCard qPlugin)Create an instance of this class withqPlugin()initialized to the given value.static CardfromQQuery(Consumer<QQueryCard.Builder> qQuery)Create an instance of this class withqQuery()initialized to the given value.static CardfromQQuery(QQueryCard qQuery)Create an instance of this class withqQuery()initialized to the given value.static CardfromTextInput(Consumer<TextInputCard.Builder> textInput)Create an instance of this class withtextInput()initialized to the given value.static CardfromTextInput(TextInputCard textInput)Create an instance of this class withtextInput()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()QPluginCardqPlugin()A container for the properties of the plugin card.QQueryCardqQuery()A container for the properties of the query card.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Card.Builder>serializableBuilderClass()TextInputCardtextInput()A container for the properties of the text input card.Card.BuildertoBuilder()StringtoString()Returns a string representation of this object.Card.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
-
textInput
public final TextInputCard textInput()
A container for the properties of the text input card.
- Returns:
- A container for the properties of the text input card.
-
qQuery
public final QQueryCard qQuery()
A container for the properties of the query card.
- Returns:
- A container for the properties of the query card.
-
qPlugin
public final QPluginCard qPlugin()
A container for the properties of the plugin card.
- Returns:
- A container for the properties of the plugin card.
-
fileUpload
public final FileUploadCard fileUpload()
A container for the properties of the file upload card.
- Returns:
- A container for the properties of the file upload card.
-
formInput
public final FormInputCard formInput()
A container for the properties of the form input card.
- Returns:
- A container for the properties of the form input card.
-
toBuilder
public Card.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Card.Builder,Card>
-
builder
public static Card.Builder builder()
-
serializableBuilderClass
public static Class<? extends Card.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.
-
fromTextInput
public static Card fromTextInput(TextInputCard textInput)
Create an instance of this class withtextInput()initialized to the given value.A container for the properties of the text input card.
- Parameters:
textInput- A container for the properties of the text input card.
-
fromTextInput
public static Card fromTextInput(Consumer<TextInputCard.Builder> textInput)
Create an instance of this class withtextInput()initialized to the given value.A container for the properties of the text input card.
- Parameters:
textInput- A container for the properties of the text input card.
-
fromQQuery
public static Card fromQQuery(QQueryCard qQuery)
Create an instance of this class withqQuery()initialized to the given value.A container for the properties of the query card.
- Parameters:
qQuery- A container for the properties of the query card.
-
fromQQuery
public static Card fromQQuery(Consumer<QQueryCard.Builder> qQuery)
Create an instance of this class withqQuery()initialized to the given value.A container for the properties of the query card.
- Parameters:
qQuery- A container for the properties of the query card.
-
fromQPlugin
public static Card fromQPlugin(QPluginCard qPlugin)
Create an instance of this class withqPlugin()initialized to the given value.A container for the properties of the plugin card.
- Parameters:
qPlugin- A container for the properties of the plugin card.
-
fromQPlugin
public static Card fromQPlugin(Consumer<QPluginCard.Builder> qPlugin)
Create an instance of this class withqPlugin()initialized to the given value.A container for the properties of the plugin card.
- Parameters:
qPlugin- A container for the properties of the plugin card.
-
fromFileUpload
public static Card fromFileUpload(FileUploadCard fileUpload)
Create an instance of this class withfileUpload()initialized to the given value.A container for the properties of the file upload card.
- Parameters:
fileUpload- A container for the properties of the file upload card.
-
fromFileUpload
public static Card fromFileUpload(Consumer<FileUploadCard.Builder> fileUpload)
Create an instance of this class withfileUpload()initialized to the given value.A container for the properties of the file upload card.
- Parameters:
fileUpload- A container for the properties of the file upload card.
-
fromFormInput
public static Card fromFormInput(FormInputCard formInput)
Create an instance of this class withformInput()initialized to the given value.A container for the properties of the form input card.
- Parameters:
formInput- A container for the properties of the form input card.
-
fromFormInput
public static Card fromFormInput(Consumer<FormInputCard.Builder> formInput)
Create an instance of this class withformInput()initialized to the given value.A container for the properties of the form input card.
- Parameters:
formInput- A container for the properties of the form input card.
-
type
public Card.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 beCard.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 beCard.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-