Class SourceApiOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.SourceApiOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceApiOptions>
- Enclosing interface:
SourceApiOptions
@Stability(Stable)
public static final class SourceApiOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SourceApiOptions>
A builder for
SourceApiOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.mergedApiExecutionRole
(Role mergedApiExecutionRole) Sets the value ofSourceApiOptions.getMergedApiExecutionRole()
sourceApis
(List<? extends SourceApi> sourceApis) Sets the value ofSourceApiOptions.getSourceApis()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceApis
Sets the value ofSourceApiOptions.getSourceApis()
- Parameters:
sourceApis
- Definition of source APIs associated with this Merged API. This parameter is required.- Returns:
this
-
mergedApiExecutionRole
@Stability(Stable) public SourceApiOptions.Builder mergedApiExecutionRole(Role mergedApiExecutionRole) Sets the value ofSourceApiOptions.getMergedApiExecutionRole()
- Parameters:
mergedApiExecutionRole
- IAM Role used to validate access to source APIs at runtime and to update the merged API endpoint with the source API changes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SourceApiOptions>
- Returns:
- a new instance of
SourceApiOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-