public static class WebChannel.Builder extends Object
Constructor and Description |
---|
Builder() |
public WebChannel.Builder id(String id)
public WebChannel.Builder name(String name)
public WebChannel.Builder description(String description)
public WebChannel.Builder category(ChannelCategory category)
public WebChannel.Builder sessionExpiryDurationInMilliseconds(Long sessionExpiryDurationInMilliseconds)
public WebChannel.Builder lifecycleState(LifecycleState lifecycleState)
public WebChannel.Builder timeCreated(Date timeCreated)
public WebChannel.Builder timeUpdated(Date timeUpdated)
public WebChannel.Builder freeformTags(Map<String,String> freeformTags)
public WebChannel.Builder maxTokenExpirationTimeInMinutes(Long maxTokenExpirationTimeInMinutes)
The maximum time until the token expires (in minutes).
maxTokenExpirationTimeInMinutes
- the value to setpublic WebChannel.Builder isClientAuthenticationEnabled(Boolean isClientAuthenticationEnabled)
Whether client authentication is enabled or not.
isClientAuthenticationEnabled
- the value to setpublic WebChannel.Builder allowedDomains(String allowedDomains)
A comma-delimited whitelist of allowed domains.
The channel will only communicate with the sites from the domains that you add to this list. For example, *.corp.example.com, *.hdr.example.com. Entering a single asterisk (*) allows unrestricted access to the channel from any domain.
Typically, you'd only enter a single asterisk during development. For production, you would add an allowlist of domains.
allowedDomains
- the value to setpublic WebChannel.Builder botId(String botId)
The ID of the Skill or Digital Assistant that the Channel is routed to.
botId
- the value to setpublic WebChannel build()
public WebChannel.Builder copy(WebChannel model)
Copyright © 2016–2024. All rights reserved.