Class PushChannelData.Builder
-
- All Implemented Interfaces:
public final class PushChannelData.BuilderA builder for PushChannelData.
-
-
Method Summary
Modifier and Type Method Description final PushChannelData.Buildertokens(List<String> tokens)A list of push channel tokens. final PushChannelData.Buildertokens(JsonField<List<String>> tokens)Sets Builder.tokens to an arbitrary JSON value. final PushChannelData.BuilderaddToken(String token)Adds a single String to tokens. final PushChannelData.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final PushChannelData.BuilderputAdditionalProperty(String key, JsonValue value)final PushChannelData.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final PushChannelData.BuilderremoveAdditionalProperty(String key)final PushChannelData.BuilderremoveAllAdditionalProperties(Set<String> keys)final PushChannelDatabuild()Returns an immutable instance of PushChannelData. -
-
Method Detail
-
tokens
final PushChannelData.Builder tokens(List<String> tokens)
A list of push channel tokens.
-
tokens
final PushChannelData.Builder tokens(JsonField<List<String>> tokens)
Sets Builder.tokens to an arbitrary JSON value.
You should usually call Builder.tokens with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addToken
final PushChannelData.Builder addToken(String token)
-
additionalProperties
final PushChannelData.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PushChannelData.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PushChannelData.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PushChannelData.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PushChannelData.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PushChannelData build()
Returns an immutable instance of PushChannelData.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.tokens()
-
-
-
-