Class CallsParticipantsAddParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.calls.CallsParticipantsAddParams.Builder
- Enclosing class:
CallsParticipantsAddParams
@Generated(from="CallsParticipantsAddParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class CallsParticipantsAddParams.Builder
extends Object
Builds instances of type
CallsParticipantsAddParams.
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 newCallsParticipantsAddParams.from(CallsParticipantsAddParamsIF instance) Fill a builder with attribute values from the providedCallsParticipantsAddParamsIFinstance.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 providedCallsParticipantsAddParamsIFinstance. 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
Adds elements touserslist.- Parameters:
elements- An array of users elements- Returns:
thisbuilder for use in a chained invocation
-
setUsers
public final CallsParticipantsAddParams.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 CallsParticipantsAddParams.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 newCallsParticipantsAddParams.- Returns:
- An immutable instance of CallsParticipantsAddParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-