Interface ListProtectionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListProtectionsResponse.Builder,
,ListProtectionsResponse> SdkBuilder<ListProtectionsResponse.Builder,
,ListProtectionsResponse> SdkPojo
,SdkResponse.Builder
,ShieldResponse.Builder
- Enclosing class:
ListProtectionsResponse
-
Method Summary
Modifier and TypeMethodDescriptionWhen you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes aNextToken
value in the response.protections
(Collection<Protection> protections) The array of enabled Protection objects.protections
(Consumer<Protection.Builder>... protections) The array of enabled Protection objects.protections
(Protection... protections) The array of enabled Protection objects.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
Methods inherited from interface software.amazon.awssdk.services.shield.model.ShieldResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
protections
The array of enabled Protection objects.
- Parameters:
protections
- The array of enabled Protection objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protections
The array of enabled Protection objects.
- Parameters:
protections
- The array of enabled Protection objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protections
The array of enabled Protection objects.
This is a convenience method that creates an instance of theProtection.Builder
avoiding the need to create one manually viaProtection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprotections(List<Protection>)
.- Parameters:
protections
- a consumer that will call methods onProtection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a
NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the
MaxResults
setting. Shield Advanced will not return more thanMaxResults
objects, but may return fewer, even if more objects are still available.Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a
NextToken
value.- Parameters:
nextToken
- When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes aNextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the
MaxResults
setting. Shield Advanced will not return more thanMaxResults
objects, but may return fewer, even if more objects are still available.Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a
NextToken
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-