public static class EkoChannel.CreateOption.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
EkoChannel.CreateOption.Builder |
addAllUserIds(java.lang.Iterable<java.lang.String> elements)
Adds elements to
userIds list. |
EkoChannel.CreateOption.Builder |
addUserIds(java.lang.String... elements)
Adds elements to
userIds list. |
EkoChannel.CreateOption.Builder |
addUserIds(java.lang.String element)
Adds one element to
userIds list. |
EkoChannel.CreateOption |
build()
Builds a new
CreateOption . |
EkoChannel.CreateOption.Builder |
displayName(java.lang.String displayName)
Initializes the value for the
displayName attribute. |
EkoChannel.CreateOption.Builder |
from(EkoChannel.CreateOption instance)
Fill a builder with attribute values from the provided
CreateOption instance. |
EkoChannel.CreateOption.Builder |
metadata(com.google.gson.JsonObject metadata)
Initializes the value for the
metadata attribute. |
EkoChannel.CreateOption.Builder |
tags(EkoTags tags)
Initializes the value for the
tags attribute. |
EkoChannel.CreateOption.Builder |
userIds(java.lang.Iterable<java.lang.String> elements)
Sets or replaces all elements for
userIds list. |
@CanIgnoreReturnValue public final EkoChannel.CreateOption.Builder from(EkoChannel.CreateOption instance)
CreateOption
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final EkoChannel.CreateOption.Builder displayName(@Nullable java.lang.String displayName)
displayName
attribute.displayName
- The value for displayName (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final EkoChannel.CreateOption.Builder metadata(@Nullable com.google.gson.JsonObject metadata)
metadata
attribute.metadata
- The value for metadata (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final EkoChannel.CreateOption.Builder tags(@Nullable EkoTags tags)
tags
attribute.tags
- The value for tags (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final EkoChannel.CreateOption.Builder addUserIds(java.lang.String element)
userIds
list.element
- A userIds elementthis
builder for use in a chained invocation@CanIgnoreReturnValue public final EkoChannel.CreateOption.Builder addUserIds(java.lang.String... elements)
userIds
list.elements
- An array of userIds elementsthis
builder for use in a chained invocation@CanIgnoreReturnValue public final EkoChannel.CreateOption.Builder userIds(@Nullable java.lang.Iterable<java.lang.String> elements)
userIds
list.elements
- An iterable of userIds elementsthis
builder for use in a chained invocation@CanIgnoreReturnValue public final EkoChannel.CreateOption.Builder addAllUserIds(java.lang.Iterable<java.lang.String> elements)
userIds
list.elements
- An iterable of userIds elementsthis
builder for use in a chained invocationpublic EkoChannel.CreateOption build()
CreateOption
.java.lang.IllegalStateException
- if any required attributes are missing