Interface ChannelNamespace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ChannelNamespace.Builder,
,ChannelNamespace> SdkBuilder<ChannelNamespace.Builder,
,ChannelNamespace> SdkPojo
- Enclosing class:
ChannelNamespace
-
Method Summary
Modifier and TypeMethodDescriptionTheApi
ID.channelNamespaceArn
(String channelNamespaceArn) The Amazon Resource Name (ARN) for theChannelNamespace
.codeHandlers
(String codeHandlers) The event handler functions that run custom business logic to process published events and subscribe requests.The date and time that theChannelNamespace
was created.default ChannelNamespace.Builder
handlerConfigs
(Consumer<HandlerConfigs.Builder> handlerConfigs) The configuration for theOnPublish
andOnSubscribe
handlers.handlerConfigs
(HandlerConfigs handlerConfigs) The configuration for theOnPublish
andOnSubscribe
handlers.lastModified
(Instant lastModified) The date and time that theChannelNamespace
was last changed.The name of the channel namespace.publishAuthModes
(Collection<AuthMode> publishAuthModes) The authorization mode to use for publishing messages on the channel namespace.publishAuthModes
(Consumer<AuthMode.Builder>... publishAuthModes) The authorization mode to use for publishing messages on the channel namespace.publishAuthModes
(AuthMode... publishAuthModes) The authorization mode to use for publishing messages on the channel namespace.subscribeAuthModes
(Collection<AuthMode> subscribeAuthModes) The authorization mode to use for subscribing to messages on the channel namespace.subscribeAuthModes
(Consumer<AuthMode.Builder>... subscribeAuthModes) The authorization mode to use for subscribing to messages on the channel namespace.subscribeAuthModes
(AuthMode... subscribeAuthModes) The authorization mode to use for subscribing to messages on the channel namespace.Sets the value of the Tags property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
apiId
The
Api
ID.- Parameters:
apiId
- TheApi
ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the channel namespace. This name must be unique within the
Api
.- Parameters:
name
- The name of the channel namespace. This name must be unique within theApi
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscribeAuthModes
The authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the default
Api
authorization configuration.- Parameters:
subscribeAuthModes
- The authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the defaultApi
authorization configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscribeAuthModes
The authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the default
Api
authorization configuration.- Parameters:
subscribeAuthModes
- The authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the defaultApi
authorization configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscribeAuthModes
The authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the default
This is a convenience method that creates an instance of theApi
authorization configuration.AuthMode.Builder
avoiding the need to create one manually viaAuthMode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubscribeAuthModes(List<AuthMode>)
.- Parameters:
subscribeAuthModes
- a consumer that will call methods onAuthMode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publishAuthModes
The authorization mode to use for publishing messages on the channel namespace. This configuration overrides the default
Api
authorization configuration.- Parameters:
publishAuthModes
- The authorization mode to use for publishing messages on the channel namespace. This configuration overrides the defaultApi
authorization configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publishAuthModes
The authorization mode to use for publishing messages on the channel namespace. This configuration overrides the default
Api
authorization configuration.- Parameters:
publishAuthModes
- The authorization mode to use for publishing messages on the channel namespace. This configuration overrides the defaultApi
authorization configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publishAuthModes
The authorization mode to use for publishing messages on the channel namespace. This configuration overrides the default
This is a convenience method that creates an instance of theApi
authorization configuration.AuthMode.Builder
avoiding the need to create one manually viaAuthMode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topublishAuthModes(List<AuthMode>)
.- Parameters:
publishAuthModes
- a consumer that will call methods onAuthMode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
codeHandlers
The event handler functions that run custom business logic to process published events and subscribe requests.
- Parameters:
codeHandlers
- The event handler functions that run custom business logic to process published events and subscribe requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags
- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channelNamespaceArn
The Amazon Resource Name (ARN) for the
ChannelNamespace
.- Parameters:
channelNamespaceArn
- The Amazon Resource Name (ARN) for theChannelNamespace
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
created
The date and time that the
ChannelNamespace
was created.- Parameters:
created
- The date and time that theChannelNamespace
was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModified
The date and time that the
ChannelNamespace
was last changed.- Parameters:
lastModified
- The date and time that theChannelNamespace
was last changed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
handlerConfigs
The configuration for the
OnPublish
andOnSubscribe
handlers.- Parameters:
handlerConfigs
- The configuration for theOnPublish
andOnSubscribe
handlers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
handlerConfigs
The configuration for the
This is a convenience method that creates an instance of theOnPublish
andOnSubscribe
handlers.HandlerConfigs.Builder
avoiding the need to create one manually viaHandlerConfigs.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohandlerConfigs(HandlerConfigs)
.- Parameters:
handlerConfigs
- a consumer that will call methods onHandlerConfigs.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-