Class CfnChannelNamespaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnChannelNamespaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelNamespaceProps>
- Enclosing interface:
CfnChannelNamespaceProps
@Stability(Stable)
public static final class CfnChannelNamespaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelNamespaceProps>
A builder for
CfnChannelNamespaceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannelNamespaceProps.getApiId()build()Builds the configured instance.codeHandlers(String codeHandlers) Sets the value ofCfnChannelNamespaceProps.getCodeHandlers()codeS3Location(String codeS3Location) Sets the value ofCfnChannelNamespaceProps.getCodeS3Location()handlerConfigs(IResolvable handlerConfigs) Sets the value ofCfnChannelNamespaceProps.getHandlerConfigs()handlerConfigs(CfnChannelNamespace.HandlerConfigsProperty handlerConfigs) Sets the value ofCfnChannelNamespaceProps.getHandlerConfigs()Sets the value ofCfnChannelNamespaceProps.getName()publishAuthModes(List<? extends Object> publishAuthModes) Sets the value ofCfnChannelNamespaceProps.getPublishAuthModes()publishAuthModes(IResolvable publishAuthModes) Sets the value ofCfnChannelNamespaceProps.getPublishAuthModes()subscribeAuthModes(List<? extends Object> subscribeAuthModes) Sets the value ofCfnChannelNamespaceProps.getSubscribeAuthModes()subscribeAuthModes(IResolvable subscribeAuthModes) Sets the value ofCfnChannelNamespaceProps.getSubscribeAuthModes()Sets the value ofCfnChannelNamespaceProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnChannelNamespaceProps.getApiId()- Parameters:
apiId- TheApiID. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnChannelNamespaceProps.getName()- Parameters:
name- The name of the channel namespace. This parameter is required. This name must be unique within theApi.- Returns:
this
-
codeHandlers
Sets the value ofCfnChannelNamespaceProps.getCodeHandlers()- Parameters:
codeHandlers- The event handler functions that run custom business logic to process published events and subscribe requests.- Returns:
this
-
codeS3Location
Sets the value ofCfnChannelNamespaceProps.getCodeS3Location()- Parameters:
codeS3Location- The Amazon S3 endpoint where the code is located.- Returns:
this
-
handlerConfigs
@Stability(Stable) public CfnChannelNamespaceProps.Builder handlerConfigs(IResolvable handlerConfigs) Sets the value ofCfnChannelNamespaceProps.getHandlerConfigs()- Parameters:
handlerConfigs- The configuration for theOnPublishandOnSubscribehandlers.- Returns:
this
-
handlerConfigs
@Stability(Stable) public CfnChannelNamespaceProps.Builder handlerConfigs(CfnChannelNamespace.HandlerConfigsProperty handlerConfigs) Sets the value ofCfnChannelNamespaceProps.getHandlerConfigs()- Parameters:
handlerConfigs- The configuration for theOnPublishandOnSubscribehandlers.- Returns:
this
-
publishAuthModes
@Stability(Stable) public CfnChannelNamespaceProps.Builder publishAuthModes(IResolvable publishAuthModes) Sets the value ofCfnChannelNamespaceProps.getPublishAuthModes()- Parameters:
publishAuthModes- The authorization mode to use for publishing messages on the channel namespace. This configuration overrides the defaultApiauthorization configuration.- Returns:
this
-
publishAuthModes
@Stability(Stable) public CfnChannelNamespaceProps.Builder publishAuthModes(List<? extends Object> publishAuthModes) Sets the value ofCfnChannelNamespaceProps.getPublishAuthModes()- Parameters:
publishAuthModes- The authorization mode to use for publishing messages on the channel namespace. This configuration overrides the defaultApiauthorization configuration.- Returns:
this
-
subscribeAuthModes
@Stability(Stable) public CfnChannelNamespaceProps.Builder subscribeAuthModes(IResolvable subscribeAuthModes) Sets the value ofCfnChannelNamespaceProps.getSubscribeAuthModes()- Parameters:
subscribeAuthModes- The authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the defaultApiauthorization configuration.- Returns:
this
-
subscribeAuthModes
@Stability(Stable) public CfnChannelNamespaceProps.Builder subscribeAuthModes(List<? extends Object> subscribeAuthModes) Sets the value ofCfnChannelNamespaceProps.getSubscribeAuthModes()- Parameters:
subscribeAuthModes- The authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the defaultApiauthorization configuration.- Returns:
this
-
tags
Sets the value ofCfnChannelNamespaceProps.getTags()- Parameters:
tags- A set of tags (key-value pairs) for this channel namespace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelNamespaceProps>- Returns:
- a new instance of
CfnChannelNamespaceProps - Throws:
NullPointerException- if any required attribute was not provided
-