Class Link.Builder
java.lang.Object
com.hubspot.slack.client.models.events.links.Link.Builder
- Enclosing class:
Link
@Generated(from="LinkIF",
generator="Immutables")
@NotThreadSafe
public static final class Link.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newLink.final Link.BuilderFill a builder with attribute values from the providedLinkIFinstance.final Link.BuilderInitializes the value for thedomainattribute.final Link.BuilderInitializes the value for theurlattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedLinkIFinstance. 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
-
setDomain
Initializes the value for thedomainattribute.- Parameters:
domain- The value for domain- 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
-
build
Builds a newLink.- Returns:
- An immutable instance of Link
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-