Class ChatGetPermalinkResponse
java.lang.Object
com.hubspot.slack.client.models.response.chat.ChatGetPermalinkResponse
- All Implemented Interfaces:
ChatGetPermalinkResponseIF,SlackResponse
@Generated(from="ChatGetPermalinkResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatGetPermalinkResponse
extends Object
implements ChatGetPermalinkResponseIF
Immutable implementation of
ChatGetPermalinkResponseIF.
Use the builder to create immutable instances:
ChatGetPermalinkResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatGetPermalinkResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatGetPermalinkResponse.static ChatGetPermalinkResponsecopyOf(ChatGetPermalinkResponseIF instance) Creates an immutable copy of aChatGetPermalinkResponseIFvalue.booleanThis instance is equal to all instances ofChatGetPermalinkResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,channel,permalink.booleanisOk()toString()Prints the immutable valueChatGetPermalinkResponsewith attribute values.final ChatGetPermalinkResponsewithChannel(String value) Copy the current immutable object by setting a value for thechannelattribute.final ChatGetPermalinkResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final ChatGetPermalinkResponsewithPermalink(String value) Copy the current immutable object by setting a value for thepermalinkattribute.final ChatGetPermalinkResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final ChatGetPermalinkResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getChannel
- Specified by:
getChannelin interfaceChatGetPermalinkResponseIF- Returns:
- The value of the
channelattribute
-
getPermalink
- Specified by:
getPermalinkin interfaceChatGetPermalinkResponseIF- Returns:
- The value of the
permalinkattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
public final ChatGetPermalinkResponse withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for responseMetadata- Returns:
- A modified copy or
thisif not changed
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- Returns:
- A modified copy or the
thisobject
-
withPermalink
Copy the current immutable object by setting a value for thepermalinkattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for permalink- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChatGetPermalinkResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,channel,permalink. -
toString
Prints the immutable valueChatGetPermalinkResponsewith attribute values. -
copyOf
Creates an immutable copy of aChatGetPermalinkResponseIFvalue. 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 ChatGetPermalinkResponse instance
-
builder
Creates a builder forChatGetPermalinkResponse.ChatGetPermalinkResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setChannel(String) // requiredchannel.setPermalink(String) // requiredpermalink.build();- Returns:
- A new ChatGetPermalinkResponse builder
-