Class UrlSource.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.UrlSource.Builder
- Enclosing class:
UrlSource
@Generated(from="UrlSourceIF",
generator="Immutables")
@NotThreadSafe
public static final class UrlSource.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newUrlSource.final UrlSource.Builderfrom(UrlSourceIF instance) Fill a builder with attribute values from the providedUrlSourceIFinstance.final UrlSource.BuilderInitializes the value for thetextattribute.final UrlSource.BuilderInitializes the value for theurlattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedUrlSourceIFinstance. 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
-
setUrl
Initializes the value for theurlattribute.- Parameters:
url- The value for url- Returns:
thisbuilder for use in a chained invocation
-
setText
Initializes the value for thetextattribute.- Parameters:
text- The value for text- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newUrlSource.- Returns:
- An immutable instance of UrlSource
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-