Interface GetApplicationPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetApplicationPolicyResponse.Builder,,GetApplicationPolicyResponse> SdkBuilder<GetApplicationPolicyResponse.Builder,,GetApplicationPolicyResponse> SdkPojo,SdkResponse.Builder,ServerlessApplicationRepositoryResponse.Builder
- Enclosing class:
GetApplicationPolicyResponse
@Mutable
@NotThreadSafe
public static interface GetApplicationPolicyResponse.Builder
extends ServerlessApplicationRepositoryResponse.Builder, SdkPojo, CopyableBuilder<GetApplicationPolicyResponse.Builder,GetApplicationPolicyResponse>
-
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
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, sdkHttpResponseMethods 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
GetApplicationPolicyResponse.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:
-