@NotThreadSafe public static final class UsergroupEnableParams.Builder extends Object
UsergroupEnableParams.
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.
| Modifier and Type | Method and Description |
|---|---|
UsergroupEnableParams |
build()
Builds a new
UsergroupEnableParams. |
UsergroupEnableParams.Builder |
from(UsergroupEnableParamsIF instance)
Fill a builder with attribute values from the provided
UsergroupEnableParamsIF instance. |
UsergroupEnableParams.Builder |
setIncludeCount(Boolean includeCount)
Initializes the optional value
includeCount to includeCount. |
UsergroupEnableParams.Builder |
setIncludeCount(Optional<Boolean> includeCount)
Initializes the optional value
includeCount to includeCount. |
UsergroupEnableParams.Builder |
setUsergroupId(String usergroupId)
Initializes the value for the
usergroupId attribute. |
public final UsergroupEnableParams.Builder from(UsergroupEnableParamsIF instance)
UsergroupEnableParamsIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UsergroupEnableParams.Builder setUsergroupId(String usergroupId)
usergroupId attribute.usergroupId - The value for usergroupIdthis builder for use in a chained invocationpublic final UsergroupEnableParams.Builder setIncludeCount(@Nullable Boolean includeCount)
includeCount to includeCount.includeCount - The value for includeCount, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UsergroupEnableParams.Builder setIncludeCount(Optional<Boolean> includeCount)
includeCount to includeCount.includeCount - The value for includeCountthis builder for use in a chained invocationpublic UsergroupEnableParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
UsergroupEnableParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.