Class FileInfo
java.lang.Object
com.hubspot.slack.client.methods.params.files.FileInfo
- All Implemented Interfaces:
FileInfoIF
@Generated(from="FileInfoIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class FileInfo
extends Object
implements FileInfoIF
Immutable implementation of
FileInfoIF.
Use the builder to create immutable instances:
FileInfo.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FileInfo.Builderbuilder()Creates a builder forFileInfo.static FileInfocopyOf(FileInfoIF instance) Creates an immutable copy of aFileInfoIFvalue.booleanThis instance is equal to all instances ofFileInfothat have equal attribute values.getId()getTitle()inthashCode()Computes a hash code from attributes:id,title.toString()Prints the immutable valueFileInfowith attribute values.final FileInfoCopy the current immutable object by setting a value for theidattribute.final FileInfoCopy the current immutable object by setting a value for thetitleattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceFileInfoIF- Returns:
- The value of the
idattribute
-
getTitle
- Specified by:
getTitlein interfaceFileInfoIF- Returns:
- The value of the
titleattribute
-
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
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofFileInfothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,title. -
toString
Prints the immutable valueFileInfowith attribute values. -
copyOf
Creates an immutable copy of aFileInfoIFvalue. 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 FileInfo instance
-
builder
Creates a builder forFileInfo.FileInfo.builder() .setId(String) // requiredid.setTitle(String) // requiredtitle.build();- Returns:
- A new FileInfo builder
-