| Modifier and Type | Method and Description |
|---|---|
Metadata.Builder |
annotation(Map.Entry<String,? extends String> entry)
Put one entry to the
annotations map. |
Metadata.Builder |
annotation(String key,
String value)
Put one entry to the
annotations map. |
Metadata.Builder |
annotations(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
annotations map. |
Metadata |
build()
Builds a new
Metadata. |
Metadata.Builder |
from(Metadata instance)
Fill a builder with attribute values from the provided
Metadata instance. |
Metadata.Builder |
label(Map.Entry<String,? extends String> entry)
Put one entry to the
labels map. |
Metadata.Builder |
label(String key,
String value)
Put one entry to the
labels map. |
Metadata.Builder |
labels(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
labels map. |
Metadata.Builder |
putAllAnnotations(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
annotations map. |
Metadata.Builder |
putAllLabels(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
labels map. |
public final Metadata.Builder from(Metadata instance)
Metadata 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 Metadata.Builder annotation(String key, String value)
annotations map.key - The key in the annotations mapvalue - The associated value in the annotations mapthis builder for use in a chained invocationpublic final Metadata.Builder annotation(Map.Entry<String,? extends String> entry)
annotations map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final Metadata.Builder annotations(Map<String,? extends String> entries)
annotations map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - The entries that will be added to the annotations mapthis builder for use in a chained invocationpublic final Metadata.Builder putAllAnnotations(Map<String,? extends String> entries)
annotations map. Nulls are not permittedentries - The entries that will be added to the annotations mapthis builder for use in a chained invocationpublic final Metadata.Builder label(String key, String value)
labels map.key - The key in the labels mapvalue - The associated value in the labels mapthis builder for use in a chained invocationpublic final Metadata.Builder label(Map.Entry<String,? extends String> entry)
labels map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final Metadata.Builder labels(Map<String,? extends String> entries)
labels map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - The entries that will be added to the labels mapthis builder for use in a chained invocationpublic final Metadata.Builder putAllLabels(Map<String,? extends String> entries)
labels map. Nulls are not permittedentries - The entries that will be added to the labels mapthis builder for use in a chained invocationpublic Metadata build()
Metadata.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.