Class ViewStateValuesBlock
java.lang.Object
com.hubspot.slack.client.models.interaction.ViewStateValuesBlock
- All Implemented Interfaces:
ViewStateValuesBlockIF
@Generated(from="ViewStateValuesBlockIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewStateValuesBlock
extends Object
implements ViewStateValuesBlockIF
Immutable implementation of
ViewStateValuesBlockIF.
Use the builder to create immutable instances:
ViewStateValuesBlock.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeViewStateValuesBlock. -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewStateValuesBlock.Builderbuilder()Creates a builder forViewStateValuesBlock.static ViewStateValuesBlockcopyOf(ViewStateValuesBlockIF instance) Creates an immutable copy of aViewStateValuesBlockIFvalue.booleanThis instance is equal to all instances ofViewStateValuesBlockthat have equal attribute values.getType()getValue()inthashCode()Computes a hash code from attributes:type,value.toString()Prints the immutable valueViewStateValuesBlockwith attribute values.final ViewStateValuesBlockCopy the current immutable object by setting a value for thetypeattribute.final ViewStateValuesBlockCopy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceViewStateValuesBlockIF- Returns:
- The value of the
typeattribute
-
getValue
- Specified by:
getValuein interfaceViewStateValuesBlockIF- Returns:
- The value of the
valueattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofViewStateValuesBlockthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,value. -
toString
Prints the immutable valueViewStateValuesBlockwith attribute values. -
copyOf
Creates an immutable copy of aViewStateValuesBlockIFvalue. 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 ViewStateValuesBlock instance
-
builder
Creates a builder forViewStateValuesBlock.ViewStateValuesBlock.builder() .setType(String) // requiredtype.setValue(String) // requiredvalue.build();- Returns:
- A new ViewStateValuesBlock builder
-