Class ViewContainer
java.lang.Object
com.hubspot.slack.client.models.interaction.ViewContainer
- All Implemented Interfaces:
Container,ViewContainerIF
@Generated(from="ViewContainerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewContainer
extends Object
implements ViewContainerIF
Immutable implementation of
ViewContainerIF.
Use the builder to create immutable instances:
ViewContainer.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewContainer.Builderbuilder()Creates a builder forViewContainer.static ViewContainercopyOf(ViewContainerIF instance) Creates an immutable copy of aViewContainerIFvalue.booleanThis instance is equal to all instances ofViewContainerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,viewId.toString()Prints the immutable valueViewContainerwith attribute values.final ViewContainerwithType(ContainerType value) Copy the current immutable object by setting a value for thetypeattribute.final ViewContainerwithViewId(String value) Copy the current immutable object by setting a value for theviewIdattribute.
-
Method Details
-
getType
-
getViewId
- Specified by:
getViewIdin interfaceViewContainerIF- Returns:
- The value of the
viewIdattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withViewId
Copy the current immutable object by setting a value for theviewIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for viewId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofViewContainerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,viewId. -
toString
Prints the immutable valueViewContainerwith attribute values. -
copyOf
Creates an immutable copy of aViewContainerIFvalue. 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 ViewContainer instance
-
builder
Creates a builder forViewContainer.ViewContainer.builder() .setType(com.hubspot.slack.client.models.interaction.ContainerType) // requiredtype.setViewId(String) // requiredviewId.build();- Returns:
- A new ViewContainer builder
-