Class FlexPaneMetadata.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.flexpane.FlexPaneMetadata.Builder
- Enclosing class:
FlexPaneMetadata
@Generated(from="FlexPaneMetadataIF",
generator="Immutables")
@NotThreadSafe
public static final class FlexPaneMetadata.Builder
extends Object
Builds instances of type
FlexPaneMetadata.
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 newFlexPaneMetadata.final FlexPaneMetadata.Builderfrom(FlexPaneMetadataIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.workobject.flexpane.FlexPaneMetadataIFinstance.final FlexPaneMetadata.Builderfrom(WorkObjectBase instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.workobject.WorkObjectBaseinstance.final FlexPaneMetadata.BuildersetEntityPayload(EntityPayload entityPayload) Initializes the value for theentityPayloadattribute.final FlexPaneMetadata.BuildersetEntityType(EntityType entityType) Initializes the value for theentityTypeattribute.final FlexPaneMetadata.BuildersetExternalRef(ExternalRef externalRef) Initializes the value for theexternalRefattribute.final FlexPaneMetadata.BuilderInitializes the value for theurlattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.workobject.flexpane.FlexPaneMetadataIFinstance.- 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
-
build
Builds a newFlexPaneMetadata.- Returns:
- An immutable instance of FlexPaneMetadata
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-