Class AssociateAgentKnowledgeBaseRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest
-
- software.amazon.awssdk.services.bedrockagent.model.AssociateAgentKnowledgeBaseRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<AssociateAgentKnowledgeBaseRequest.Builder,AssociateAgentKnowledgeBaseRequest>
@Generated("software.amazon.awssdk:codegen") public final class AssociateAgentKnowledgeBaseRequest extends BedrockAgentRequest implements ToCopyableBuilder<AssociateAgentKnowledgeBaseRequest.Builder,AssociateAgentKnowledgeBaseRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAssociateAgentKnowledgeBaseRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringagentId()The unique identifier of the agent with which you want to associate the knowledge base.StringagentVersion()The version of the agent with which you want to associate the knowledge base.static AssociateAgentKnowledgeBaseRequest.Builderbuilder()Stringdescription()A description of what the agent should use the knowledge base for.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringknowledgeBaseId()The unique identifier of the knowledge base to associate with the agent.KnowledgeBaseStateknowledgeBaseState()Specifies whether to use the knowledge base or not when sending an InvokeAgent request.StringknowledgeBaseStateAsString()Specifies whether to use the knowledge base or not when sending an InvokeAgent request.List<SdkField<?>>sdkFields()static Class<? extends AssociateAgentKnowledgeBaseRequest.Builder>serializableBuilderClass()AssociateAgentKnowledgeBaseRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
agentId
public final String agentId()
The unique identifier of the agent with which you want to associate the knowledge base.
- Returns:
- The unique identifier of the agent with which you want to associate the knowledge base.
-
agentVersion
public final String agentVersion()
The version of the agent with which you want to associate the knowledge base.
- Returns:
- The version of the agent with which you want to associate the knowledge base.
-
description
public final String description()
A description of what the agent should use the knowledge base for.
- Returns:
- A description of what the agent should use the knowledge base for.
-
knowledgeBaseId
public final String knowledgeBaseId()
The unique identifier of the knowledge base to associate with the agent.
- Returns:
- The unique identifier of the knowledge base to associate with the agent.
-
knowledgeBaseState
public final KnowledgeBaseState knowledgeBaseState()
Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
If the service returns an enum value that is not available in the current SDK version,
knowledgeBaseStatewill returnKnowledgeBaseState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromknowledgeBaseStateAsString().- Returns:
- Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
- See Also:
KnowledgeBaseState
-
knowledgeBaseStateAsString
public final String knowledgeBaseStateAsString()
Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
If the service returns an enum value that is not available in the current SDK version,
knowledgeBaseStatewill returnKnowledgeBaseState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromknowledgeBaseStateAsString().- Returns:
- Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
- See Also:
KnowledgeBaseState
-
toBuilder
public AssociateAgentKnowledgeBaseRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AssociateAgentKnowledgeBaseRequest.Builder,AssociateAgentKnowledgeBaseRequest>- Specified by:
toBuilderin classBedrockAgentRequest
-
builder
public static AssociateAgentKnowledgeBaseRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends AssociateAgentKnowledgeBaseRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-