Interface ListRulesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListRulesResponse.Builder,ListRulesResponse>,EventBridgeResponse.Builder,SdkBuilder<ListRulesResponse.Builder,ListRulesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListRulesResponse
public static interface ListRulesResponse.Builder extends EventBridgeResponse.Builder, SdkPojo, CopyableBuilder<ListRulesResponse.Builder,ListRulesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListRulesResponse.BuildernextToken(String nextToken)A token indicating there are more results available.ListRulesResponse.Builderrules(Collection<Rule> rules)The rules that match the specified criteria.ListRulesResponse.Builderrules(Consumer<Rule.Builder>... rules)The rules that match the specified criteria.ListRulesResponse.Builderrules(Rule... rules)The rules that match the specified criteria.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.eventbridge.model.EventBridgeResponse.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 Detail
-
rules
ListRulesResponse.Builder rules(Collection<Rule> rules)
The rules that match the specified criteria.
- Parameters:
rules- The rules that match the specified criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
ListRulesResponse.Builder rules(Rule... rules)
The rules that match the specified criteria.
- Parameters:
rules- The rules that match the specified criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
ListRulesResponse.Builder rules(Consumer<Rule.Builder>... rules)
The rules that match the specified criteria.
This is a convenience method that creates an instance of theRule.Builderavoiding the need to create one manually viaRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rules(List.) - Parameters:
rules- a consumer that will call methods onRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#rules(java.util.Collection)
-
nextToken
ListRulesResponse.Builder nextToken(String nextToken)
A token indicating there are more results available. If there are no more results, no token is included in the response.
The value of
nextTokenis a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.Using an expired pagination token results in an
HTTP 400 InvalidTokenerror.- Parameters:
nextToken- A token indicating there are more results available. If there are no more results, no token is included in the response.The value of
nextTokenis a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.Using an expired pagination token results in an
HTTP 400 InvalidTokenerror.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-