Class UpdateViewParams
java.lang.Object
com.hubspot.slack.client.methods.params.views.UpdateViewParams
- All Implemented Interfaces:
UpdateViewParamsIF
@Generated(from="UpdateViewParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UpdateViewParams
extends Object
implements UpdateViewParamsIF
Immutable implementation of
UpdateViewParamsIF.
Use the builder to create immutable instances:
UpdateViewParams.builder().
Use the static factory method to create immutable instances:
UpdateViewParams.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateViewParams.Builderbuilder()Creates a builder forUpdateViewParams.static UpdateViewParamscopyOf(UpdateViewParamsIF instance) Creates an immutable copy of aUpdateViewParamsIFvalue.booleanThis instance is equal to all instances ofUpdateViewParamsthat have equal attribute values.getHash()getView()inthashCode()Computes a hash code from attributes:view,externalId,hash,viewId.static UpdateViewParamsof(ModalViewPayload view) Construct a new immutableUpdateViewParamsinstance.toString()Prints the immutable valueUpdateViewParamswith attribute values.final UpdateViewParamswithExternalId(String value) Copy the current immutable object by setting a present value for the optionalexternalIdattribute.final UpdateViewParamswithExternalId(Optional<String> optional) Copy the current immutable object by setting an optional value for theexternalIdattribute.final UpdateViewParamsCopy the current immutable object by setting a present value for the optionalhashattribute.final UpdateViewParamsCopy the current immutable object by setting an optional value for thehashattribute.final UpdateViewParamswithView(ModalViewPayload value) Copy the current immutable object by setting a value for theviewattribute.final UpdateViewParamswithViewId(String value) Copy the current immutable object by setting a present value for the optionalviewIdattribute.final UpdateViewParamswithViewId(Optional<String> optional) Copy the current immutable object by setting an optional value for theviewIdattribute.Methods inherited from interface com.hubspot.slack.client.methods.params.views.UpdateViewParamsIF
check
-
Method Details
-
getView
- Specified by:
getViewin interfaceUpdateViewParamsIF- Returns:
- The value of the
viewattribute
-
getExternalId
- Specified by:
getExternalIdin interfaceUpdateViewParamsIF- Returns:
- The value of the
externalIdattribute
-
getHash
- Specified by:
getHashin interfaceUpdateViewParamsIF- Returns:
- The value of the
hashattribute
-
getViewId
- Specified by:
getViewIdin interfaceUpdateViewParamsIF- Returns:
- The value of the
viewIdattribute
-
withView
Copy the current immutable object by setting a value for theviewattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for view- Returns:
- A modified copy or the
thisobject
-
withExternalId
Copy the current immutable object by setting a present value for the optionalexternalIdattribute.- Parameters:
value- The value for externalId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withExternalId
Copy the current immutable object by setting an optional value for theexternalIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for externalId- Returns:
- A modified copy or
thisif not changed
-
withHash
Copy the current immutable object by setting a present value for the optionalhashattribute.- Parameters:
value- The value for hash,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withHash
Copy the current immutable object by setting an optional value for thehashattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for hash- Returns:
- A modified copy or
thisif not changed
-
withViewId
Copy the current immutable object by setting a present value for the optionalviewIdattribute.- Parameters:
value- The value for viewId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withViewId
Copy the current immutable object by setting an optional value for theviewIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for viewId- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofUpdateViewParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:view,externalId,hash,viewId. -
toString
Prints the immutable valueUpdateViewParamswith attribute values. -
of
Construct a new immutableUpdateViewParamsinstance.- Parameters:
view- The value for theviewattribute- Returns:
- An immutable UpdateViewParams instance
-
copyOf
Creates an immutable copy of aUpdateViewParamsIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable UpdateViewParams instance
-
builder
Creates a builder forUpdateViewParams.UpdateViewParams.builder() .setView(com.hubspot.slack.client.models.views.ModalViewPayload) // requiredview.setExternalId(Optional<String>) // optionalexternalId.setHash(Optional<String>) // optionalhash.setViewId(Optional<String>) // optionalviewId.build();- Returns:
- A new UpdateViewParams builder
-