Interface ListPolicyGenerationsResponse.Builder
- All Superinterfaces:
AccessAnalyzerResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<ListPolicyGenerationsResponse.Builder,,ListPolicyGenerationsResponse> SdkBuilder<ListPolicyGenerationsResponse.Builder,,ListPolicyGenerationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListPolicyGenerationsResponse
@Mutable
@NotThreadSafe
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) APolicyGenerationobject that contains details about the generated policy.policyGenerations(Consumer<PolicyGeneration.Builder>... policyGenerations) APolicyGenerationobject that contains details about the generated policy.policyGenerations(PolicyGeneration... policyGenerations) APolicyGenerationobject that contains details about the generated policy.Methods inherited from interface software.amazon.awssdk.services.accessanalyzer.model.AccessAnalyzerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policyGenerations
ListPolicyGenerationsResponse.Builder policyGenerations(Collection<PolicyGeneration> policyGenerations) A
PolicyGenerationobject that contains details about the generated policy.- Parameters:
policyGenerations- APolicyGenerationobject that contains details about the generated policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyGenerations
A
PolicyGenerationobject that contains details about the generated policy.- Parameters:
policyGenerations- APolicyGenerationobject 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 thePolicyGenerationobject that contains details about the generated policy.PolicyGeneration.Builderavoiding the need to create one manually viaPolicyGeneration.builder().When the
Consumercompletes,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.
-