Class Icon.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.entity.Icon.Builder
- Enclosing class:
Icon
@Generated(from="IconIF",
generator="Immutables")
@NotThreadSafe
public static final class Icon.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newIcon.final Icon.BuilderFill a builder with attribute values from the providedIconIFinstance.final Icon.BuildersetAltText(String altText) Initializes the value for thealtTextattribute.final Icon.BuilderInitializes the value for theurlattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedIconIFinstance. 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
-
setAltText
Initializes the value for thealtTextattribute.- Parameters:
altText- The value for altText- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newIcon.- Returns:
- An immutable instance of Icon
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-