public static final class ImmutableFioAlert.Builder extends Object
ImmutableFioAlert.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableFioAlert |
build()
Builds a new
ImmutableFioAlert. |
ImmutableFioAlert.Builder |
description(String description)
Initializes the value for the
description attribute. |
ImmutableFioAlert.Builder |
expires(long expires)
Initializes the value for the
expires attribute. |
ImmutableFioAlert.Builder |
from(FioAlert instance)
Fill a builder with attribute values from the provided
FioAlert instance. |
ImmutableFioAlert.Builder |
title(String title)
Initializes the value for the
title attribute. |
ImmutableFioAlert.Builder |
uri(String uri)
Initializes the value for the
uri attribute. |
public final ImmutableFioAlert.Builder from(FioAlert instance)
FioAlert 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 ImmutableFioAlert.Builder title(String title)
title attribute.title - The value for titlethis builder for use in a chained invocationpublic final ImmutableFioAlert.Builder expires(long expires)
expires attribute.expires - The value for expiresthis builder for use in a chained invocationpublic final ImmutableFioAlert.Builder uri(String uri)
uri attribute.uri - The value for urithis builder for use in a chained invocationpublic final ImmutableFioAlert.Builder description(String description)
description attribute.description - The value for descriptionthis builder for use in a chained invocationpublic ImmutableFioAlert build()
ImmutableFioAlert.IllegalStateException - if any required attributes are missingCopyright © 2016. All rights reserved.