| Modifier and Type | Method and Description |
|---|---|
Envelope |
build()
Builds a new
Envelope. |
Envelope.Builder |
containerMetric(ContainerMetric containerMetric)
Initializes the value for the
containerMetric attribute. |
Envelope.Builder |
counterEvent(CounterEvent counterEvent)
Initializes the value for the
counterEvent attribute. |
Envelope.Builder |
deployment(String deployment)
Initializes the value for the
deployment attribute. |
Envelope.Builder |
error(Error error)
Initializes the value for the
error attribute. |
Envelope.Builder |
eventType(EventType eventType)
Initializes the value for the
eventType attribute. |
Envelope.Builder |
from(Envelope instance)
Fill a builder with attribute values from the provided
Envelope instance. |
Envelope.Builder |
httpStartStop(HttpStartStop httpStartStop)
Initializes the value for the
httpStartStop attribute. |
Envelope.Builder |
index(String index)
Initializes the value for the
index attribute. |
Envelope.Builder |
ip(String ip)
Initializes the value for the
ip attribute. |
Envelope.Builder |
job(String job)
Initializes the value for the
job attribute. |
Envelope.Builder |
logMessage(LogMessage logMessage)
Initializes the value for the
logMessage attribute. |
Envelope.Builder |
origin(String origin)
Initializes the value for the
origin attribute. |
Envelope.Builder |
putAllTags(Map<String,? extends String> tags)
Put all mappings from the specified map as entries to
tags map. |
Envelope.Builder |
tag(Map.Entry<String,? extends String> entry)
Put one entry to the
tags map. |
Envelope.Builder |
tag(String key,
String value)
Put one entry to the
tags map. |
Envelope.Builder |
tags(Map<String,? extends String> tags)
Sets or replaces all mappings from the specified map as entries for the
tags map. |
Envelope.Builder |
timestamp(Long timestamp)
Initializes the value for the
timestamp attribute. |
Envelope.Builder |
valueMetric(ValueMetric valueMetric)
Initializes the value for the
valueMetric attribute. |
public final Envelope.Builder from(Envelope instance)
Envelope 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 Envelope.Builder containerMetric(ContainerMetric containerMetric)
containerMetric attribute.containerMetric - The value for containerMetric (can be null)this builder for use in a chained invocationpublic final Envelope.Builder counterEvent(CounterEvent counterEvent)
counterEvent attribute.counterEvent - The value for counterEvent (can be null)this builder for use in a chained invocationpublic final Envelope.Builder deployment(String deployment)
deployment attribute.deployment - The value for deployment (can be null)this builder for use in a chained invocationpublic final Envelope.Builder error(Error error)
error attribute.error - The value for error (can be null)this builder for use in a chained invocationpublic final Envelope.Builder eventType(EventType eventType)
eventType attribute.eventType - The value for eventTypethis builder for use in a chained invocationpublic final Envelope.Builder httpStartStop(HttpStartStop httpStartStop)
httpStartStop attribute.httpStartStop - The value for httpStartStop (can be null)this builder for use in a chained invocationpublic final Envelope.Builder index(String index)
index attribute.index - The value for index (can be null)this builder for use in a chained invocationpublic final Envelope.Builder ip(String ip)
ip attribute.ip - The value for ip (can be null)this builder for use in a chained invocationpublic final Envelope.Builder job(String job)
job attribute.job - The value for job (can be null)this builder for use in a chained invocationpublic final Envelope.Builder logMessage(LogMessage logMessage)
logMessage attribute.logMessage - The value for logMessage (can be null)this builder for use in a chained invocationpublic final Envelope.Builder origin(String origin)
origin attribute.origin - The value for originthis builder for use in a chained invocationpublic final Envelope.Builder tag(String key, String value)
tags map.key - The key in the tags mapvalue - The associated value in the tags mapthis builder for use in a chained invocationpublic final Envelope.Builder tag(Map.Entry<String,? extends String> entry)
tags map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final Envelope.Builder tags(Map<String,? extends String> tags)
tags map. Nulls are not permittedtags - The entries that will be added to the tags mapthis builder for use in a chained invocationpublic final Envelope.Builder putAllTags(Map<String,? extends String> tags)
tags map. Nulls are not permittedtags - The entries that will be added to the tags mapthis builder for use in a chained invocationpublic final Envelope.Builder timestamp(Long timestamp)
timestamp attribute.timestamp - The value for timestamp (can be null)this builder for use in a chained invocationpublic final Envelope.Builder valueMetric(ValueMetric valueMetric)
valueMetric attribute.valueMetric - The value for valueMetric (can be null)this builder for use in a chained invocationpublic Envelope build()
Envelope.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.