Class SourceApiAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.SourceApiAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceApiAssociationProps>
- Enclosing interface:
SourceApiAssociationProps
@Stability(Stable)
public static final class SourceApiAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<SourceApiAssociationProps>
A builder for
SourceApiAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofSourceApiAssociationProps.getDescription()mergedApi(IGraphqlApi mergedApi) Sets the value ofSourceApiAssociationProps.getMergedApi()mergedApiExecutionRole(IRole mergedApiExecutionRole) Sets the value ofSourceApiAssociationProps.getMergedApiExecutionRole()Sets the value ofSourceApiAssociationProps.getMergeType()sourceApi(IGraphqlApi sourceApi) Sets the value ofSourceApiAssociationProps.getSourceApi()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mergedApi
Sets the value ofSourceApiAssociationProps.getMergedApi()- Parameters:
mergedApi- The merged api to associate. This parameter is required.- Returns:
this
-
mergedApiExecutionRole
@Stability(Stable) public SourceApiAssociationProps.Builder mergedApiExecutionRole(IRole mergedApiExecutionRole) Sets the value ofSourceApiAssociationProps.getMergedApiExecutionRole()- Parameters:
mergedApiExecutionRole- The merged api execution role for adding the access policy for the source api. This parameter is required.- Returns:
this
-
sourceApi
Sets the value ofSourceApiAssociationProps.getSourceApi()- Parameters:
sourceApi- The source api to associate. This parameter is required.- Returns:
this
-
description
Sets the value ofSourceApiAssociationProps.getDescription()- Parameters:
description- The description of the source api association.- Returns:
this
-
mergeType
Sets the value ofSourceApiAssociationProps.getMergeType()- Parameters:
mergeType- The merge type for the source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SourceApiAssociationProps>- Returns:
- a new instance of
SourceApiAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-