@NotThreadSafe public static final class UpdateViewParams.Builder extends Object
UpdateViewParams.
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 |
|---|---|
UpdateViewParams |
build()
Builds a new
UpdateViewParams. |
UpdateViewParams.Builder |
from(UpdateViewParamsIF instance)
Fill a builder with attribute values from the provided
UpdateViewParamsIF instance. |
UpdateViewParams.Builder |
setExternalId(Optional<String> externalId)
Initializes the optional value
externalId to externalId. |
UpdateViewParams.Builder |
setExternalId(String externalId)
Initializes the optional value
externalId to externalId. |
UpdateViewParams.Builder |
setHash(Optional<String> hash)
Initializes the optional value
hash to hash. |
UpdateViewParams.Builder |
setHash(String hash)
Initializes the optional value
hash to hash. |
UpdateViewParams.Builder |
setView(ModalViewPayload view)
Initializes the value for the
view attribute. |
UpdateViewParams.Builder |
setViewId(Optional<String> viewId)
Initializes the optional value
viewId to viewId. |
UpdateViewParams.Builder |
setViewId(String viewId)
Initializes the optional value
viewId to viewId. |
public final UpdateViewParams.Builder from(UpdateViewParamsIF instance)
UpdateViewParamsIF 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 UpdateViewParams.Builder setView(ModalViewPayload view)
view attribute.view - The value for viewthis builder for use in a chained invocationpublic final UpdateViewParams.Builder setExternalId(@Nullable String externalId)
externalId to externalId.externalId - The value for externalId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UpdateViewParams.Builder setExternalId(Optional<String> externalId)
externalId to externalId.externalId - The value for externalIdthis builder for use in a chained invocationpublic final UpdateViewParams.Builder setHash(@Nullable String hash)
hash to hash.hash - The value for hash, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UpdateViewParams.Builder setHash(Optional<String> hash)
hash to hash.hash - The value for hashthis builder for use in a chained invocationpublic final UpdateViewParams.Builder setViewId(@Nullable String viewId)
viewId to viewId.viewId - The value for viewId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UpdateViewParams.Builder setViewId(Optional<String> viewId)
viewId to viewId.viewId - The value for viewIdthis builder for use in a chained invocationpublic UpdateViewParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
UpdateViewParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.