Class SourceApiAssociationAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.SourceApiAssociationAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceApiAssociationAttributes>
- Enclosing interface:
SourceApiAssociationAttributes
@Stability(Stable)
public static final class SourceApiAssociationAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<SourceApiAssociationAttributes>
A builder for
SourceApiAssociationAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociationArn
(String associationArn) Sets the value ofSourceApiAssociationAttributes.getAssociationArn()
build()
Builds the configured instance.mergedApi
(IGraphqlApi mergedApi) Sets the value ofSourceApiAssociationAttributes.getMergedApi()
sourceApi
(IGraphqlApi sourceApi) Sets the value ofSourceApiAssociationAttributes.getSourceApi()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
associationArn
@Stability(Stable) public SourceApiAssociationAttributes.Builder associationArn(String associationArn) Sets the value ofSourceApiAssociationAttributes.getAssociationArn()
- Parameters:
associationArn
- The association arn. This parameter is required.- Returns:
this
-
mergedApi
Sets the value ofSourceApiAssociationAttributes.getMergedApi()
- Parameters:
mergedApi
- The merged api in the association. This parameter is required.- Returns:
this
-
sourceApi
Sets the value ofSourceApiAssociationAttributes.getSourceApi()
- Parameters:
sourceApi
- The source api in the association. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SourceApiAssociationAttributes>
- Returns:
- a new instance of
SourceApiAssociationAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-