Class CfnSourceApiAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnSourceApiAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSourceApiAssociationProps>
- Enclosing interface:
CfnSourceApiAssociationProps
@Stability(Stable)
public static final class CfnSourceApiAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSourceApiAssociationProps>
A builder for
CfnSourceApiAssociationProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnSourceApiAssociationProps.getDescription()
mergedApiIdentifier
(String mergedApiIdentifier) Sets the value ofCfnSourceApiAssociationProps.getMergedApiIdentifier()
sourceApiAssociationConfig
(IResolvable sourceApiAssociationConfig) Sets the value ofCfnSourceApiAssociationProps.getSourceApiAssociationConfig()
sourceApiAssociationConfig
(CfnSourceApiAssociation.SourceApiAssociationConfigProperty sourceApiAssociationConfig) Sets the value ofCfnSourceApiAssociationProps.getSourceApiAssociationConfig()
sourceApiIdentifier
(String sourceApiIdentifier) Sets the value ofCfnSourceApiAssociationProps.getSourceApiIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnSourceApiAssociationProps.getDescription()
- Parameters:
description
- The description field of the association configuration.- Returns:
this
-
mergedApiIdentifier
@Stability(Stable) public CfnSourceApiAssociationProps.Builder mergedApiIdentifier(String mergedApiIdentifier) Sets the value ofCfnSourceApiAssociationProps.getMergedApiIdentifier()
- Parameters:
mergedApiIdentifier
- The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.- Returns:
this
-
sourceApiAssociationConfig
@Stability(Stable) public CfnSourceApiAssociationProps.Builder sourceApiAssociationConfig(IResolvable sourceApiAssociationConfig) Sets the value ofCfnSourceApiAssociationProps.getSourceApiAssociationConfig()
- Parameters:
sourceApiAssociationConfig
- TheSourceApiAssociationConfig
object data.- Returns:
this
-
sourceApiAssociationConfig
@Stability(Stable) public CfnSourceApiAssociationProps.Builder sourceApiAssociationConfig(CfnSourceApiAssociation.SourceApiAssociationConfigProperty sourceApiAssociationConfig) Sets the value ofCfnSourceApiAssociationProps.getSourceApiAssociationConfig()
- Parameters:
sourceApiAssociationConfig
- TheSourceApiAssociationConfig
object data.- Returns:
this
-
sourceApiIdentifier
@Stability(Stable) public CfnSourceApiAssociationProps.Builder sourceApiIdentifier(String sourceApiIdentifier) Sets the value ofCfnSourceApiAssociationProps.getSourceApiIdentifier()
- Parameters:
sourceApiIdentifier
- The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSourceApiAssociationProps>
- Returns:
- a new instance of
CfnSourceApiAssociationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-