public static final class HttpStartStop.Builder extends Object
HttpStartStop.
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 |
|---|---|
HttpStartStop.Builder |
addAllForwarded(Iterable<String> elements)
Adds elements to
forwarded list. |
HttpStartStop.Builder |
applicationId(UUID applicationId)
Initializes the value for the
applicationId attribute. |
HttpStartStop |
build()
Builds a new
HttpStartStop. |
HttpStartStop.Builder |
contentLength(Long contentLength)
Initializes the value for the
contentLength attribute. |
HttpStartStop.Builder |
forwarded(Iterable<String> elements)
Sets or replaces all elements for
forwarded list. |
HttpStartStop.Builder |
forwarded(String... elements)
Adds elements to
forwarded list. |
HttpStartStop.Builder |
forwarded(String element)
Adds one element to
forwarded list. |
HttpStartStop.Builder |
from(HttpStartStop instance)
Fill a builder with attribute values from the provided
HttpStartStop instance. |
HttpStartStop.Builder |
instanceId(String instanceId)
Initializes the value for the
instanceId attribute. |
HttpStartStop.Builder |
instanceIndex(Integer instanceIndex)
Initializes the value for the
instanceIndex attribute. |
HttpStartStop.Builder |
method(Method method)
Initializes the value for the
method attribute. |
HttpStartStop.Builder |
peerType(PeerType peerType)
Initializes the value for the
peerType attribute. |
HttpStartStop.Builder |
remoteAddress(String remoteAddress)
Initializes the value for the
remoteAddress attribute. |
HttpStartStop.Builder |
requestId(UUID requestId)
Initializes the value for the
requestId attribute. |
HttpStartStop.Builder |
startTimestamp(Long startTimestamp)
Initializes the value for the
startTimestamp attribute. |
HttpStartStop.Builder |
statusCode(Integer statusCode)
Initializes the value for the
statusCode attribute. |
HttpStartStop.Builder |
stopTimestamp(Long stopTimestamp)
Initializes the value for the
stopTimestamp attribute. |
HttpStartStop.Builder |
uri(String uri)
Initializes the value for the
uri attribute. |
HttpStartStop.Builder |
userAgent(String userAgent)
Initializes the value for the
userAgent attribute. |
public final HttpStartStop.Builder from(HttpStartStop instance)
HttpStartStop 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 HttpStartStop.Builder applicationId(UUID applicationId)
applicationId attribute.applicationId - The value for applicationId (can be null)this builder for use in a chained invocationpublic final HttpStartStop.Builder contentLength(Long contentLength)
contentLength attribute.contentLength - The value for contentLengththis builder for use in a chained invocationpublic final HttpStartStop.Builder forwarded(String element)
forwarded list.element - A forwarded elementthis builder for use in a chained invocationpublic final HttpStartStop.Builder forwarded(String... elements)
forwarded list.elements - An array of forwarded elementsthis builder for use in a chained invocationpublic final HttpStartStop.Builder forwarded(Iterable<String> elements)
forwarded list.elements - An iterable of forwarded elementsthis builder for use in a chained invocationpublic final HttpStartStop.Builder addAllForwarded(Iterable<String> elements)
forwarded list.elements - An iterable of forwarded elementsthis builder for use in a chained invocationpublic final HttpStartStop.Builder instanceId(String instanceId)
instanceId attribute.instanceId - The value for instanceId (can be null)this builder for use in a chained invocationpublic final HttpStartStop.Builder instanceIndex(Integer instanceIndex)
instanceIndex attribute.instanceIndex - The value for instanceIndex (can be null)this builder for use in a chained invocationpublic final HttpStartStop.Builder method(Method method)
method attribute.method - The value for methodthis builder for use in a chained invocationpublic final HttpStartStop.Builder peerType(PeerType peerType)
peerType attribute.peerType - The value for peerTypethis builder for use in a chained invocationpublic final HttpStartStop.Builder remoteAddress(String remoteAddress)
remoteAddress attribute.remoteAddress - The value for remoteAddressthis builder for use in a chained invocationpublic final HttpStartStop.Builder requestId(UUID requestId)
requestId attribute.requestId - The value for requestIdthis builder for use in a chained invocationpublic final HttpStartStop.Builder startTimestamp(Long startTimestamp)
startTimestamp attribute.startTimestamp - The value for startTimestampthis builder for use in a chained invocationpublic final HttpStartStop.Builder statusCode(Integer statusCode)
statusCode attribute.statusCode - The value for statusCodethis builder for use in a chained invocationpublic final HttpStartStop.Builder stopTimestamp(Long stopTimestamp)
stopTimestamp attribute.stopTimestamp - The value for stopTimestampthis builder for use in a chained invocationpublic final HttpStartStop.Builder uri(String uri)
uri attribute.uri - The value for urithis builder for use in a chained invocationpublic final HttpStartStop.Builder userAgent(String userAgent)
userAgent attribute.userAgent - The value for userAgentthis builder for use in a chained invocationpublic HttpStartStop build()
HttpStartStop.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.