Class ChannelNamespaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.ChannelNamespaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ChannelNamespaceProps>
- Enclosing interface:
ChannelNamespaceProps
@Stability(Stable)
public static final class ChannelNamespaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<ChannelNamespaceProps>
A builder for
ChannelNamespaceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofChannelNamespaceProps.getApi()authorizationConfig(NamespaceAuthConfig authorizationConfig) Sets the value ofBaseChannelNamespaceProps.getAuthorizationConfig()build()Builds the configured instance.channelNamespaceName(String channelNamespaceName) Sets the value ofBaseChannelNamespaceProps.getChannelNamespaceName()Sets the value ofBaseChannelNamespaceProps.getCode()publishHandlerConfig(HandlerConfig publishHandlerConfig) Sets the value ofBaseChannelNamespaceProps.getPublishHandlerConfig()subscribeHandlerConfig(HandlerConfig subscribeHandlerConfig) Sets the value ofBaseChannelNamespaceProps.getSubscribeHandlerConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
api
Sets the value ofChannelNamespaceProps.getApi()- Parameters:
api- The API this channel namespace is associated with. This parameter is required.- Returns:
this
-
authorizationConfig
@Stability(Stable) public ChannelNamespaceProps.Builder authorizationConfig(NamespaceAuthConfig authorizationConfig) Sets the value ofBaseChannelNamespaceProps.getAuthorizationConfig()- Parameters:
authorizationConfig- Authorization config for channel namespace.- Returns:
this
-
channelNamespaceName
@Stability(Stable) public ChannelNamespaceProps.Builder channelNamespaceName(String channelNamespaceName) Sets the value ofBaseChannelNamespaceProps.getChannelNamespaceName()- Parameters:
channelNamespaceName- the name of the channel namespace.- Returns:
this
-
code
Sets the value ofBaseChannelNamespaceProps.getCode()- Parameters:
code- The Event Handler code.- Returns:
this
-
publishHandlerConfig
@Stability(Stable) public ChannelNamespaceProps.Builder publishHandlerConfig(HandlerConfig publishHandlerConfig) Sets the value ofBaseChannelNamespaceProps.getPublishHandlerConfig()- Parameters:
publishHandlerConfig- onPublish handler config.- Returns:
this
-
subscribeHandlerConfig
@Stability(Stable) public ChannelNamespaceProps.Builder subscribeHandlerConfig(HandlerConfig subscribeHandlerConfig) Sets the value ofBaseChannelNamespaceProps.getSubscribeHandlerConfig()- Parameters:
subscribeHandlerConfig- onSubscribe handler config.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ChannelNamespaceProps>- Returns:
- a new instance of
ChannelNamespaceProps - Throws:
NullPointerException- if any required attribute was not provided
-