Interface ListActiveViolationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListActiveViolationsResponse.Builder,
,ListActiveViolationsResponse> IotResponse.Builder
,SdkBuilder<ListActiveViolationsResponse.Builder,
,ListActiveViolationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListActiveViolationsResponse
public static interface ListActiveViolationsResponse.Builder
extends IotResponse.Builder, SdkPojo, CopyableBuilder<ListActiveViolationsResponse.Builder,ListActiveViolationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionactiveViolations
(Collection<ActiveViolation> activeViolations) The list of active violations.activeViolations
(Consumer<ActiveViolation.Builder>... activeViolations) The list of active violations.activeViolations
(ActiveViolation... activeViolations) The list of active violations.A token that can be used to retrieve the next set of results, ornull
if there are no additional results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotResponse.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
activeViolations
The list of active violations.
- Parameters:
activeViolations
- The list of active violations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeViolations
The list of active violations.
- Parameters:
activeViolations
- The list of active violations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeViolations
ListActiveViolationsResponse.Builder activeViolations(Consumer<ActiveViolation.Builder>... activeViolations) The list of active violations.
This is a convenience method that creates an instance of theActiveViolation.Builder
avoiding the need to create one manually viaActiveViolation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactiveViolations(List<ActiveViolation>)
.- Parameters:
activeViolations
- a consumer that will call methods onActiveViolation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A token that can be used to retrieve the next set of results, or
null
if there are no additional results.- Parameters:
nextToken
- A token that can be used to retrieve the next set of results, ornull
if there are no additional results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-