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