Interface ListTemplatesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListTemplatesResponse.Builder,,ListTemplatesResponse> NetworkSecurityManagerResponse.Builder,SdkBuilder<ListTemplatesResponse.Builder,,ListTemplatesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListTemplatesResponse
@Mutable
@NotThreadSafe
public static interface ListTemplatesResponse.Builder
extends NetworkSecurityManagerResponse.Builder, SdkPojo, CopyableBuilder<ListTemplatesResponse.Builder,ListTemplatesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token for the next page of results.templates(Collection<TemplateSummary> templates) The list of templates.templates(Consumer<TemplateSummary.Builder>... templates) The list of templates.templates(TemplateSummary... templates) The list of templates.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networksecuritymanager.model.NetworkSecurityManagerResponse.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
-
nextToken
The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.
- Parameters:
nextToken- The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templates
The list of templates.
- Parameters:
templates- The list of templates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templates
The list of templates.
- Parameters:
templates- The list of templates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templates
The list of templates.
This is a convenience method that creates an instance of theTemplateSummary.Builderavoiding the need to create one manually viaTemplateSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplates(List<TemplateSummary>).- Parameters:
templates- a consumer that will call methods onTemplateSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-