Class SlackFileObject
java.lang.Object
com.hubspot.slack.client.models.blocks.SlackFileObject
- All Implemented Interfaces:
SlackFileObjectIF
@Generated(from="SlackFileObjectIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackFileObject
extends Object
implements SlackFileObjectIF
Immutable implementation of
SlackFileObjectIF.
Use the builder to create immutable instances:
SlackFileObject.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackFileObject.Builderbuilder()Creates a builder forSlackFileObject.static SlackFileObjectcopyOf(SlackFileObjectIF instance) Creates an immutable copy of aSlackFileObjectIFvalue.booleanThis instance is equal to all instances ofSlackFileObjectthat have equal attribute values.getId()getUrl()inthashCode()Computes a hash code from attributes:url,id.toString()Prints the immutable valueSlackFileObjectwith attribute values.final SlackFileObjectCopy the current immutable object by setting a present value for the optionalidattribute.final SlackFileObjectCopy the current immutable object by setting an optional value for theidattribute.final SlackFileObjectCopy the current immutable object by setting a present value for the optionalurlattribute.final SlackFileObjectCopy the current immutable object by setting an optional value for theurlattribute.
-
Method Details
-
getUrl
- Specified by:
getUrlin interfaceSlackFileObjectIF- Returns:
- The value of the
urlattribute
-
getId
- Specified by:
getIdin interfaceSlackFileObjectIF- Returns:
- The value of the
idattribute
-
withUrl
Copy the current immutable object by setting a present value for the optionalurlattribute.- Parameters:
value- The value for url,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUrl
Copy the current immutable object by setting an optional value for theurlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for url- Returns:
- A modified copy or
thisif not changed
-
withId
Copy the current immutable object by setting a present value for the optionalidattribute.- Parameters:
value- The value for id,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withId
Copy the current immutable object by setting an optional value for theidattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for id- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSlackFileObjectthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:url,id. -
toString
Prints the immutable valueSlackFileObjectwith attribute values. -
copyOf
Creates an immutable copy of aSlackFileObjectIFvalue. 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 SlackFileObject instance
-
builder
Creates a builder forSlackFileObject.SlackFileObject.builder() .setUrl(Optional<String>) // optionalurl.setId(Optional<String>) // optionalid.build();- Returns:
- A new SlackFileObject builder
-