Class OpenViewParams
java.lang.Object
com.hubspot.slack.client.methods.params.views.OpenViewParams
- All Implemented Interfaces:
OpenViewParamsIF
@Generated(from="OpenViewParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class OpenViewParams
extends Object
implements OpenViewParamsIF
Immutable implementation of
OpenViewParamsIF.
Use the builder to create immutable instances:
OpenViewParams.builder().
Use the static factory method to create immutable instances:
OpenViewParams.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenViewParams.Builderbuilder()Creates a builder forOpenViewParams.static OpenViewParamscopyOf(OpenViewParamsIF instance) Creates an immutable copy of aOpenViewParamsIFvalue.booleanThis instance is equal to all instances ofOpenViewParamsthat have equal attribute values.getView()inthashCode()Computes a hash code from attributes:triggerId,view.static OpenViewParamsof(String triggerId, ModalViewPayload view) Construct a new immutableOpenViewParamsinstance.toString()Prints the immutable valueOpenViewParamswith attribute values.final OpenViewParamswithTriggerId(String value) Copy the current immutable object by setting a value for thetriggerIdattribute.final OpenViewParamswithView(ModalViewPayload value) Copy the current immutable object by setting a value for theviewattribute.
-
Method Details
-
getTriggerId
- Specified by:
getTriggerIdin interfaceOpenViewParamsIF- Returns:
- The value of the
triggerIdattribute
-
getView
- Specified by:
getViewin interfaceOpenViewParamsIF- Returns:
- The value of the
viewattribute
-
withTriggerId
Copy the current immutable object by setting a value for thetriggerIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for triggerId- 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
-
equals
This instance is equal to all instances ofOpenViewParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:triggerId,view. -
toString
Prints the immutable valueOpenViewParamswith attribute values. -
of
Construct a new immutableOpenViewParamsinstance.- Parameters:
triggerId- The value for thetriggerIdattributeview- The value for theviewattribute- Returns:
- An immutable OpenViewParams instance
-
copyOf
Creates an immutable copy of aOpenViewParamsIFvalue. 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 OpenViewParams instance
-
builder
Creates a builder forOpenViewParams.OpenViewParams.builder() .setTriggerId(String) // requiredtriggerId.setView(com.hubspot.slack.client.models.views.ModalViewPayload) // requiredview.build();- Returns:
- A new OpenViewParams builder
-