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
-
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 name of theApi
. This parameter is required.- Returns:
this
-
eventConfig
Sets the value ofCfnApiProps.getEventConfig()
- Parameters:
eventConfig
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.- Returns:
this
-
eventConfig
Sets the value ofCfnApiProps.getEventConfig()
- Parameters:
eventConfig
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging 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
- A set of tags (key-value pairs) for this API.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApiProps>
- Returns:
- a new instance of
CfnApiProps
- Throws:
NullPointerException
- if any required attribute was not provided
-