@NotThreadSafe public static final class StateActionValue.Builder extends Object
StateActionValue.
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 |
|---|---|
StateActionValue |
build()
Builds a new
StateActionValue. |
StateActionValue.Builder |
from(StateActionValueIF instance)
Fill a builder with attribute values from the provided
StateActionValueIF instance. |
StateActionValue.Builder |
setBlockElementType(String blockElementType)
Initializes the value for the
blockElementType attribute. |
StateActionValue.Builder |
setBlockElementValue(Object blockElementValue)
Initializes the optional value
blockElementValue to blockElementValue. |
StateActionValue.Builder |
setBlockElementValue(Optional<Object> blockElementValue)
Initializes the optional value
blockElementValue to blockElementValue. |
public final StateActionValue.Builder from(StateActionValueIF instance)
StateActionValueIF 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 StateActionValue.Builder setBlockElementType(String blockElementType)
blockElementType attribute.blockElementType - The value for blockElementTypethis builder for use in a chained invocationpublic final StateActionValue.Builder setBlockElementValue(@Nullable Object blockElementValue)
blockElementValue to blockElementValue.blockElementValue - The value for blockElementValue, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final StateActionValue.Builder setBlockElementValue(Optional<Object> blockElementValue)
blockElementValue to blockElementValue.blockElementValue - The value for blockElementValuethis builder for use in a chained invocationpublic StateActionValue build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
StateActionValue.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.