Interface PutApplicationPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PutApplicationPolicyResponse.Builder,
,PutApplicationPolicyResponse> SdkBuilder<PutApplicationPolicyResponse.Builder,
,PutApplicationPolicyResponse> SdkPojo
,SdkResponse.Builder
,ServerlessApplicationRepositoryResponse.Builder
- Enclosing class:
PutApplicationPolicyResponse
public static interface PutApplicationPolicyResponse.Builder
extends ServerlessApplicationRepositoryResponse.Builder, SdkPojo, CopyableBuilder<PutApplicationPolicyResponse.Builder,PutApplicationPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionstatements
(Collection<ApplicationPolicyStatement> statements) An array of policy statements applied to the application.statements
(Consumer<ApplicationPolicyStatement.Builder>... statements) An array of policy statements applied to the application.statements
(ApplicationPolicyStatement... statements) An array of policy statements applied to the application.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
Methods inherited from interface software.amazon.awssdk.services.serverlessapplicationrepository.model.ServerlessApplicationRepositoryResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
statements
An array of policy statements applied to the application.
- Parameters:
statements
- An array of policy statements applied to the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statements
An array of policy statements applied to the application.
- Parameters:
statements
- An array of policy statements applied to the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statements
PutApplicationPolicyResponse.Builder statements(Consumer<ApplicationPolicyStatement.Builder>... statements) An array of policy statements applied to the application.
This is a convenience method that creates an instance of theApplicationPolicyStatement.Builder
avoiding the need to create one manually viaApplicationPolicyStatement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatements(List<ApplicationPolicyStatement>)
.- Parameters:
statements
- a consumer that will call methods onApplicationPolicyStatement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-