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 morePolicySummaryobjects than the number that you specified forMaxResultsin the request, the response includes aNextTokenvalue.policyList(Collection<PolicySummary> policyList) An array ofPolicySummaryobjects.policyList(Consumer<PolicySummary.Builder>... policyList) An array ofPolicySummaryobjects.policyList(PolicySummary... policyList) An array ofPolicySummaryobjects.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.fms.model.FmsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policyList
An array of
PolicySummaryobjects.- Parameters:
policyList- An array ofPolicySummaryobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyList
An array of
PolicySummaryobjects.- Parameters:
policyList- An array ofPolicySummaryobjects.- 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 thePolicySummaryobjects.PolicySummary.Builderavoiding the need to create one manually viaPolicySummary.builder().When the
Consumercompletes,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
PolicySummaryobjects than the number that you specified forMaxResultsin the request, the response includes aNextTokenvalue. To list morePolicySummaryobjects, submit anotherListPoliciesrequest, and specify theNextTokenvalue from the response in theNextTokenvalue in the next request.- Parameters:
nextToken- If you have morePolicySummaryobjects than the number that you specified forMaxResultsin the request, the response includes aNextTokenvalue. To list morePolicySummaryobjects, submit anotherListPoliciesrequest, and specify theNextTokenvalue from the response in theNextTokenvalue in the next request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-