Class ImmutableRawApplicationLog.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawApplicationLog.Builder
-
- Enclosing class:
- ImmutableRawApplicationLog
public static final class ImmutableRawApplicationLog.Builder extends Object
Builds instances of typeImmutableRawApplicationLog. 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 ImmutableRawApplicationLogbuild()Builds a newImmutableRawApplicationLog.ImmutableRawApplicationLog.Builderenvelope(org.cloudfoundry.doppler.Envelope envelope)Initializes the value for theenvelopeattribute.ImmutableRawApplicationLog.Builderfrom(RawApplicationLog instance)Fill a builder with attribute values from the providedRawApplicationLoginstance.
-
-
-
Method Detail
-
from
public final ImmutableRawApplicationLog.Builder from(RawApplicationLog instance)
Fill a builder with attribute values from the providedRawApplicationLoginstance. 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
-
envelope
public final ImmutableRawApplicationLog.Builder envelope(org.cloudfoundry.doppler.Envelope envelope)
Initializes the value for theenvelopeattribute.- Parameters:
envelope- The value for envelope- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableRawApplicationLog build()
Builds a newImmutableRawApplicationLog.- Returns:
- An immutable instance of RawApplicationLog
- Throws:
IllegalStateException- if any required attributes are missing
-
-