Class SlackIconObject
java.lang.Object
com.hubspot.slack.client.models.blocks.objects.SlackIconObject
- All Implemented Interfaces:
CompositionObject,SlackIconObjectIF
@Generated(from="SlackIconObjectIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackIconObject
extends Object
implements SlackIconObjectIF
Immutable implementation of
SlackIconObjectIF.
Use the builder to create immutable instances:
SlackIconObject.builder().
Use the static factory method to create immutable instances:
SlackIconObject.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.objects.SlackIconObjectIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackIconObject.Builderbuilder()Creates a builder forSlackIconObject.static SlackIconObjectcopyOf(SlackIconObjectIF instance) Creates an immutable copy of aSlackIconObjectIFvalue.booleanThis instance is equal to all instances ofSlackIconObjectthat have equal attribute values.getName()getType()inthashCode()Computes a hash code from attributes:type,name.static SlackIconObjectof(SlackIconName name) Construct a new immutableSlackIconObjectinstance.toString()Prints the immutable valueSlackIconObjectwith attribute values.final SlackIconObjectwithName(SlackIconName value) Copy the current immutable object by setting a value for thenameattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackIconObjectIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getName
- Specified by:
getNamein interfaceSlackIconObjectIF- Returns:
- The value of the
nameattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackIconObjectthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,name. -
toString
Prints the immutable valueSlackIconObjectwith attribute values. -
of
Construct a new immutableSlackIconObjectinstance.- Parameters:
name- The value for thenameattribute- Returns:
- An immutable SlackIconObject instance
-
copyOf
Creates an immutable copy of aSlackIconObjectIFvalue. 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 SlackIconObject instance
-
builder
Creates a builder forSlackIconObject.SlackIconObject.builder() .setName(com.hubspot.slack.client.models.blocks.objects.SlackIconName) // requiredname.build();- Returns:
- A new SlackIconObject builder
-