public static final class BrokerCatalog.Builder extends Object
BrokerCatalog.
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 |
|---|---|
BrokerCatalog.Builder |
brokerCatalogId(String brokerCatalogId)
Initializes the value for the
brokerCatalogId attribute. |
BrokerCatalog |
build()
Builds a new
BrokerCatalog. |
BrokerCatalog.Builder |
features(Features features)
Initializes the value for the
features attribute. |
BrokerCatalog.Builder |
from(BrokerCatalog instance)
Fill a builder with attribute values from the provided
BrokerCatalog instance. |
BrokerCatalog.Builder |
maximumPollingDuration(Integer maximumPollingDuration)
Initializes the value for the
maximumPollingDuration attribute. |
BrokerCatalog.Builder |
metadata(Map.Entry<String,? extends Object> entry)
Put one entry to the
metadata map. |
BrokerCatalog.Builder |
metadata(Map<String,? extends Object> entries)
Sets or replaces all mappings from the specified map as entries for the
metadata map. |
BrokerCatalog.Builder |
metadata(String key,
Object value)
Put one entry to the
metadata map. |
BrokerCatalog.Builder |
putAllMetadata(Map<String,? extends Object> entries)
Put all mappings from the specified map as entries to
metadata map. |
public final BrokerCatalog.Builder from(BrokerCatalog instance)
BrokerCatalog instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BrokerCatalog.Builder brokerCatalogId(String brokerCatalogId)
brokerCatalogId attribute.brokerCatalogId - The value for brokerCatalogIdthis builder for use in a chained invocationpublic final BrokerCatalog.Builder features(Features features)
features attribute.features - The value for featuresthis builder for use in a chained invocationpublic final BrokerCatalog.Builder maximumPollingDuration(Integer maximumPollingDuration)
maximumPollingDuration attribute.maximumPollingDuration - The value for maximumPollingDuration (can be null)this builder for use in a chained invocationpublic final BrokerCatalog.Builder metadata(String key, Object value)
metadata map.key - The key in the metadata mapvalue - The associated value in the metadata mapthis builder for use in a chained invocationpublic final BrokerCatalog.Builder metadata(Map.Entry<String,? extends Object> entry)
metadata map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final BrokerCatalog.Builder metadata(Map<String,? extends Object> entries)
metadata map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - The entries that will be added to the metadata mapthis builder for use in a chained invocationpublic final BrokerCatalog.Builder putAllMetadata(Map<String,? extends Object> entries)
metadata map. Nulls are not permittedentries - The entries that will be added to the metadata mapthis builder for use in a chained invocationpublic BrokerCatalog build()
BrokerCatalog.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.