Class ImmutableApplicationLog.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableApplicationLog.Builder
-
- Enclosing class:
- ImmutableApplicationLog
public static final class ImmutableApplicationLog.Builder extends Object
Builds instances of typeImmutableApplicationLog. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableApplicationLog.BuilderapplicationGuid(String applicationGuid)Initializes the value for theapplicationGuidattribute.ImmutableApplicationLogbuild()Builds a newImmutableApplicationLog.ImmutableApplicationLog.Builderfrom(ApplicationLog instance)Fill a builder with attribute values from the providedApplicationLoginstance.ImmutableApplicationLog.Buildermessage(String message)Initializes the value for themessageattribute.ImmutableApplicationLog.BuildermessageType(ApplicationLog.MessageType messageType)Initializes the value for themessageTypeattribute.ImmutableApplicationLog.BuildersourceName(String sourceName)Initializes the value for thesourceNameattribute.ImmutableApplicationLog.Buildertimestamp(LocalDateTime timestamp)Initializes the value for thetimestampattribute.
-
-
-
Method Detail
-
from
public final ImmutableApplicationLog.Builder from(ApplicationLog instance)
Fill a builder with attribute values from the providedApplicationLoginstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
applicationGuid
public final ImmutableApplicationLog.Builder applicationGuid(String applicationGuid)
Initializes the value for theapplicationGuidattribute.- Parameters:
applicationGuid- The value for applicationGuid- Returns:
thisbuilder for use in a chained invocation
-
message
public final ImmutableApplicationLog.Builder message(String message)
Initializes the value for themessageattribute.- Parameters:
message- The value for message- Returns:
thisbuilder for use in a chained invocation
-
timestamp
public final ImmutableApplicationLog.Builder timestamp(LocalDateTime timestamp)
Initializes the value for thetimestampattribute.- Parameters:
timestamp- The value for timestamp- Returns:
thisbuilder for use in a chained invocation
-
messageType
public final ImmutableApplicationLog.Builder messageType(ApplicationLog.MessageType messageType)
Initializes the value for themessageTypeattribute.- Parameters:
messageType- The value for messageType- Returns:
thisbuilder for use in a chained invocation
-
sourceName
public final ImmutableApplicationLog.Builder sourceName(String sourceName)
Initializes the value for thesourceNameattribute.- Parameters:
sourceName- The value for sourceName- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableApplicationLog build()
Builds a newImmutableApplicationLog.- Returns:
- An immutable instance of ApplicationLog
- Throws:
IllegalStateException- if any required attributes are missing
-
-