public static final class ChannelView.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ChannelView.Builder |
addAllAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Add all attributes to the channel.
|
ChannelView.Builder |
addAllDeviceAttributes(java.util.Map<java.lang.String,java.lang.String> deviceAttributes)
Add all device attributes to the channel.
|
ChannelView.Builder |
addAllTagGroups(<any> tagGroups)
Add all the tag groups with tags
|
ChannelView.Builder |
addAllTags(java.lang.Iterable<java.lang.String> tags)
Set the channel tags
|
ChannelView.Builder |
addTag(java.lang.String tag)
Add a tag
|
ChannelView.Builder |
addTagGroup(java.util.Map.Entry<java.lang.String,<any>> tagGroup)
Add a tag group with tags
|
ChannelView |
build()
Build the ChannelView object
|
ChannelView.Builder |
setAddress(java.lang.String address)
Set the address.
|
ChannelView.Builder |
setAlias(java.lang.String alias)
Set the alias
|
ChannelView.Builder |
setBackground(java.lang.Boolean background)
Set the background status
|
ChannelView.Builder |
setChannelId(java.lang.String channelId)
Set the channel ID
|
ChannelView.Builder |
setChannelType(java.lang.String channelType)
Set the channel type
|
ChannelView.Builder |
setCommercialOptedIn(DateTime commercialOptedIn)
Set the commercialOptedIn time
|
ChannelView.Builder |
setCommercialOptedOut(DateTime commercialOptedOut)
Set the commercialOptedOut time
|
ChannelView.Builder |
setCreated(DateTime created)
Set the created time
|
ChannelView.Builder |
setInstalled(java.lang.Boolean installed)
Set the installed status
|
ChannelView.Builder |
setIosSettings(IosSettings iosSettings)
Set the iOS settings
|
ChannelView.Builder |
setLastRegistration(DateTime lastRegistration)
Set the last registration time
|
ChannelView.Builder |
setNamedUser(java.lang.String namedUser)
Set the named user.
|
ChannelView.Builder |
setOpenChannel(OpenChannel openChannel)
Set the OpenChannel Platform Options Object.
|
ChannelView.Builder |
setOptIn(java.lang.Boolean optIn)
Set the opt-in status
|
ChannelView.Builder |
setPushAddress(java.lang.String pushAddress)
Set the push address
|
ChannelView.Builder |
setTransactionalOptedIn(DateTime transactionalOptedIn)
Set the transactionalOptedIn time
|
ChannelView.Builder |
setTransactionalOptedOut(DateTime transactionalOptedOut)
Set the transactionalOptedOut time
|
ChannelView.Builder |
setWebSettings(WebSettings webSettings)
Set the webSettings object
|
public ChannelView.Builder addAllAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
- Map of Strings attributespublic ChannelView.Builder addAllDeviceAttributes(java.util.Map<java.lang.String,java.lang.String> deviceAttributes)
deviceAttributes
- Map of Strings deviceAttributespublic ChannelView.Builder setChannelId(java.lang.String channelId)
channelId
- Stringpublic ChannelView.Builder setChannelType(java.lang.String channelType)
channelType
- Stringpublic ChannelView.Builder setInstalled(java.lang.Boolean installed)
installed
- booleanpublic ChannelView.Builder setOptIn(java.lang.Boolean optIn)
optIn
- booleanpublic ChannelView.Builder setBackground(java.lang.Boolean background)
background
- booleanpublic ChannelView.Builder setPushAddress(java.lang.String pushAddress)
pushAddress
- Stringpublic ChannelView.Builder setCreated(DateTime created)
created
- DateTimepublic ChannelView.Builder setLastRegistration(DateTime lastRegistration)
lastRegistration
- DateTimepublic ChannelView.Builder setAlias(java.lang.String alias)
alias
- Stringpublic ChannelView.Builder addAllTags(java.lang.Iterable<java.lang.String> tags)
tags
- Iterable of tagspublic ChannelView.Builder addTag(java.lang.String tag)
tag
- Stringpublic ChannelView.Builder addTagGroup(java.util.Map.Entry<java.lang.String,<any>> tagGroup)
tagGroup
- A map entry of a tag group and ImmutableSet of tagspublic ChannelView.Builder addAllTagGroups(<any> tagGroups)
tagGroups
- ImmutableMap of tag groups and ImmutableSets of tagspublic ChannelView.Builder setIosSettings(IosSettings iosSettings)
iosSettings
- IosSettingspublic ChannelView.Builder setWebSettings(WebSettings webSettings)
webSettings
- WebSettingspublic ChannelView.Builder setOpenChannel(OpenChannel openChannel)
openChannel
- OpenChannelpublic ChannelView.Builder setAddress(java.lang.String address)
address
- Stringpublic ChannelView.Builder setNamedUser(java.lang.String namedUser)
namedUser
- Stringpublic ChannelView.Builder setCommercialOptedIn(DateTime commercialOptedIn)
commercialOptedIn
- DateTimepublic ChannelView.Builder setCommercialOptedOut(DateTime commercialOptedOut)
commercialOptedOut
- DateTimepublic ChannelView.Builder setTransactionalOptedIn(DateTime transactionalOptedIn)
transactionalOptedIn
- DateTimepublic ChannelView.Builder setTransactionalOptedOut(DateTime transactionalOptedOut)
transactionalOptedOut
- DateTimepublic ChannelView build()