@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","UpdateViewParamsIF"}) @Immutable public final class UpdateViewParams extends Object implements UpdateViewParamsIF
UpdateViewParamsIF.
Use the builder to create immutable instances:
UpdateViewParams.builder().
Use the static factory method to create immutable instances:
UpdateViewParams.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateViewParams.Builder
Builds instances of type
UpdateViewParams. |
| Modifier and Type | Method and Description |
|---|---|
static UpdateViewParams.Builder |
builder()
Creates a builder for
UpdateViewParams. |
static UpdateViewParams |
copyOf(UpdateViewParamsIF instance)
Creates an immutable copy of a
UpdateViewParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
UpdateViewParams that have equal attribute values. |
Optional<String> |
getExternalId() |
Optional<String> |
getHash() |
ModalViewPayload |
getView() |
Optional<String> |
getViewId() |
int |
hashCode()
Computes a hash code from attributes:
view, externalId, hash, viewId. |
static UpdateViewParams |
of(ModalViewPayload view)
Construct a new immutable
UpdateViewParams instance. |
String |
toString()
Prints the immutable value
UpdateViewParams with attribute values. |
UpdateViewParams |
withExternalId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
externalId attribute. |
UpdateViewParams |
withExternalId(String value)
Copy the current immutable object by setting a present value for the optional
externalId attribute. |
UpdateViewParams |
withHash(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
hash attribute. |
UpdateViewParams |
withHash(String value)
Copy the current immutable object by setting a present value for the optional
hash attribute. |
UpdateViewParams |
withView(ModalViewPayload view)
Copy the current immutable object by setting a value for the
view attribute. |
UpdateViewParams |
withViewId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
viewId attribute. |
UpdateViewParams |
withViewId(String value)
Copy the current immutable object by setting a present value for the optional
viewId attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckpublic ModalViewPayload getView()
getView in interface UpdateViewParamsIFview attributepublic Optional<String> getExternalId()
getExternalId in interface UpdateViewParamsIFexternalId attributepublic Optional<String> getHash()
getHash in interface UpdateViewParamsIFhash attributepublic Optional<String> getViewId()
getViewId in interface UpdateViewParamsIFviewId attributepublic final UpdateViewParams withView(ModalViewPayload view)
view attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.view - A new value for viewthis objectpublic final UpdateViewParams withExternalId(@Nullable String value)
externalId attribute.value - The value for externalId, null is accepted as java.util.Optional.empty()this objectpublic final UpdateViewParams withExternalId(Optional<String> optional)
externalId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for externalIdthis objectpublic final UpdateViewParams withHash(@Nullable String value)
hash attribute.value - The value for hash, null is accepted as java.util.Optional.empty()this objectpublic final UpdateViewParams withHash(Optional<String> optional)
hash attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for hashthis objectpublic final UpdateViewParams withViewId(@Nullable String value)
viewId attribute.value - The value for viewId, null is accepted as java.util.Optional.empty()this objectpublic final UpdateViewParams withViewId(Optional<String> optional)
viewId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for viewIdthis objectpublic boolean equals(@Nullable Object another)
UpdateViewParams that have equal attribute values.public int hashCode()
view, externalId, hash, viewId.public String toString()
UpdateViewParams with attribute values.public static UpdateViewParams of(ModalViewPayload view)
UpdateViewParams instance.view - The value for the view attributepublic static UpdateViewParams copyOf(UpdateViewParamsIF instance)
UpdateViewParamsIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static UpdateViewParams.Builder builder()
UpdateViewParams.Copyright © 2020. All rights reserved.