Interface ListPoliciesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListPoliciesResponse.Builder,
,ListPoliciesResponse> FmsResponse.Builder
,SdkBuilder<ListPoliciesResponse.Builder,
,ListPoliciesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListPoliciesResponse
public static interface ListPoliciesResponse.Builder
extends FmsResponse.Builder, SdkPojo, CopyableBuilder<ListPoliciesResponse.Builder,ListPoliciesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf you have morePolicySummary
objects than the number that you specified forMaxResults
in the request, the response includes aNextToken
value.policyList
(Collection<PolicySummary> policyList) An array ofPolicySummary
objects.policyList
(Consumer<PolicySummary.Builder>... policyList) An array ofPolicySummary
objects.policyList
(PolicySummary... policyList) An array ofPolicySummary
objects.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.fms.model.FmsResponse.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
-
policyList
An array of
PolicySummary
objects.- Parameters:
policyList
- An array ofPolicySummary
objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyList
An array of
PolicySummary
objects.- Parameters:
policyList
- An array ofPolicySummary
objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyList
An array of
This is a convenience method that creates an instance of thePolicySummary
objects.PolicySummary.Builder
avoiding the need to create one manually viaPolicySummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicyList(List<PolicySummary>)
.- Parameters:
policyList
- a consumer that will call methods onPolicySummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If you have more
PolicySummary
objects than the number that you specified forMaxResults
in the request, the response includes aNextToken
value. To list morePolicySummary
objects, submit anotherListPolicies
request, and specify theNextToken
value from the response in theNextToken
value in the next request.- Parameters:
nextToken
- If you have morePolicySummary
objects than the number that you specified forMaxResults
in the request, the response includes aNextToken
value. To list morePolicySummary
objects, submit anotherListPolicies
request, and specify theNextToken
value from the response in theNextToken
value in the next request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-