| Modifier and Type | Method and Description |
|---|---|
Status |
build()
Builds a new
Status. |
Status.Builder |
detail(Map.Entry<String,? extends String> entry)
Put one entry to the
details map. |
Status.Builder |
detail(String key,
String value)
Put one entry to the
details map. |
Status.Builder |
details(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
details map. |
Status.Builder |
from(Status instance)
Fill a builder with attribute values from the provided
Status instance. |
Status.Builder |
putAllDetails(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
details map. |
Status.Builder |
reason(DeploymentStatusReason reason)
Initializes the value for the
reason attribute. |
Status.Builder |
value(DeploymentStatusValue value)
Initializes the value for the
value attribute. |
public final Status.Builder from(Status instance)
Status 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 Status.Builder detail(String key, String value)
details map.key - The key in the details mapvalue - The associated value in the details mapthis builder for use in a chained invocationpublic final Status.Builder detail(Map.Entry<String,? extends String> entry)
details map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final Status.Builder details(Map<String,? extends String> entries)
details map. Nulls are not permittedentries - The entries that will be added to the details mapthis builder for use in a chained invocationpublic final Status.Builder putAllDetails(Map<String,? extends String> entries)
details map. Nulls are not permittedentries - The entries that will be added to the details mapthis builder for use in a chained invocationpublic final Status.Builder reason(DeploymentStatusReason reason)
reason attribute.reason - The value for reason (can be null)this builder for use in a chained invocationpublic final Status.Builder value(DeploymentStatusValue value)
value attribute.value - The value for valuethis builder for use in a chained invocationpublic Status build()
Status.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.