Class AudienceMember.Builder
-
- All Implemented Interfaces:
public final class AudienceMember.BuilderA builder for AudienceMember.
-
-
Method Summary
Modifier and Type Method Description final AudienceMember.Builder_typename(String _typename)The typename of the schema. final AudienceMember.Builder_typename(JsonField<String> _typename)Sets Builder._typename to an arbitrary JSON value. final AudienceMember.BuilderaddedAt(OffsetDateTime addedAt)Timestamp when the resource was created. final AudienceMember.BuilderaddedAt(JsonField<OffsetDateTime> addedAt)Sets Builder.addedAt to an arbitrary JSON value. final AudienceMember.Builderuser(User user)A /concepts/users represents an individual in your system who can receive notifications through Knock. final AudienceMember.Builderuser(JsonField<User> user)Sets Builder.user to an arbitrary JSON value. final AudienceMember.BuilderuserId(String userId)The ID for the user that you set when identifying them in Knock. final AudienceMember.BuilderuserId(JsonField<String> userId)Sets Builder.userId to an arbitrary JSON value. final AudienceMember.Buildertenant(String tenant)The unique identifier for the tenant. final AudienceMember.Buildertenant(Optional<String> tenant)Alias for calling Builder.tenant with tenant.orElse(null).final AudienceMember.Buildertenant(JsonField<String> tenant)Sets Builder.tenant to an arbitrary JSON value. final AudienceMember.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final AudienceMember.BuilderputAdditionalProperty(String key, JsonValue value)final AudienceMember.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final AudienceMember.BuilderremoveAdditionalProperty(String key)final AudienceMember.BuilderremoveAllAdditionalProperties(Set<String> keys)final AudienceMemberbuild()Returns an immutable instance of AudienceMember. -
-
Method Detail
-
_typename
final AudienceMember.Builder _typename(String _typename)
The typename of the schema.
-
_typename
final AudienceMember.Builder _typename(JsonField<String> _typename)
Sets Builder._typename to an arbitrary JSON value.
You should usually call Builder._typename with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addedAt
final AudienceMember.Builder addedAt(OffsetDateTime addedAt)
Timestamp when the resource was created.
-
addedAt
final AudienceMember.Builder addedAt(JsonField<OffsetDateTime> addedAt)
Sets Builder.addedAt to an arbitrary JSON value.
You should usually call Builder.addedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
user
final AudienceMember.Builder user(User user)
A /concepts/users represents an individual in your system who can receive notifications through Knock. Users are the most common recipients of notifications and are always referenced by your internal identifier.
-
user
final AudienceMember.Builder user(JsonField<User> user)
Sets Builder.user to an arbitrary JSON value.
You should usually call Builder.user with a well-typed User value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userId
final AudienceMember.Builder userId(String userId)
The ID for the user that you set when identifying them in Knock.
-
userId
final AudienceMember.Builder userId(JsonField<String> userId)
Sets Builder.userId to an arbitrary JSON value.
You should usually call Builder.userId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tenant
final AudienceMember.Builder tenant(String tenant)
The unique identifier for the tenant.
-
tenant
final AudienceMember.Builder tenant(Optional<String> tenant)
Alias for calling Builder.tenant with
tenant.orElse(null).
-
tenant
final AudienceMember.Builder tenant(JsonField<String> tenant)
Sets Builder.tenant to an arbitrary JSON value.
You should usually call Builder.tenant with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final AudienceMember.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final AudienceMember.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final AudienceMember.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final AudienceMember.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final AudienceMember.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final AudienceMember build()
Returns an immutable instance of AudienceMember.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
._typename() .addedAt() .user() .userId()
-
-
-
-