Class SourceApi.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.SourceApi.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceApi>
- Enclosing interface:
SourceApi
@Stability(Stable)
public static final class SourceApi.Builder
extends Object
implements software.amazon.jsii.Builder<SourceApi>
A builder for
SourceApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofSourceApi.getDescription()
Sets the value ofSourceApi.getMergeType()
sourceApi
(IGraphqlApi sourceApi) Sets the value ofSourceApi.getSourceApi()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceApi
Sets the value ofSourceApi.getSourceApi()
- Parameters:
sourceApi
- Source API that is associated with the merged API. This parameter is required.- Returns:
this
-
description
Sets the value ofSourceApi.getDescription()
- Parameters:
description
- Description of the Source API asssociation.- Returns:
this
-
mergeType
Sets the value ofSourceApi.getMergeType()
- Parameters:
mergeType
- Merging option used to associate the source API to the Merged API.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SourceApi>
- Returns:
- a new instance of
SourceApi
- Throws:
NullPointerException
- if any required attribute was not provided
-