Interface KnowledgeBase.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<KnowledgeBase.Builder,KnowledgeBase>,SdkBuilder<KnowledgeBase.Builder,KnowledgeBase>,SdkPojo
- Enclosing class:
- KnowledgeBase
public static interface KnowledgeBase.Builder extends SdkPojo, CopyableBuilder<KnowledgeBase.Builder,KnowledgeBase>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description KnowledgeBase.BuildercreatedAt(Instant createdAt)Sets the value of the CreatedAt property for this object.KnowledgeBase.Builderdescription(String description)Sets the value of the Description property for this object.KnowledgeBase.BuilderfailureReasons(String... failureReasons)Sets the value of the FailureReasons property for this object.KnowledgeBase.BuilderfailureReasons(Collection<String> failureReasons)Sets the value of the FailureReasons property for this object.KnowledgeBase.BuilderknowledgeBaseArn(String knowledgeBaseArn)Sets the value of the KnowledgeBaseArn property for this object.default KnowledgeBase.BuilderknowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration)Sets the value of the KnowledgeBaseConfiguration property for this object.KnowledgeBase.BuilderknowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)Sets the value of the KnowledgeBaseConfiguration property for this object.KnowledgeBase.BuilderknowledgeBaseId(String knowledgeBaseId)Sets the value of the KnowledgeBaseId property for this object.KnowledgeBase.Buildername(String name)Sets the value of the Name property for this object.KnowledgeBase.BuilderroleArn(String roleArn)Sets the value of the RoleArn property for this object.KnowledgeBase.Builderstatus(String status)Sets the value of the Status property for this object.KnowledgeBase.Builderstatus(KnowledgeBaseStatus status)Sets the value of the Status property for this object.default KnowledgeBase.BuilderstorageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration)Sets the value of the StorageConfiguration property for this object.KnowledgeBase.BuilderstorageConfiguration(StorageConfiguration storageConfiguration)Sets the value of the StorageConfiguration property for this object.KnowledgeBase.BuilderupdatedAt(Instant updatedAt)Sets the value of the UpdatedAt property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
knowledgeBaseId
KnowledgeBase.Builder knowledgeBaseId(String knowledgeBaseId)
Sets the value of the KnowledgeBaseId property for this object.- Parameters:
knowledgeBaseId- The new value for the KnowledgeBaseId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
KnowledgeBase.Builder name(String name)
Sets the value of the Name property for this object.- Parameters:
name- The new value for the Name property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseArn
KnowledgeBase.Builder knowledgeBaseArn(String knowledgeBaseArn)
Sets the value of the KnowledgeBaseArn property for this object.- Parameters:
knowledgeBaseArn- The new value for the KnowledgeBaseArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
KnowledgeBase.Builder description(String description)
Sets the value of the Description property for this object.- Parameters:
description- The new value for the Description property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
KnowledgeBase.Builder roleArn(String roleArn)
Sets the value of the RoleArn property for this object.- Parameters:
roleArn- The new value for the RoleArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
KnowledgeBase.Builder knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)
Sets the value of the KnowledgeBaseConfiguration property for this object.- Parameters:
knowledgeBaseConfiguration- The new value for the KnowledgeBaseConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
default KnowledgeBase.Builder knowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration)
Sets the value of the KnowledgeBaseConfiguration property for this object. This is a convenience method that creates an instance of theKnowledgeBaseConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toknowledgeBaseConfiguration(KnowledgeBaseConfiguration).- Parameters:
knowledgeBaseConfiguration- a consumer that will call methods onKnowledgeBaseConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
knowledgeBaseConfiguration(KnowledgeBaseConfiguration)
-
storageConfiguration
KnowledgeBase.Builder storageConfiguration(StorageConfiguration storageConfiguration)
Sets the value of the StorageConfiguration property for this object.- Parameters:
storageConfiguration- The new value for the StorageConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfiguration
default KnowledgeBase.Builder storageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration)
Sets the value of the StorageConfiguration property for this object. This is a convenience method that creates an instance of theStorageConfiguration.Builderavoiding the need to create one manually viaStorageConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostorageConfiguration(StorageConfiguration).- Parameters:
storageConfiguration- a consumer that will call methods onStorageConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
storageConfiguration(StorageConfiguration)
-
status
KnowledgeBase.Builder status(String status)
Sets the value of the Status property for this object.- Parameters:
status- The new value for the Status property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KnowledgeBaseStatus,KnowledgeBaseStatus
-
status
KnowledgeBase.Builder status(KnowledgeBaseStatus status)
Sets the value of the Status property for this object.- Parameters:
status- The new value for the Status property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
KnowledgeBaseStatus,KnowledgeBaseStatus
-
createdAt
KnowledgeBase.Builder createdAt(Instant createdAt)
Sets the value of the CreatedAt property for this object.- Parameters:
createdAt- The new value for the CreatedAt property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
KnowledgeBase.Builder updatedAt(Instant updatedAt)
Sets the value of the UpdatedAt property for this object.- Parameters:
updatedAt- The new value for the UpdatedAt property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
KnowledgeBase.Builder failureReasons(Collection<String> failureReasons)
Sets the value of the FailureReasons property for this object.- Parameters:
failureReasons- The new value for the FailureReasons property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
KnowledgeBase.Builder failureReasons(String... failureReasons)
Sets the value of the FailureReasons property for this object.- Parameters:
failureReasons- The new value for the FailureReasons property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-