@NotThreadSafe public static final class UserEmailParams.Builder extends Object
UserEmailParams.
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 |
|---|---|
UserEmailParams |
build()
Builds a new
UserEmailParams. |
UserEmailParams.Builder |
from(UserEmailParamsIF instance)
Fill a builder with attribute values from the provided
UserEmailParamsIF instance. |
UserEmailParams.Builder |
setEmail(String email)
Initializes the value for the
email attribute. |
public final UserEmailParams.Builder from(UserEmailParamsIF instance)
UserEmailParamsIF 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 UserEmailParams.Builder setEmail(String email)
email attribute.email - The value for emailthis builder for use in a chained invocationpublic UserEmailParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
UserEmailParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.