Interface GetQueueResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetQueueResponse.Builder,
,GetQueueResponse> PcsResponse.Builder
,SdkBuilder<GetQueueResponse.Builder,
,GetQueueResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetQueueResponse
@Mutable
@NotThreadSafe
public static interface GetQueueResponse.Builder
extends PcsResponse.Builder, SdkPojo, CopyableBuilder<GetQueueResponse.Builder,GetQueueResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetQueueResponse.Builder
queue
(Consumer<Queue.Builder> queue) Sets the value of the Queue property for this object.Sets the value of the Queue property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.pcs.model.PcsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
queue
Sets the value of the Queue property for this object.- Parameters:
queue
- The new value for the Queue property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queue
Sets the value of the Queue property for this object. This is a convenience method that creates an instance of theQueue.Builder
avoiding the need to create one manually viaQueue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toqueue(Queue)
.- Parameters:
queue
- a consumer that will call methods onQueue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-