Interface CreateCommentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateCommentResponse.Builder,
,CreateCommentResponse> SdkBuilder<CreateCommentResponse.Builder,
,CreateCommentResponse> SdkPojo
,SdkResponse.Builder
,WorkDocsResponse.Builder
- Enclosing class:
CreateCommentResponse
public static interface CreateCommentResponse.Builder
extends WorkDocsResponse.Builder, SdkPojo, CopyableBuilder<CreateCommentResponse.Builder,CreateCommentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateCommentResponse.Builder
comment
(Consumer<Comment.Builder> comment) The comment that has been created.The comment that has been created.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
Methods inherited from interface software.amazon.awssdk.services.workdocs.model.WorkDocsResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
comment
The comment that has been created.
- Parameters:
comment
- The comment that has been created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
comment
The comment that has been created.
This is a convenience method that creates an instance of theComment.Builder
avoiding the need to create one manually viaComment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocomment(Comment)
.- Parameters:
comment
- a consumer that will call methods onComment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-