@NotThreadSafe public static final class ChannelMetadata.Builder extends Object
ChannelMetadata.
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 |
|---|---|
ChannelMetadata |
build()
Builds a new
ChannelMetadata. |
ChannelMetadata.Builder |
from(ChannelMetadataIF instance)
Fill a builder with attribute values from the provided
ChannelMetadataIF instance. |
ChannelMetadata.Builder |
setCreatorId(String creatorId)
Initializes the value for the
creatorId attribute. |
ChannelMetadata.Builder |
setLastSetEpochSeconds(long lastSetEpochSeconds)
Initializes the value for the
lastSetEpochSeconds attribute. |
ChannelMetadata.Builder |
setValue(String value)
Initializes the value for the
value attribute. |
public final ChannelMetadata.Builder from(ChannelMetadataIF instance)
ChannelMetadataIF 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 ChannelMetadata.Builder setValue(String value)
value attribute.value - The value for valuethis builder for use in a chained invocationpublic final ChannelMetadata.Builder setCreatorId(String creatorId)
creatorId attribute.creatorId - The value for creatorIdthis builder for use in a chained invocationpublic final ChannelMetadata.Builder setLastSetEpochSeconds(long lastSetEpochSeconds)
lastSetEpochSeconds attribute.lastSetEpochSeconds - The value for lastSetEpochSecondsthis builder for use in a chained invocationpublic ChannelMetadata build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChannelMetadata.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.