Interface ListSubscriptionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSubscriptionsResponse.Builder,,ListSubscriptionsResponse> IotDataPlaneResponse.Builder,SdkBuilder<ListSubscriptionsResponse.Builder,,ListSubscriptionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListSubscriptionsResponse
@Mutable
@NotThreadSafe
public static interface ListSubscriptionsResponse.Builder
extends IotDataPlaneResponse.Builder, SdkPojo, CopyableBuilder<ListSubscriptionsResponse.Builder,ListSubscriptionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use to get the next set of results, or null if there are no additional results.subscriptions(Collection<SubscriptionSummary> subscriptions) A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.subscriptions(Consumer<SubscriptionSummary.Builder>... subscriptions) A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.subscriptions(SubscriptionSummary... subscriptions) A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iotdataplane.model.IotDataPlaneResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
subscriptions
A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.
- Parameters:
subscriptions- A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptions
A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.
- Parameters:
subscriptions- A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptions
ListSubscriptionsResponse.Builder subscriptions(Consumer<SubscriptionSummary.Builder>... subscriptions) A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.
This is a convenience method that creates an instance of theSubscriptionSummary.Builderavoiding the need to create one manually viaSubscriptionSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubscriptions(List<SubscriptionSummary>).- Parameters:
subscriptions- a consumer that will call methods onSubscriptionSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to get the next set of results, or null if there are no additional results.
- Parameters:
nextToken- The token to use to get the next set of results, or null if there are no additional results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-