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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListPoliciesResponse.BuildernextToken(String nextToken)If you have morePolicySummaryobjects than the number that you specified forMaxResultsin the request, the response includes aNextTokenvalue.ListPoliciesResponse.BuilderpolicyList(Collection<PolicySummary> policyList)An array ofPolicySummaryobjects.ListPoliciesResponse.BuilderpolicyList(Consumer<PolicySummary.Builder>... policyList)An array ofPolicySummaryobjects.ListPoliciesResponse.BuilderpolicyList(PolicySummary... policyList)An array ofPolicySummaryobjects.-
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 Detail
-
policyList
ListPoliciesResponse.Builder policyList(Collection<PolicySummary> 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
ListPoliciesResponse.Builder policyList(PolicySummary... 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
ListPoliciesResponse.Builder policyList(Consumer<PolicySummary.Builder>... 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 to#policyList(List.) - 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:
#policyList(java.util.Collection)
-
nextToken
ListPoliciesResponse.Builder nextToken(String 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.
-
-