Class PublishViewParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.views.PublishViewParams.Builder
- Enclosing class:
PublishViewParams
@Generated(from="PublishViewParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class PublishViewParams.Builder
extends Object
Builds instances of type
PublishViewParams.
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 TypeMethodDescriptionbuild()Builds a newPublishViewParams.from(PublishViewParamsIF instance) Fill a builder with attribute values from the providedPublishViewParamsIFinstance.Initializes the optional valuehashto hash.Initializes the optional valuehashto hash.Initializes the value for theuserIdattribute.setView(HomeTabViewPayload view) Initializes the value for theviewattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedPublishViewParamsIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setUserId
Initializes the value for theuserIdattribute.- Parameters:
userId- The value for userId- Returns:
thisbuilder for use in a chained invocation
-
setView
Initializes the value for theviewattribute.- Parameters:
view- The value for view- Returns:
thisbuilder for use in a chained invocation
-
setHash
Initializes the optional valuehashto hash.- Parameters:
hash- The value for hash,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setHash
Initializes the optional valuehashto hash.- Parameters:
hash- The value for hash- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newPublishViewParams.- Returns:
- An immutable instance of PublishViewParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-