Interface PutApplicationPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutApplicationPolicyRequest.Builder,
,PutApplicationPolicyRequest> SdkBuilder<PutApplicationPolicyRequest.Builder,
,PutApplicationPolicyRequest> SdkPojo
,SdkRequest.Builder
,ServerlessApplicationRepositoryRequest.Builder
- Enclosing class:
PutApplicationPolicyRequest
public static interface PutApplicationPolicyRequest.Builder
extends ServerlessApplicationRepositoryRequest.Builder, SdkPojo, CopyableBuilder<PutApplicationPolicyRequest.Builder,PutApplicationPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The Amazon Resource Name (ARN) of the application.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.statements
(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.awscore.AwsRequest.Builder
overrideConfiguration
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.services.serverlessapplicationrepository.model.ServerlessApplicationRepositoryRequest.Builder
build
-
Method Details
-
applicationId
The Amazon Resource Name (ARN) of the application.
- Parameters:
applicationId
- The Amazon Resource Name (ARN) of 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
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
PutApplicationPolicyRequest.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:
-
overrideConfiguration
PutApplicationPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutApplicationPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-