Class CfnApiProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnApiProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiProps>
- Enclosing interface:
CfnApiProps
@Stability(Stable)
public static final class CfnApiProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiProps>
A builder for
CfnApiProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventConfig(IResolvable eventConfig) Sets the value ofCfnApiProps.getEventConfig()eventConfig(CfnApi.EventConfigProperty eventConfig) Sets the value ofCfnApiProps.getEventConfig()Sets the value ofCfnApiProps.getName()ownerContact(String ownerContact) Sets the value ofCfnApiProps.getOwnerContact()Sets the value ofCfnApiProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnApiProps.getName()- Parameters:
name- The API name. This parameter is required.- Returns:
this
-
eventConfig
Sets the value ofCfnApiProps.getEventConfig()- Parameters:
eventConfig- The configuration for an Event Api.- Returns:
this
-
eventConfig
Sets the value ofCfnApiProps.getEventConfig()- Parameters:
eventConfig- The configuration for an Event Api.- Returns:
this
-
ownerContact
Sets the value ofCfnApiProps.getOwnerContact()- Parameters:
ownerContact- The owner contact information for an API resource. This field accepts any string input with a length of 0 - 256 characters.- Returns:
this
-
tags
Sets the value ofCfnApiProps.getTags()- Parameters:
tags- The tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApiProps>- Returns:
- a new instance of
CfnApiProps - Throws:
NullPointerException- if any required attribute was not provided
-