Class WorkObject.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.WorkObject.Builder
- Enclosing class:
WorkObject
@Generated(from="WorkObjectIF",
generator="Immutables")
@NotThreadSafe
public static final class WorkObject.Builder
extends Object
Builds instances of type
WorkObject.
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 newWorkObject.final WorkObject.Builderfrom(WorkObjectBase instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.workobject.WorkObjectBaseinstance.final WorkObject.Builderfrom(WorkObjectIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.workobject.WorkObjectIFinstance.final WorkObject.BuildersetAppUnfurlUrl(String appUnfurlUrl) Initializes the value for theappUnfurlUrlattribute.final WorkObject.BuildersetEntityPayload(EntityPayload entityPayload) Initializes the value for theentityPayloadattribute.final WorkObject.BuildersetEntityType(EntityType entityType) Initializes the value for theentityTypeattribute.final WorkObject.BuildersetExternalRef(ExternalRef externalRef) Initializes the value for theexternalRefattribute.final WorkObject.BuilderInitializes the value for theurlattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.workobject.WorkObjectIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.workobject.WorkObjectBaseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setEntityType
Initializes the value for theentityTypeattribute.- Parameters:
entityType- The value for entityType- Returns:
thisbuilder for use in a chained invocation
-
setEntityPayload
Initializes the value for theentityPayloadattribute.- Parameters:
entityPayload- The value for entityPayload- Returns:
thisbuilder for use in a chained invocation
-
setUrl
Initializes the value for theurlattribute.- Parameters:
url- The value for url- Returns:
thisbuilder for use in a chained invocation
-
setExternalRef
Initializes the value for theexternalRefattribute.- Parameters:
externalRef- The value for externalRef- Returns:
thisbuilder for use in a chained invocation
-
setAppUnfurlUrl
Initializes the value for theappUnfurlUrlattribute.- Parameters:
appUnfurlUrl- The value for appUnfurlUrl- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newWorkObject.- Returns:
- An immutable instance of WorkObject
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-