Interface ListPolicyGenerationsResponse.Builder
- All Superinterfaces:
AccessAnalyzerResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<ListPolicyGenerationsResponse.Builder,
,ListPolicyGenerationsResponse> SdkBuilder<ListPolicyGenerationsResponse.Builder,
,ListPolicyGenerationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListPolicyGenerationsResponse
public static interface ListPolicyGenerationsResponse.Builder
extends AccessAnalyzerResponse.Builder, SdkPojo, CopyableBuilder<ListPolicyGenerationsResponse.Builder,ListPolicyGenerationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA token used for pagination of results returned.policyGenerations
(Collection<PolicyGeneration> policyGenerations) APolicyGeneration
object that contains details about the generated policy.policyGenerations
(Consumer<PolicyGeneration.Builder>... policyGenerations) APolicyGeneration
object that contains details about the generated policy.policyGenerations
(PolicyGeneration... policyGenerations) APolicyGeneration
object that contains details about the generated policy.Methods inherited from interface software.amazon.awssdk.services.accessanalyzer.model.AccessAnalyzerResponse.Builder
build, responseMetadata, responseMetadata
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
-
Method Details
-
policyGenerations
ListPolicyGenerationsResponse.Builder policyGenerations(Collection<PolicyGeneration> policyGenerations) A
PolicyGeneration
object that contains details about the generated policy.- Parameters:
policyGenerations
- APolicyGeneration
object that contains details about the generated policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyGenerations
A
PolicyGeneration
object that contains details about the generated policy.- Parameters:
policyGenerations
- APolicyGeneration
object that contains details about the generated policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyGenerations
ListPolicyGenerationsResponse.Builder policyGenerations(Consumer<PolicyGeneration.Builder>... policyGenerations) A
This is a convenience method that creates an instance of thePolicyGeneration
object that contains details about the generated policy.PolicyGeneration.Builder
avoiding the need to create one manually viaPolicyGeneration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicyGenerations(List<PolicyGeneration>)
.- Parameters:
policyGenerations
- a consumer that will call methods onPolicyGeneration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A token used for pagination of results returned.
- Parameters:
nextToken
- A token used for pagination of results returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-