Package com.chrt.api.types
Class NotificationUserPreferences1.Builder
- java.lang.Object
-
- com.chrt.api.types.NotificationUserPreferences1.Builder
-
- All Implemented Interfaces:
NotificationUserPreferences1._FinalStage,NotificationUserPreferences1.CreatedAtTimestampStage,NotificationUserPreferences1.IdStage,NotificationUserPreferences1.LastEditedAtTimestampStage,NotificationUserPreferences1.SchemaVersionStage,NotificationUserPreferences1.UserIdStage
- Enclosing class:
- NotificationUserPreferences1
public static final class NotificationUserPreferences1.Builder extends java.lang.Object implements NotificationUserPreferences1.SchemaVersionStage, NotificationUserPreferences1.UserIdStage, NotificationUserPreferences1.CreatedAtTimestampStage, NotificationUserPreferences1.LastEditedAtTimestampStage, NotificationUserPreferences1.IdStage, NotificationUserPreferences1._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public NotificationUserPreferences1.Builder from(NotificationUserPreferences1 other)
- Specified by:
fromin interfaceNotificationUserPreferences1.SchemaVersionStage
-
schemaVersion
public NotificationUserPreferences1.UserIdStage schemaVersion(int schemaVersion)
- Specified by:
schemaVersionin interfaceNotificationUserPreferences1.SchemaVersionStage
-
userId
public NotificationUserPreferences1.CreatedAtTimestampStage userId(@NotNull java.lang.String userId)
Must be a string starting with
user_Must be a string starting with
user_- Specified by:
userIdin interfaceNotificationUserPreferences1.UserIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAtTimestamp
public NotificationUserPreferences1.LastEditedAtTimestampStage createdAtTimestamp(@NotNull java.time.OffsetDateTime createdAtTimestamp)
- Specified by:
createdAtTimestampin interfaceNotificationUserPreferences1.CreatedAtTimestampStage
-
lastEditedAtTimestamp
public NotificationUserPreferences1.IdStage lastEditedAtTimestamp(@NotNull java.time.OffsetDateTime lastEditedAtTimestamp)
- Specified by:
lastEditedAtTimestampin interfaceNotificationUserPreferences1.LastEditedAtTimestampStage
-
id
public NotificationUserPreferences1._FinalStage id(@NotNull java.lang.String id)
- Specified by:
idin interfaceNotificationUserPreferences1.IdStage
-
smsEvents
public NotificationUserPreferences1._FinalStage smsEvents(java.util.List<NotificationEventsForUsersEnum> smsEvents)
- Specified by:
smsEventsin interfaceNotificationUserPreferences1._FinalStage
-
smsEvents
public NotificationUserPreferences1._FinalStage smsEvents(java.util.Optional<java.util.List<NotificationEventsForUsersEnum>> smsEvents)
- Specified by:
smsEventsin interfaceNotificationUserPreferences1._FinalStage
-
pushEvents
public NotificationUserPreferences1._FinalStage pushEvents(java.util.List<NotificationEventsForUsersEnum> pushEvents)
- Specified by:
pushEventsin interfaceNotificationUserPreferences1._FinalStage
-
pushEvents
public NotificationUserPreferences1._FinalStage pushEvents(java.util.Optional<java.util.List<NotificationEventsForUsersEnum>> pushEvents)
- Specified by:
pushEventsin interfaceNotificationUserPreferences1._FinalStage
-
emailEvents
public NotificationUserPreferences1._FinalStage emailEvents(java.util.List<NotificationEventsForUsersEnum> emailEvents)
- Specified by:
emailEventsin interfaceNotificationUserPreferences1._FinalStage
-
emailEvents
public NotificationUserPreferences1._FinalStage emailEvents(java.util.Optional<java.util.List<NotificationEventsForUsersEnum>> emailEvents)
- Specified by:
emailEventsin interfaceNotificationUserPreferences1._FinalStage
-
build
public NotificationUserPreferences1 build()
- Specified by:
buildin interfaceNotificationUserPreferences1._FinalStage
-
-