Interface CreateFlowResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentResponse.Builder,Buildable,CopyableBuilder<CreateFlowResponse.Builder,CreateFlowResponse>,SdkBuilder<CreateFlowResponse.Builder,CreateFlowResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreateFlowResponse
public static interface CreateFlowResponse.Builder extends BedrockAgentResponse.Builder, SdkPojo, CopyableBuilder<CreateFlowResponse.Builder,CreateFlowResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateFlowResponse.Builderarn(String arn)The Amazon Resource Name (ARN) of the flow.CreateFlowResponse.BuildercreatedAt(Instant createdAt)The time at which the flow was created.CreateFlowResponse.BuildercustomerEncryptionKeyArn(String customerEncryptionKeyArn)The Amazon Resource Name (ARN) of the KMS key that you encrypted the flow with.default CreateFlowResponse.Builderdefinition(Consumer<FlowDefinition.Builder> definition)A definition of the nodes and connections between nodes in the flow.CreateFlowResponse.Builderdefinition(FlowDefinition definition)A definition of the nodes and connections between nodes in the flow.CreateFlowResponse.Builderdescription(String description)The description of the flow.CreateFlowResponse.BuilderexecutionRoleArn(String executionRoleArn)The Amazon Resource Name (ARN) of the service role with permissions to create a flow.CreateFlowResponse.Builderid(String id)The unique identifier of the flow.CreateFlowResponse.Buildername(String name)The name of the flow.CreateFlowResponse.Builderstatus(String status)The status of the flow.CreateFlowResponse.Builderstatus(FlowStatus status)The status of the flow.CreateFlowResponse.BuilderupdatedAt(Instant updatedAt)The time at which the flow was last updated.CreateFlowResponse.Builderversion(String version)The version of the flow.-
Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
arn
CreateFlowResponse.Builder arn(String arn)
The Amazon Resource Name (ARN) of the flow.
- Parameters:
arn- The Amazon Resource Name (ARN) of the flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
CreateFlowResponse.Builder createdAt(Instant createdAt)
The time at which the flow was created.
- Parameters:
createdAt- The time at which the flow was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerEncryptionKeyArn
CreateFlowResponse.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key that you encrypted the flow with.
- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key that you encrypted the flow with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
CreateFlowResponse.Builder definition(FlowDefinition definition)
A definition of the nodes and connections between nodes in the flow.
- Parameters:
definition- A definition of the nodes and connections between nodes in the flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
default CreateFlowResponse.Builder definition(Consumer<FlowDefinition.Builder> definition)
A definition of the nodes and connections between nodes in the flow.
This is a convenience method that creates an instance of theFlowDefinition.Builderavoiding the need to create one manually viaFlowDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(FlowDefinition).- Parameters:
definition- a consumer that will call methods onFlowDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
definition(FlowDefinition)
-
description
CreateFlowResponse.Builder description(String description)
The description of the flow.
- Parameters:
description- The description of the flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRoleArn
CreateFlowResponse.Builder executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.
- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
CreateFlowResponse.Builder id(String id)
The unique identifier of the flow.
- Parameters:
id- The unique identifier of the flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateFlowResponse.Builder name(String name)
The name of the flow.
- Parameters:
name- The name of the flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
CreateFlowResponse.Builder status(String status)
The status of the flow. When you submit this request, the status will be
NotPrepared. If creation fails, the status becomesFailed.- Parameters:
status- The status of the flow. When you submit this request, the status will beNotPrepared. If creation fails, the status becomesFailed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FlowStatus,FlowStatus
-
status
CreateFlowResponse.Builder status(FlowStatus status)
The status of the flow. When you submit this request, the status will be
NotPrepared. If creation fails, the status becomesFailed.- Parameters:
status- The status of the flow. When you submit this request, the status will beNotPrepared. If creation fails, the status becomesFailed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FlowStatus,FlowStatus
-
updatedAt
CreateFlowResponse.Builder updatedAt(Instant updatedAt)
The time at which the flow was last updated.
- Parameters:
updatedAt- The time at which the flow was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
CreateFlowResponse.Builder version(String version)
The version of the flow. When you create a flow, the version created is the
DRAFTversion.- Parameters:
version- The version of the flow. When you create a flow, the version created is theDRAFTversion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-