@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackUsergroupIF"}) @Immutable public final class SlackUsergroup extends Object implements SlackUsergroupIF
SlackUsergroupIF.
Use the builder to create immutable instances:
SlackUsergroup.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackUsergroup.Builder
Builds instances of type
SlackUsergroup. |
| Modifier and Type | Method and Description |
|---|---|
static SlackUsergroup.Builder |
builder()
Creates a builder for
SlackUsergroup. |
static SlackUsergroup |
copyOf(SlackUsergroupIF instance)
Creates an immutable copy of a
SlackUsergroupIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackUsergroup that have equal attribute values. |
Optional<String> |
getAutoType() |
Optional<String> |
getCreatedBy() |
int |
getDateCreatedEpochSeconds() |
int |
getDateDeletedEpochSeconds() |
int |
getDateUpdatedEpochSeconds() |
Optional<String> |
getDeletedBy() |
Optional<String> |
getDescription() |
String |
getHandle() |
String |
getId() |
String |
getName() |
UsergroupPreferences |
getPreferences() |
String |
getTeamId() |
Optional<String> |
getUpdatedBy() |
Optional<Integer> |
getUserCount() |
List<String> |
getUserIdsInGroup() |
int |
hashCode()
Computes a hash code from attributes:
id, teamId, usergroup, name, description, handle, external, dateCreatedEpochSeconds, dateUpdatedEpochSeconds, dateDeletedEpochSeconds, autoType, createdBy, updatedBy, deletedBy, deleted, preferences, userIdsInGroup, userCount. |
boolean |
isDeleted() |
boolean |
isExternal() |
boolean |
isUsergroup() |
String |
toString()
Prints the immutable value
SlackUsergroup with attribute values. |
SlackUsergroup |
withAutoType(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
autoType attribute. |
SlackUsergroup |
withAutoType(String value)
Copy the current immutable object by setting a present value for the optional
autoType attribute. |
SlackUsergroup |
withCreatedBy(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
createdBy attribute. |
SlackUsergroup |
withCreatedBy(String value)
Copy the current immutable object by setting a present value for the optional
createdBy attribute. |
SlackUsergroup |
withDateCreatedEpochSeconds(int dateCreatedEpochSeconds)
Copy the current immutable object by setting a value for the
dateCreatedEpochSeconds attribute. |
SlackUsergroup |
withDateDeletedEpochSeconds(int dateDeletedEpochSeconds)
Copy the current immutable object by setting a value for the
dateDeletedEpochSeconds attribute. |
SlackUsergroup |
withDateUpdatedEpochSeconds(int dateUpdatedEpochSeconds)
Copy the current immutable object by setting a value for the
dateUpdatedEpochSeconds attribute. |
SlackUsergroup |
withDeletedBy(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
deletedBy attribute. |
SlackUsergroup |
withDeletedBy(String value)
Copy the current immutable object by setting a present value for the optional
deletedBy attribute. |
SlackUsergroup |
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
description attribute. |
SlackUsergroup |
withDescription(String value)
Copy the current immutable object by setting a present value for the optional
description attribute. |
SlackUsergroup |
withExternal(boolean external)
Copy the current immutable object by setting a value for the
external attribute. |
SlackUsergroup |
withHandle(String handle)
Copy the current immutable object by setting a value for the
handle attribute. |
SlackUsergroup |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
SlackUsergroup |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
SlackUsergroup |
withPreferences(UsergroupPreferences preferences)
Copy the current immutable object by setting a value for the
preferences attribute. |
SlackUsergroup |
withTeamId(String teamId)
Copy the current immutable object by setting a value for the
teamId attribute. |
SlackUsergroup |
withUpdatedBy(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
updatedBy attribute. |
SlackUsergroup |
withUpdatedBy(String value)
Copy the current immutable object by setting a present value for the optional
updatedBy attribute. |
SlackUsergroup |
withUserCount(Integer value)
Copy the current immutable object by setting a present value for the optional
userCount attribute. |
SlackUsergroup |
withUserCount(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
userCount attribute. |
SlackUsergroup |
withUsergroup(boolean usergroup)
Copy the current immutable object by setting a value for the
usergroup attribute. |
SlackUsergroup |
withUserIdsInGroup(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
userIdsInGroup. |
SlackUsergroup |
withUserIdsInGroup(String... elements)
Copy the current immutable object with elements that replace the content of
userIdsInGroup. |
public String getId()
getId in interface SlackUsergroupIFid attributepublic String getTeamId()
getTeamId in interface SlackUsergroupIFteamId attributepublic boolean isUsergroup()
isUsergroup in interface SlackUsergroupIFusergroup attributepublic String getName()
getName in interface SlackUsergroupIFname attributepublic Optional<String> getDescription()
getDescription in interface SlackUsergroupIFdescription attributepublic String getHandle()
getHandle in interface SlackUsergroupIFhandle attributepublic boolean isExternal()
isExternal in interface SlackUsergroupIFexternal attributepublic int getDateCreatedEpochSeconds()
getDateCreatedEpochSeconds in interface SlackUsergroupIFdateCreatedEpochSeconds attributepublic int getDateUpdatedEpochSeconds()
getDateUpdatedEpochSeconds in interface SlackUsergroupIFdateUpdatedEpochSeconds attributepublic int getDateDeletedEpochSeconds()
getDateDeletedEpochSeconds in interface SlackUsergroupIFdateDeletedEpochSeconds attributepublic Optional<String> getAutoType()
getAutoType in interface SlackUsergroupIFautoType attributepublic Optional<String> getCreatedBy()
getCreatedBy in interface SlackUsergroupIFcreatedBy attributepublic Optional<String> getUpdatedBy()
getUpdatedBy in interface SlackUsergroupIFupdatedBy attributepublic Optional<String> getDeletedBy()
getDeletedBy in interface SlackUsergroupIFdeletedBy attributepublic boolean isDeleted()
isDeleted in interface SlackUsergroupIFdeleted attributepublic UsergroupPreferences getPreferences()
getPreferences in interface SlackUsergroupIFpreferences attributepublic List<String> getUserIdsInGroup()
getUserIdsInGroup in interface SlackUsergroupIFuserIdsInGroup attributepublic Optional<Integer> getUserCount()
getUserCount in interface SlackUsergroupIFuserCount attributepublic final SlackUsergroup withId(String id)
id attribute.
An equals check used to prevent copying of the same value by returning this.id - A new value for idthis objectpublic final SlackUsergroup withTeamId(String teamId)
teamId attribute.
An equals check used to prevent copying of the same value by returning this.teamId - A new value for teamIdthis objectpublic final SlackUsergroup withUsergroup(boolean usergroup)
usergroup attribute.
A value equality check is used to prevent copying of the same value by returning this.usergroup - A new value for usergroupthis objectpublic final SlackUsergroup withName(String name)
name attribute.
An equals check used to prevent copying of the same value by returning this.name - A new value for namethis objectpublic final SlackUsergroup withDescription(@Nullable String value)
description attribute.value - The value for description, null is accepted as java.util.Optional.empty()this objectpublic final SlackUsergroup withDescription(Optional<String> optional)
description attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for descriptionthis objectpublic final SlackUsergroup withHandle(String handle)
handle attribute.
An equals check used to prevent copying of the same value by returning this.handle - A new value for handlethis objectpublic final SlackUsergroup withExternal(boolean external)
external attribute.
A value equality check is used to prevent copying of the same value by returning this.external - A new value for externalthis objectpublic final SlackUsergroup withDateCreatedEpochSeconds(int dateCreatedEpochSeconds)
dateCreatedEpochSeconds attribute.
A value equality check is used to prevent copying of the same value by returning this.dateCreatedEpochSeconds - A new value for dateCreatedEpochSecondsthis objectpublic final SlackUsergroup withDateUpdatedEpochSeconds(int dateUpdatedEpochSeconds)
dateUpdatedEpochSeconds attribute.
A value equality check is used to prevent copying of the same value by returning this.dateUpdatedEpochSeconds - A new value for dateUpdatedEpochSecondsthis objectpublic final SlackUsergroup withDateDeletedEpochSeconds(int dateDeletedEpochSeconds)
dateDeletedEpochSeconds attribute.
A value equality check is used to prevent copying of the same value by returning this.dateDeletedEpochSeconds - A new value for dateDeletedEpochSecondsthis objectpublic final SlackUsergroup withAutoType(@Nullable String value)
autoType attribute.value - The value for autoType, null is accepted as java.util.Optional.empty()this objectpublic final SlackUsergroup withAutoType(Optional<String> optional)
autoType attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for autoTypethis objectpublic final SlackUsergroup withCreatedBy(@Nullable String value)
createdBy attribute.value - The value for createdBy, null is accepted as java.util.Optional.empty()this objectpublic final SlackUsergroup withCreatedBy(Optional<String> optional)
createdBy attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for createdBythis objectpublic final SlackUsergroup withUpdatedBy(@Nullable String value)
updatedBy attribute.value - The value for updatedBy, null is accepted as java.util.Optional.empty()this objectpublic final SlackUsergroup withUpdatedBy(Optional<String> optional)
updatedBy attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for updatedBythis objectpublic final SlackUsergroup withDeletedBy(@Nullable String value)
deletedBy attribute.value - The value for deletedBy, null is accepted as java.util.Optional.empty()this objectpublic final SlackUsergroup withDeletedBy(Optional<String> optional)
deletedBy attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for deletedBythis objectpublic final SlackUsergroup withPreferences(UsergroupPreferences preferences)
preferences attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.preferences - A new value for preferencesthis objectpublic final SlackUsergroup withUserIdsInGroup(String... elements)
userIdsInGroup.elements - The elements to setthis objectpublic final SlackUsergroup withUserIdsInGroup(Iterable<String> elements)
userIdsInGroup.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of userIdsInGroup elements to setthis objectpublic final SlackUsergroup withUserCount(@Nullable Integer value)
userCount attribute.value - The value for userCount, null is accepted as java.util.Optional.empty()this objectpublic final SlackUsergroup withUserCount(Optional<Integer> optional)
userCount attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for userCountthis objectpublic boolean equals(@Nullable Object another)
SlackUsergroup that have equal attribute values.public int hashCode()
id, teamId, usergroup, name, description, handle, external, dateCreatedEpochSeconds, dateUpdatedEpochSeconds, dateDeletedEpochSeconds, autoType, createdBy, updatedBy, deletedBy, deleted, preferences, userIdsInGroup, userCount.public String toString()
SlackUsergroup with attribute values.public static SlackUsergroup copyOf(SlackUsergroupIF instance)
SlackUsergroupIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SlackUsergroup.Builder builder()
SlackUsergroup.Copyright © 2019. All rights reserved.