Interface TargetDefinition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TargetDefinition.Builder,,TargetDefinition> SdkBuilder<TargetDefinition.Builder,,TargetDefinition> SdkPojo
- Enclosing class:
TargetDefinition
-
Method Summary
Modifier and TypeMethodDescriptiondefault TargetDefinition.BuilderagentCoreRuntime(Consumer<AgentCoreRuntimeDefinition.Builder> agentCoreRuntime) An AgentCore Runtime, identified by its ARN.agentCoreRuntime(AgentCoreRuntimeDefinition agentCoreRuntime) An AgentCore Runtime, identified by its ARN.default TargetDefinition.Buildercustom(Consumer<Unit.Builder> custom) Any other target, such as a prompt, a model, or a script.Any other target, such as a prompt, a model, or a script.default TargetDefinition.BuilderhttpsEndpoint(Consumer<HttpsEndpointDefinition.Builder> httpsEndpoint) A service reached over HTTPS, identified by its base URL.httpsEndpoint(HttpsEndpointDefinition httpsEndpoint) A service reached over HTTPS, identified by its base URL.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
agentCoreRuntime
An AgentCore Runtime, identified by its ARN.
- Parameters:
agentCoreRuntime- An AgentCore Runtime, identified by its ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentCoreRuntime
default TargetDefinition.Builder agentCoreRuntime(Consumer<AgentCoreRuntimeDefinition.Builder> agentCoreRuntime) An AgentCore Runtime, identified by its ARN.
This is a convenience method that creates an instance of theAgentCoreRuntimeDefinition.Builderavoiding the need to create one manually viaAgentCoreRuntimeDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagentCoreRuntime(AgentCoreRuntimeDefinition).- Parameters:
agentCoreRuntime- a consumer that will call methods onAgentCoreRuntimeDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
httpsEndpoint
A service reached over HTTPS, identified by its base URL.
- Parameters:
httpsEndpoint- A service reached over HTTPS, identified by its base URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpsEndpoint
default TargetDefinition.Builder httpsEndpoint(Consumer<HttpsEndpointDefinition.Builder> httpsEndpoint) A service reached over HTTPS, identified by its base URL.
This is a convenience method that creates an instance of theHttpsEndpointDefinition.Builderavoiding the need to create one manually viaHttpsEndpointDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohttpsEndpoint(HttpsEndpointDefinition).- Parameters:
httpsEndpoint- a consumer that will call methods onHttpsEndpointDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
custom
Any other target, such as a prompt, a model, or a script. Reported runs only.
- Parameters:
custom- Any other target, such as a prompt, a model, or a script. Reported runs only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
custom
Any other target, such as a prompt, a model, or a script. Reported runs only.
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustom(Unit).- Parameters:
custom- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-