@NotThreadSafe public static final class ChallengeEvent.Builder extends Object
ChallengeEvent.
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 |
|---|---|
ChallengeEvent |
build()
Builds a new
ChallengeEvent. |
ChallengeEvent.Builder |
from(ChallengeEventIF instance)
Fill a builder with attribute values from the provided
ChallengeEventIF instance. |
ChallengeEvent.Builder |
setChallenge(String challenge)
Initializes the value for the
challenge attribute. |
ChallengeEvent.Builder |
setToken(String token)
Initializes the value for the
token attribute. |
ChallengeEvent.Builder |
setType(String type)
Initializes the value for the
type attribute. |
public final ChallengeEvent.Builder from(ChallengeEventIF instance)
ChallengeEventIF 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 ChallengeEvent.Builder setToken(String token)
token attribute.token - The value for tokenthis builder for use in a chained invocationpublic final ChallengeEvent.Builder setChallenge(String challenge)
challenge attribute.challenge - The value for challengethis builder for use in a chained invocationpublic final ChallengeEvent.Builder setType(String type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic ChallengeEvent build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChallengeEvent.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.