Class PublishViewParams
java.lang.Object
com.hubspot.slack.client.methods.params.views.PublishViewParams
- All Implemented Interfaces:
PublishViewParamsIF
@Generated(from="PublishViewParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class PublishViewParams
extends Object
implements PublishViewParamsIF
Immutable implementation of
PublishViewParamsIF.
Use the builder to create immutable instances:
PublishViewParams.builder().
Use the static factory method to create immutable instances:
PublishViewParams.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PublishViewParams.Builderbuilder()Creates a builder forPublishViewParams.static PublishViewParamscopyOf(PublishViewParamsIF instance) Creates an immutable copy of aPublishViewParamsIFvalue.booleanThis instance is equal to all instances ofPublishViewParamsthat have equal attribute values.getHash()getView()inthashCode()Computes a hash code from attributes:userId,view,hash.static PublishViewParamsof(String userId, HomeTabViewPayload view) Construct a new immutablePublishViewParamsinstance.toString()Prints the immutable valuePublishViewParamswith attribute values.final PublishViewParamsCopy the current immutable object by setting a present value for the optionalhashattribute.final PublishViewParamsCopy the current immutable object by setting an optional value for thehashattribute.final PublishViewParamswithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.final PublishViewParamswithView(HomeTabViewPayload value) Copy the current immutable object by setting a value for theviewattribute.
-
Method Details
-
getUserId
- Specified by:
getUserIdin interfacePublishViewParamsIF- Returns:
- The value of the
userIdattribute
-
getView
- Specified by:
getViewin interfacePublishViewParamsIF- Returns:
- The value of the
viewattribute
-
getHash
- Specified by:
getHashin interfacePublishViewParamsIF- Returns:
- The value of the
hashattribute
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
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
-
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
-
equals
This instance is equal to all instances ofPublishViewParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:userId,view,hash. -
toString
Prints the immutable valuePublishViewParamswith attribute values. -
of
Construct a new immutablePublishViewParamsinstance.- Parameters:
userId- The value for theuserIdattributeview- The value for theviewattribute- Returns:
- An immutable PublishViewParams instance
-
copyOf
Creates an immutable copy of aPublishViewParamsIFvalue. 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 PublishViewParams instance
-
builder
Creates a builder forPublishViewParams.PublishViewParams.builder() .setUserId(String) // requireduserId.setView(com.hubspot.slack.client.models.views.HomeTabViewPayload) // requiredview.setHash(Optional<String>) // optionalhash.build();- Returns:
- A new PublishViewParams builder
-