Interface CreateWorkspaceResponse.Builder
- All Superinterfaces:
AmpResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateWorkspaceResponse.Builder,
,CreateWorkspaceResponse> SdkBuilder<CreateWorkspaceResponse.Builder,
,CreateWorkspaceResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateWorkspaceResponse
public static interface CreateWorkspaceResponse.Builder
extends AmpResponse.Builder, SdkPojo, CopyableBuilder<CreateWorkspaceResponse.Builder,CreateWorkspaceResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN for the new workspace.(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.default CreateWorkspaceResponse.Builder
status
(Consumer<WorkspaceStatus.Builder> status) The current status of the new workspace.status
(WorkspaceStatus status) The current status of the new workspace.The list of tag keys and values that are associated with the workspace.workspaceId
(String workspaceId) The unique ID for the new workspace.Methods inherited from interface software.amazon.awssdk.services.amp.model.AmpResponse.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 Details
-
arn
The ARN for the new workspace.
- Parameters:
arn
- The ARN for the new workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyArn
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
- Parameters:
kmsKeyArn
- (optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the new workspace. Immediately after you create the workspace, the status is usually
CREATING
.- Parameters:
status
- The current status of the new workspace. Immediately after you create the workspace, the status is usuallyCREATING
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the new workspace. Immediately after you create the workspace, the status is usually
This is a convenience method that creates an instance of theCREATING
.WorkspaceStatus.Builder
avoiding the need to create one manually viaWorkspaceStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(WorkspaceStatus)
.- Parameters:
status
- a consumer that will call methods onWorkspaceStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The list of tag keys and values that are associated with the workspace.
- Parameters:
tags
- The list of tag keys and values that are associated with the workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceId
The unique ID for the new workspace.
- Parameters:
workspaceId
- The unique ID for the new workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-