Class CardInput
- java.lang.Object
-
- software.amazon.awssdk.services.qapps.model.CardInput
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CardInput.Builder,CardInput>
@Generated("software.amazon.awssdk:codegen") public final class CardInput extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CardInput.Builder,CardInput>
The properties defining an input card in an Amazon Q App.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCardInput.Builderstatic classCardInput.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CardInput.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FileUploadCardInputfileUpload()A container for the properties of the file upload input card.FormInputCardInputformInput()A container for the properties of the form input card.static CardInputfromFileUpload(Consumer<FileUploadCardInput.Builder> fileUpload)Create an instance of this class withfileUpload()initialized to the given value.static CardInputfromFileUpload(FileUploadCardInput fileUpload)Create an instance of this class withfileUpload()initialized to the given value.static CardInputfromFormInput(Consumer<FormInputCardInput.Builder> formInput)Create an instance of this class withformInput()initialized to the given value.static CardInputfromFormInput(FormInputCardInput formInput)Create an instance of this class withformInput()initialized to the given value.static CardInputfromQPlugin(Consumer<QPluginCardInput.Builder> qPlugin)Create an instance of this class withqPlugin()initialized to the given value.static CardInputfromQPlugin(QPluginCardInput qPlugin)Create an instance of this class withqPlugin()initialized to the given value.static CardInputfromQQuery(Consumer<QQueryCardInput.Builder> qQuery)Create an instance of this class withqQuery()initialized to the given value.static CardInputfromQQuery(QQueryCardInput qQuery)Create an instance of this class withqQuery()initialized to the given value.static CardInputfromTextInput(Consumer<TextInputCardInput.Builder> textInput)Create an instance of this class withtextInput()initialized to the given value.static CardInputfromTextInput(TextInputCardInput textInput)Create an instance of this class withtextInput()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()QPluginCardInputqPlugin()A container for the properties of the plugin input card.QQueryCardInputqQuery()A container for the properties of the query input card.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CardInput.Builder>serializableBuilderClass()TextInputCardInputtextInput()A container for the properties of the text input card.CardInput.BuildertoBuilder()StringtoString()Returns a string representation of this object.CardInput.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 TextInputCardInput 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 QQueryCardInput qQuery()
A container for the properties of the query input card.
- Returns:
- A container for the properties of the query input card.
-
qPlugin
public final QPluginCardInput qPlugin()
A container for the properties of the plugin input card.
- Returns:
- A container for the properties of the plugin input card.
-
fileUpload
public final FileUploadCardInput fileUpload()
A container for the properties of the file upload input card.
- Returns:
- A container for the properties of the file upload input card.
-
formInput
public final FormInputCardInput formInput()
A container for the properties of the form input card.
- Returns:
- A container for the properties of the form input card.
-
toBuilder
public CardInput.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CardInput.Builder,CardInput>
-
builder
public static CardInput.Builder builder()
-
serializableBuilderClass
public static Class<? extends CardInput.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 CardInput fromTextInput(TextInputCardInput 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 CardInput fromTextInput(Consumer<TextInputCardInput.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 CardInput fromQQuery(QQueryCardInput qQuery)
Create an instance of this class withqQuery()initialized to the given value.A container for the properties of the query input card.
- Parameters:
qQuery- A container for the properties of the query input card.
-
fromQQuery
public static CardInput fromQQuery(Consumer<QQueryCardInput.Builder> qQuery)
Create an instance of this class withqQuery()initialized to the given value.A container for the properties of the query input card.
- Parameters:
qQuery- A container for the properties of the query input card.
-
fromQPlugin
public static CardInput fromQPlugin(QPluginCardInput qPlugin)
Create an instance of this class withqPlugin()initialized to the given value.A container for the properties of the plugin input card.
- Parameters:
qPlugin- A container for the properties of the plugin input card.
-
fromQPlugin
public static CardInput fromQPlugin(Consumer<QPluginCardInput.Builder> qPlugin)
Create an instance of this class withqPlugin()initialized to the given value.A container for the properties of the plugin input card.
- Parameters:
qPlugin- A container for the properties of the plugin input card.
-
fromFileUpload
public static CardInput fromFileUpload(FileUploadCardInput fileUpload)
Create an instance of this class withfileUpload()initialized to the given value.A container for the properties of the file upload input card.
- Parameters:
fileUpload- A container for the properties of the file upload input card.
-
fromFileUpload
public static CardInput fromFileUpload(Consumer<FileUploadCardInput.Builder> fileUpload)
Create an instance of this class withfileUpload()initialized to the given value.A container for the properties of the file upload input card.
- Parameters:
fileUpload- A container for the properties of the file upload input card.
-
fromFormInput
public static CardInput fromFormInput(FormInputCardInput 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 CardInput fromFormInput(Consumer<FormInputCardInput.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 CardInput.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 beCardInput.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 beCardInput.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
-
-