Class TaskInputConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TaskInputConfiguration.Builder,TaskInputConfiguration>
What a task does and what it reads: exactly one member, which sets the task's type.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static TaskInputConfigurationfromImportDataDictionary(Consumer<ImportDataDictionaryTaskConfiguration.Builder> importDataDictionary) Create an instance of this class withimportDataDictionary()initialized to the given value.static TaskInputConfigurationfromImportDataDictionary(ImportDataDictionaryTaskConfiguration importDataDictionary) Create an instance of this class withimportDataDictionary()initialized to the given value.static TaskInputConfigurationfromImportOntology(Consumer<ImportOntologyTaskConfiguration.Builder> importOntology) Create an instance of this class withimportOntology()initialized to the given value.static TaskInputConfigurationfromImportOntology(ImportOntologyTaskConfiguration importOntology) Create an instance of this class withimportOntology()initialized to the given value.static TaskInputConfigurationfromImportVerifiedQueries(Consumer<ImportVerifiedQueriesTaskConfiguration.Builder> importVerifiedQueries) Create an instance of this class withimportVerifiedQueries()initialized to the given value.static TaskInputConfigurationfromImportVerifiedQueries(ImportVerifiedQueriesTaskConfiguration importVerifiedQueries) Create an instance of this class withimportVerifiedQueries()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()Imports a data dictionary into the agent context from documents of typeCSV,JSON,YAML, orMARKDOWN.Imports one or more ontologies into the agent context.Imports verified queries into the agent context from documents of typeSQL,CSV,JSON, orTXT.static Class<? extends TaskInputConfiguration.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
importDataDictionary
Imports a data dictionary into the agent context from documents of type
CSV,JSON,YAML, orMARKDOWN. The task's type isIMPORT_DATA_DICTIONARY.- Returns:
- Imports a data dictionary into the agent context from documents of type
CSV,JSON,YAML, orMARKDOWN. The task's type isIMPORT_DATA_DICTIONARY.
-
importVerifiedQueries
Imports verified queries into the agent context from documents of type
SQL,CSV,JSON, orTXT. The task's type isIMPORT_VERIFIED_QUERIES.- Returns:
- Imports verified queries into the agent context from documents of type
SQL,CSV,JSON, orTXT. The task's type isIMPORT_VERIFIED_QUERIES.
-
importOntology
Imports one or more ontologies into the agent context. The task's type is
IMPORT_ONTOLOGY.- Returns:
- Imports one or more ontologies into the agent context. The task's type is
IMPORT_ONTOLOGY.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TaskInputConfiguration.Builder,TaskInputConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromImportDataDictionary
public static TaskInputConfiguration fromImportDataDictionary(ImportDataDictionaryTaskConfiguration importDataDictionary) Create an instance of this class withimportDataDictionary()initialized to the given value.Imports a data dictionary into the agent context from documents of type
CSV,JSON,YAML, orMARKDOWN. The task's type isIMPORT_DATA_DICTIONARY.- Parameters:
importDataDictionary- Imports a data dictionary into the agent context from documents of typeCSV,JSON,YAML, orMARKDOWN. The task's type isIMPORT_DATA_DICTIONARY.
-
fromImportDataDictionary
public static TaskInputConfiguration fromImportDataDictionary(Consumer<ImportDataDictionaryTaskConfiguration.Builder> importDataDictionary) Create an instance of this class withimportDataDictionary()initialized to the given value.Imports a data dictionary into the agent context from documents of type
CSV,JSON,YAML, orMARKDOWN. The task's type isIMPORT_DATA_DICTIONARY.- Parameters:
importDataDictionary- Imports a data dictionary into the agent context from documents of typeCSV,JSON,YAML, orMARKDOWN. The task's type isIMPORT_DATA_DICTIONARY.
-
fromImportVerifiedQueries
public static TaskInputConfiguration fromImportVerifiedQueries(ImportVerifiedQueriesTaskConfiguration importVerifiedQueries) Create an instance of this class withimportVerifiedQueries()initialized to the given value.Imports verified queries into the agent context from documents of type
SQL,CSV,JSON, orTXT. The task's type isIMPORT_VERIFIED_QUERIES.- Parameters:
importVerifiedQueries- Imports verified queries into the agent context from documents of typeSQL,CSV,JSON, orTXT. The task's type isIMPORT_VERIFIED_QUERIES.
-
fromImportVerifiedQueries
public static TaskInputConfiguration fromImportVerifiedQueries(Consumer<ImportVerifiedQueriesTaskConfiguration.Builder> importVerifiedQueries) Create an instance of this class withimportVerifiedQueries()initialized to the given value.Imports verified queries into the agent context from documents of type
SQL,CSV,JSON, orTXT. The task's type isIMPORT_VERIFIED_QUERIES.- Parameters:
importVerifiedQueries- Imports verified queries into the agent context from documents of typeSQL,CSV,JSON, orTXT. The task's type isIMPORT_VERIFIED_QUERIES.
-
fromImportOntology
public static TaskInputConfiguration fromImportOntology(ImportOntologyTaskConfiguration importOntology) Create an instance of this class withimportOntology()initialized to the given value.Imports one or more ontologies into the agent context. The task's type is
IMPORT_ONTOLOGY.- Parameters:
importOntology- Imports one or more ontologies into the agent context. The task's type isIMPORT_ONTOLOGY.
-
fromImportOntology
public static TaskInputConfiguration fromImportOntology(Consumer<ImportOntologyTaskConfiguration.Builder> importOntology) Create an instance of this class withimportOntology()initialized to the given value.Imports one or more ontologies into the agent context. The task's type is
IMPORT_ONTOLOGY.- Parameters:
importOntology- Imports one or more ontologies into the agent context. The task's type isIMPORT_ONTOLOGY.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beTaskInputConfiguration.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 beTaskInputConfiguration.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-