Class ExternalRef
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.ExternalRef
- All Implemented Interfaces:
ExternalRefIF
@Generated(from="ExternalRefIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ExternalRef
extends Object
implements ExternalRefIF
Immutable implementation of
ExternalRefIF.
Use the builder to create immutable instances:
ExternalRef.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalRef.Builderbuilder()Creates a builder forExternalRef.static ExternalRefcopyOf(ExternalRefIF instance) Creates an immutable copy of aExternalRefIFvalue.booleanThis instance is equal to all instances ofExternalRefthat have equal attribute values.getId()getType()inthashCode()Computes a hash code from attributes:id,type.toString()Prints the immutable valueExternalRefwith attribute values.final ExternalRefCopy the current immutable object by setting a value for theidattribute.final ExternalRefCopy the current immutable object by setting a present value for the optionaltypeattribute.final ExternalRefCopy the current immutable object by setting an optional value for thetypeattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceExternalRefIF- Returns:
- The value of the
idattribute
-
getType
- Specified by:
getTypein interfaceExternalRefIF- Returns:
- The value of the
typeattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withType
Copy the current immutable object by setting a present value for the optionaltypeattribute.- Parameters:
value- The value for type,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withType
Copy the current immutable object by setting an optional value for thetypeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for type- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofExternalRefthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,type. -
toString
Prints the immutable valueExternalRefwith attribute values. -
copyOf
Creates an immutable copy of aExternalRefIFvalue. 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 ExternalRef instance
-
builder
Creates a builder forExternalRef.ExternalRef.builder() .setId(String) // requiredid.setType(Optional<String>) // optionaltype.build();- Returns:
- A new ExternalRef builder
-