| Modifier and Type | Method and Description |
|---|---|
Banner.Builder |
backgroundColor(String backgroundColor)
Initializes the value for the
backgroundColor attribute. |
Banner |
build()
Builds a new
Banner. |
Banner.Builder |
from(Banner instance)
Fill a builder with attribute values from the provided
Banner instance. |
Banner.Builder |
link(String link)
Initializes the value for the
link attribute. |
Banner.Builder |
logo(String logo)
Initializes the value for the
logo attribute. |
Banner.Builder |
text(String text)
Initializes the value for the
text attribute. |
Banner.Builder |
textColor(String textColor)
Initializes the value for the
textColor attribute. |
public final Banner.Builder from(Banner instance)
Banner instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Banner.Builder backgroundColor(String backgroundColor)
backgroundColor attribute.backgroundColor - The value for backgroundColor (can be null)this builder for use in a chained invocationpublic final Banner.Builder link(String link)
link attribute.link - The value for link (can be null)this builder for use in a chained invocationpublic final Banner.Builder logo(String logo)
logo attribute.logo - The value for logo (can be null)this builder for use in a chained invocationpublic final Banner.Builder text(String text)
text attribute.text - The value for text (can be null)this builder for use in a chained invocationpublic final Banner.Builder textColor(String textColor)
textColor attribute.textColor - The value for textColor (can be null)this builder for use in a chained invocationpublic Banner build()
Banner.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.