Class SlackUsergroup
java.lang.Object
com.hubspot.slack.client.models.usergroups.SlackUsergroup
- All Implemented Interfaces:
SlackUsergroupIF
@Generated(from="SlackUsergroupIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackUsergroup
extends Object
implements SlackUsergroupIF
Immutable implementation of
SlackUsergroupIF.
Use the builder to create immutable instances:
SlackUsergroup.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackUsergroup.Builderbuilder()Creates a builder forSlackUsergroup.static SlackUsergroupcopyOf(SlackUsergroupIF instance) Creates an immutable copy of aSlackUsergroupIFvalue.booleanThis instance is equal to all instances ofSlackUsergroupthat have equal attribute values.intintintgetId()getName()inthashCode()Computes a hash code from attributes:id,teamId,usergroup,name,description,handle,external,dateCreatedEpochSeconds,dateUpdatedEpochSeconds,dateDeletedEpochSeconds,autoType,createdBy,updatedBy,deletedBy,deleted,preferences,userIdsInGroup,userCount.booleanbooleanbooleantoString()Prints the immutable valueSlackUsergroupwith attribute values.final SlackUsergroupwithAutoType(String value) Copy the current immutable object by setting a present value for the optionalautoTypeattribute.final SlackUsergroupwithAutoType(Optional<String> optional) Copy the current immutable object by setting an optional value for theautoTypeattribute.final SlackUsergroupwithCreatedBy(String value) Copy the current immutable object by setting a present value for the optionalcreatedByattribute.final SlackUsergroupwithCreatedBy(Optional<String> optional) Copy the current immutable object by setting an optional value for thecreatedByattribute.final SlackUsergroupwithDateCreatedEpochSeconds(int value) Copy the current immutable object by setting a value for thedateCreatedEpochSecondsattribute.final SlackUsergroupwithDateDeletedEpochSeconds(int value) Copy the current immutable object by setting a value for thedateDeletedEpochSecondsattribute.final SlackUsergroupwithDateUpdatedEpochSeconds(int value) Copy the current immutable object by setting a value for thedateUpdatedEpochSecondsattribute.final SlackUsergroupwithDeletedBy(String value) Copy the current immutable object by setting a present value for the optionaldeletedByattribute.final SlackUsergroupwithDeletedBy(Optional<String> optional) Copy the current immutable object by setting an optional value for thedeletedByattribute.final SlackUsergroupwithDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.final SlackUsergroupwithDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.final SlackUsergroupwithExternal(boolean value) Copy the current immutable object by setting a value for theexternalattribute.final SlackUsergroupwithHandle(String value) Copy the current immutable object by setting a value for thehandleattribute.final SlackUsergroupCopy the current immutable object by setting a value for theidattribute.final SlackUsergroupCopy the current immutable object by setting a value for thenameattribute.final SlackUsergroupCopy the current immutable object by setting a value for thepreferencesattribute.final SlackUsergroupwithTeamId(String value) Copy the current immutable object by setting a value for theteamIdattribute.final SlackUsergroupwithUpdatedBy(String value) Copy the current immutable object by setting a present value for the optionalupdatedByattribute.final SlackUsergroupwithUpdatedBy(Optional<String> optional) Copy the current immutable object by setting an optional value for theupdatedByattribute.final SlackUsergroupwithUserCount(Integer value) Copy the current immutable object by setting a present value for the optionaluserCountattribute.final SlackUsergroupwithUserCount(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theuserCountattribute.final SlackUsergroupwithUsergroup(boolean value) Copy the current immutable object by setting a value for theusergroupattribute.final SlackUsergroupwithUserIdsInGroup(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofuserIdsInGroup.final SlackUsergroupwithUserIdsInGroup(String... elements) Copy the current immutable object with elements that replace the content ofuserIdsInGroup.
-
Method Details
-
getId
- Specified by:
getIdin interfaceSlackUsergroupIF- Returns:
- The value of the
idattribute
-
getTeamId
- Specified by:
getTeamIdin interfaceSlackUsergroupIF- Returns:
- The value of the
teamIdattribute
-
isUsergroup
public boolean isUsergroup()- Specified by:
isUsergroupin interfaceSlackUsergroupIF- Returns:
- The value of the
usergroupattribute
-
getName
- Specified by:
getNamein interfaceSlackUsergroupIF- Returns:
- The value of the
nameattribute
-
getDescription
- Specified by:
getDescriptionin interfaceSlackUsergroupIF- Returns:
- The value of the
descriptionattribute
-
getHandle
- Specified by:
getHandlein interfaceSlackUsergroupIF- Returns:
- The value of the
handleattribute
-
isExternal
public boolean isExternal()- Specified by:
isExternalin interfaceSlackUsergroupIF- Returns:
- The value of the
externalattribute
-
getDateCreatedEpochSeconds
public int getDateCreatedEpochSeconds()- Specified by:
getDateCreatedEpochSecondsin interfaceSlackUsergroupIF- Returns:
- The value of the
dateCreatedEpochSecondsattribute
-
getDateUpdatedEpochSeconds
public int getDateUpdatedEpochSeconds()- Specified by:
getDateUpdatedEpochSecondsin interfaceSlackUsergroupIF- Returns:
- The value of the
dateUpdatedEpochSecondsattribute
-
getDateDeletedEpochSeconds
public int getDateDeletedEpochSeconds()- Specified by:
getDateDeletedEpochSecondsin interfaceSlackUsergroupIF- Returns:
- The value of the
dateDeletedEpochSecondsattribute
-
getAutoType
- Specified by:
getAutoTypein interfaceSlackUsergroupIF- Returns:
- The value of the
autoTypeattribute
-
getCreatedBy
- Specified by:
getCreatedByin interfaceSlackUsergroupIF- Returns:
- The value of the
createdByattribute
-
getUpdatedBy
- Specified by:
getUpdatedByin interfaceSlackUsergroupIF- Returns:
- The value of the
updatedByattribute
-
getDeletedBy
- Specified by:
getDeletedByin interfaceSlackUsergroupIF- Returns:
- The value of the
deletedByattribute
-
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceSlackUsergroupIF- Returns:
- The computed-at-construction value of the
deletedattribute
-
getPreferences
- Specified by:
getPreferencesin interfaceSlackUsergroupIF- Returns:
- The value of the
preferencesattribute
-
getUserIdsInGroup
- Specified by:
getUserIdsInGroupin interfaceSlackUsergroupIF- Returns:
- The value of the
userIdsInGroupattribute
-
getUserCount
- Specified by:
getUserCountin interfaceSlackUsergroupIF- Returns:
- The value of the
userCountattribute
-
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
-
withTeamId
Copy the current immutable object by setting a value for theteamIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for teamId- Returns:
- A modified copy or the
thisobject
-
withUsergroup
Copy the current immutable object by setting a value for theusergroupattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for usergroup- Returns:
- A modified copy or the
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withDescription
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for description- Returns:
- A modified copy or
thisif not changed
-
withHandle
Copy the current immutable object by setting a value for thehandleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for handle- Returns:
- A modified copy or the
thisobject
-
withExternal
Copy the current immutable object by setting a value for theexternalattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for external- Returns:
- A modified copy or the
thisobject
-
withDateCreatedEpochSeconds
Copy the current immutable object by setting a value for thedateCreatedEpochSecondsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dateCreatedEpochSeconds- Returns:
- A modified copy or the
thisobject
-
withDateUpdatedEpochSeconds
Copy the current immutable object by setting a value for thedateUpdatedEpochSecondsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dateUpdatedEpochSeconds- Returns:
- A modified copy or the
thisobject
-
withDateDeletedEpochSeconds
Copy the current immutable object by setting a value for thedateDeletedEpochSecondsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dateDeletedEpochSeconds- Returns:
- A modified copy or the
thisobject
-
withAutoType
Copy the current immutable object by setting a present value for the optionalautoTypeattribute.- Parameters:
value- The value for autoType,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withAutoType
Copy the current immutable object by setting an optional value for theautoTypeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for autoType- Returns:
- A modified copy or
thisif not changed
-
withCreatedBy
Copy the current immutable object by setting a present value for the optionalcreatedByattribute.- Parameters:
value- The value for createdBy,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCreatedBy
Copy the current immutable object by setting an optional value for thecreatedByattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for createdBy- Returns:
- A modified copy or
thisif not changed
-
withUpdatedBy
Copy the current immutable object by setting a present value for the optionalupdatedByattribute.- Parameters:
value- The value for updatedBy,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUpdatedBy
Copy the current immutable object by setting an optional value for theupdatedByattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for updatedBy- Returns:
- A modified copy or
thisif not changed
-
withDeletedBy
Copy the current immutable object by setting a present value for the optionaldeletedByattribute.- Parameters:
value- The value for deletedBy,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withDeletedBy
Copy the current immutable object by setting an optional value for thedeletedByattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for deletedBy- Returns:
- A modified copy or
thisif not changed
-
withPreferences
Copy the current immutable object by setting a value for thepreferencesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for preferences- Returns:
- A modified copy or the
thisobject
-
withUserIdsInGroup
Copy the current immutable object with elements that replace the content ofuserIdsInGroup.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withUserIdsInGroup
Copy the current immutable object with elements that replace the content ofuserIdsInGroup. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of userIdsInGroup elements to set- Returns:
- A modified copy or
thisif not changed
-
withUserCount
Copy the current immutable object by setting a present value for the optionaluserCountattribute.- Parameters:
value- The value for userCount,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUserCount
Copy the current immutable object by setting an optional value for theuserCountattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for userCount- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSlackUsergroupthat have equal attribute values. -
hashCode
public 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. -
toString
Prints the immutable valueSlackUsergroupwith attribute values. -
copyOf
Creates an immutable copy of aSlackUsergroupIFvalue. 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 SlackUsergroup instance
-
builder
Creates a builder forSlackUsergroup.SlackUsergroup.builder() .setId(String) // requiredid.setTeamId(String) // requiredteamId.setUsergroup(boolean) // requiredusergroup.setName(String) // requiredname.setDescription(Optional<String>) // optionaldescription.setHandle(String) // requiredhandle.setExternal(boolean) // requiredexternal.setDateCreatedEpochSeconds(int) // requireddateCreatedEpochSeconds.setDateUpdatedEpochSeconds(int) // requireddateUpdatedEpochSeconds.setDateDeletedEpochSeconds(int) // requireddateDeletedEpochSeconds.setAutoType(Optional<String>) // optionalautoType.setCreatedBy(Optional<String>) // optionalcreatedBy.setUpdatedBy(Optional<String>) // optionalupdatedBy.setDeletedBy(Optional<String>) // optionaldeletedBy.setPreferences(com.hubspot.slack.client.models.usergroups.UsergroupPreferences) // requiredpreferences.addUserIdsInGroup|addAllUserIdsInGroup(String) //userIdsInGroupelements .setUserCount(Optional<Integer>) // optionaluserCount.build();- Returns:
- A new SlackUsergroup builder
-