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
overrideConfigurationMethods 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, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaApplicationPolicyStatement.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-