Class CallsParticipantsRemoveParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.calls.CallsParticipantsRemoveParams.Builder
- Enclosing class:
CallsParticipantsRemoveParams
@Generated(from="CallsParticipantsRemoveParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class CallsParticipantsRemoveParams.Builder
extends Object
Builds instances of type
CallsParticipantsRemoveParams.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Adds elements touserslist.addUsers(SlackInternalOrExternalUser element) Adds one element touserslist.addUsers(SlackInternalOrExternalUser... elements) Adds elements touserslist.build()Builds a newCallsParticipantsRemoveParams.from(CallsParticipantsRemoveParamsIF instance) Fill a builder with attribute values from the providedCallsParticipantsRemoveParamsIFinstance.Initializes the value for theidattribute.setUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Sets or replaces all elements foruserslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedCallsParticipantsRemoveParamsIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setId
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
addUsers
Adds one element touserslist.- Parameters:
element- A users element- Returns:
thisbuilder for use in a chained invocation
-
addUsers
public final CallsParticipantsRemoveParams.Builder addUsers(SlackInternalOrExternalUser... elements) Adds elements touserslist.- Parameters:
elements- An array of users elements- Returns:
thisbuilder for use in a chained invocation
-
setUsers
public final CallsParticipantsRemoveParams.Builder setUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Sets or replaces all elements foruserslist.- Parameters:
elements- An iterable of users elements- Returns:
thisbuilder for use in a chained invocation
-
addAllUsers
public final CallsParticipantsRemoveParams.Builder addAllUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Adds elements touserslist.- Parameters:
elements- An iterable of users elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newCallsParticipantsRemoveParams.- Returns:
- An immutable instance of CallsParticipantsRemoveParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-