@NotThreadSafe public static final class ReplySkeleton.Builder extends Object
ReplySkeleton.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ReplySkeleton |
build()
Builds a new
ReplySkeleton. |
ReplySkeleton.Builder |
from(ReplySkeletonIF instance)
Fill a builder with attribute values from the provided
ReplySkeletonIF instance. |
ReplySkeleton.Builder |
setReplyTs(String replyTs)
Initializes the value for the
replyTs attribute. |
ReplySkeleton.Builder |
setUserId(String userId)
Initializes the value for the
userId attribute. |
public final ReplySkeleton.Builder from(ReplySkeletonIF instance)
ReplySkeletonIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ReplySkeleton.Builder setUserId(String userId)
userId attribute.userId - The value for userIdthis builder for use in a chained invocationpublic final ReplySkeleton.Builder setReplyTs(String replyTs)
replyTs attribute.replyTs - The value for replyTsthis builder for use in a chained invocationpublic ReplySkeleton build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ReplySkeleton.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.