Interface ListRulesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListRulesResponse.Builder,,ListRulesResponse> NetworkSecurityManagerResponse.Builder,SdkBuilder<ListRulesResponse.Builder,,ListRulesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListRulesResponse
@Mutable
@NotThreadSafe
public static interface ListRulesResponse.Builder
extends NetworkSecurityManagerResponse.Builder, SdkPojo, CopyableBuilder<ListRulesResponse.Builder,ListRulesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token for the next page of results.rules(Collection<RuleSummary> rules) The list of rules.rules(Consumer<RuleSummary.Builder>... rules) The list of rules.rules(RuleSummary... rules) The list of rules.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.
-
rules
The list of rules.
- Parameters:
rules- The list of rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The list of rules.
- Parameters:
rules- The list of rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The list of rules.
This is a convenience method that creates an instance of theRuleSummary.Builderavoiding the need to create one manually viaRuleSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torules(List<RuleSummary>).- Parameters:
rules- a consumer that will call methods onRuleSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-