Class CfnChannelNamespaceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appsync.CfnChannelNamespaceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelNamespaceMixinProps>
- Enclosing interface:
CfnChannelNamespaceMixinProps
@Stability(Stable)
public static final class CfnChannelNamespaceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelNamespaceMixinProps>
A builder for
CfnChannelNamespaceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannelNamespaceMixinProps.getApiId()build()Builds the configured instance.codeHandlers(String codeHandlers) Sets the value ofCfnChannelNamespaceMixinProps.getCodeHandlers()codeS3Location(String codeS3Location) Sets the value ofCfnChannelNamespaceMixinProps.getCodeS3Location()handlerConfigs(CfnChannelNamespacePropsMixin.HandlerConfigsProperty handlerConfigs) Sets the value ofCfnChannelNamespaceMixinProps.getHandlerConfigs()handlerConfigs(IResolvable handlerConfigs) Sets the value ofCfnChannelNamespaceMixinProps.getHandlerConfigs()Sets the value ofCfnChannelNamespaceMixinProps.getName()publishAuthModes(List<? extends Object> publishAuthModes) Sets the value ofCfnChannelNamespaceMixinProps.getPublishAuthModes()publishAuthModes(IResolvable publishAuthModes) Sets the value ofCfnChannelNamespaceMixinProps.getPublishAuthModes()subscribeAuthModes(List<? extends Object> subscribeAuthModes) Sets the value ofCfnChannelNamespaceMixinProps.getSubscribeAuthModes()subscribeAuthModes(IResolvable subscribeAuthModes) Sets the value ofCfnChannelNamespaceMixinProps.getSubscribeAuthModes()Sets the value ofCfnChannelNamespaceMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnChannelNamespaceMixinProps.getApiId()- Parameters:
apiId- TheApiID.- Returns:
this
-
codeHandlers
Sets the value ofCfnChannelNamespaceMixinProps.getCodeHandlers()- Parameters:
codeHandlers- The event handler functions that run custom business logic to process published events and subscribe requests.- Returns:
this
-
codeS3Location
@Stability(Stable) public CfnChannelNamespaceMixinProps.Builder codeS3Location(String codeS3Location) Sets the value ofCfnChannelNamespaceMixinProps.getCodeS3Location()- Parameters:
codeS3Location- The Amazon S3 endpoint where the code is located.- Returns:
this
-
handlerConfigs
@Stability(Stable) public CfnChannelNamespaceMixinProps.Builder handlerConfigs(IResolvable handlerConfigs) Sets the value ofCfnChannelNamespaceMixinProps.getHandlerConfigs()- Parameters:
handlerConfigs- The configuration for theOnPublishandOnSubscribehandlers.- Returns:
this
-
handlerConfigs
@Stability(Stable) public CfnChannelNamespaceMixinProps.Builder handlerConfigs(CfnChannelNamespacePropsMixin.HandlerConfigsProperty handlerConfigs) Sets the value ofCfnChannelNamespaceMixinProps.getHandlerConfigs()- Parameters:
handlerConfigs- The configuration for theOnPublishandOnSubscribehandlers.- Returns:
this
-
name
Sets the value ofCfnChannelNamespaceMixinProps.getName()- Parameters:
name- The name of the channel namespace. This name must be unique within theApi.- Returns:
this
-
publishAuthModes
@Stability(Stable) public CfnChannelNamespaceMixinProps.Builder publishAuthModes(IResolvable publishAuthModes) Sets the value ofCfnChannelNamespaceMixinProps.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 CfnChannelNamespaceMixinProps.Builder publishAuthModes(List<? extends Object> publishAuthModes) Sets the value ofCfnChannelNamespaceMixinProps.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 CfnChannelNamespaceMixinProps.Builder subscribeAuthModes(IResolvable subscribeAuthModes) Sets the value ofCfnChannelNamespaceMixinProps.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 CfnChannelNamespaceMixinProps.Builder subscribeAuthModes(List<? extends Object> subscribeAuthModes) Sets the value ofCfnChannelNamespaceMixinProps.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 ofCfnChannelNamespaceMixinProps.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<CfnChannelNamespaceMixinProps>- Returns:
- a new instance of
CfnChannelNamespaceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-