Class CallsParticipantsAddParams
java.lang.Object
com.hubspot.slack.client.methods.params.calls.CallsParticipantsAddParams
- All Implemented Interfaces:
CallsParticipantsAddParamsIF
@Generated(from="CallsParticipantsAddParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class CallsParticipantsAddParams
extends Object
implements CallsParticipantsAddParamsIF
Immutable implementation of
CallsParticipantsAddParamsIF.
Use the builder to create immutable instances:
CallsParticipantsAddParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeCallsParticipantsAddParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forCallsParticipantsAddParams.static CallsParticipantsAddParamscopyOf(CallsParticipantsAddParamsIF instance) Creates an immutable copy of aCallsParticipantsAddParamsIFvalue.booleanThis instance is equal to all instances ofCallsParticipantsAddParamsthat have equal attribute values.getId()getUsers()inthashCode()Computes a hash code from attributes:id,users.toString()Prints the immutable valueCallsParticipantsAddParamswith attribute values.Copy the current immutable object by setting a value for theidattribute.withUsers(SlackInternalOrExternalUser... elements) Copy the current immutable object with elements that replace the content ofusers.withUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Copy the current immutable object with elements that replace the content ofusers.
-
Method Details
-
getId
- Specified by:
getIdin interfaceCallsParticipantsAddParamsIF- Returns:
- The value of the
idattribute
-
getUsers
- Specified by:
getUsersin interfaceCallsParticipantsAddParamsIF- Returns:
- The value of the
usersattribute
-
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
-
withUsers
Copy the current immutable object with elements that replace the content ofusers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withUsers
public final CallsParticipantsAddParams withUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Copy the current immutable object with elements that replace the content ofusers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of users elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofCallsParticipantsAddParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,users. -
toString
Prints the immutable valueCallsParticipantsAddParamswith attribute values. -
copyOf
Creates an immutable copy of aCallsParticipantsAddParamsIFvalue. 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 CallsParticipantsAddParams instance
-
builder
Creates a builder forCallsParticipantsAddParams.CallsParticipantsAddParams.builder() .setId(String) // requiredid.addUsers|addAllUsers(com.hubspot.slack.client.models.calls.SlackInternalOrExternalUser) //userselements .build();- Returns:
- A new CallsParticipantsAddParams builder
-