public static final class ImmutableApplicationLog.Builder extends Object
ImmutableApplicationLog.
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 |
|---|---|
ImmutableApplicationLog.Builder |
applicationGuid(String applicationGuid)
Initializes the value for the
applicationGuid attribute. |
ImmutableApplicationLog |
build()
Builds a new
ImmutableApplicationLog. |
ImmutableApplicationLog.Builder |
from(ApplicationLog instance)
Fill a builder with attribute values from the provided
ApplicationLog instance. |
ImmutableApplicationLog.Builder |
message(String message)
Initializes the value for the
message attribute. |
ImmutableApplicationLog.Builder |
messageType(ApplicationLog.MessageType messageType)
Initializes the value for the
messageType attribute. |
ImmutableApplicationLog.Builder |
sourceId(String sourceId)
Initializes the value for the
sourceId attribute. |
ImmutableApplicationLog.Builder |
sourceName(String sourceName)
Initializes the value for the
sourceName attribute. |
ImmutableApplicationLog.Builder |
timestamp(Date timestamp)
Initializes the value for the
timestamp attribute. |
public final ImmutableApplicationLog.Builder from(ApplicationLog instance)
ApplicationLog instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableApplicationLog.Builder applicationGuid(String applicationGuid)
applicationGuid attribute.applicationGuid - The value for applicationGuidthis builder for use in a chained invocationpublic final ImmutableApplicationLog.Builder message(String message)
message attribute.message - The value for messagethis builder for use in a chained invocationpublic final ImmutableApplicationLog.Builder timestamp(Date timestamp)
timestamp attribute.timestamp - The value for timestampthis builder for use in a chained invocationpublic final ImmutableApplicationLog.Builder messageType(ApplicationLog.MessageType messageType)
messageType attribute.messageType - The value for messageTypethis builder for use in a chained invocationpublic final ImmutableApplicationLog.Builder sourceId(String sourceId)
sourceId attribute.sourceId - The value for sourceIdthis builder for use in a chained invocationpublic final ImmutableApplicationLog.Builder sourceName(String sourceName)
sourceName attribute.sourceName - The value for sourceNamethis builder for use in a chained invocationpublic ImmutableApplicationLog build()
ImmutableApplicationLog.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.