Class ImmutableApplicationLogEntity.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableApplicationLogEntity.Builder
-
- Enclosing class:
- ImmutableApplicationLogEntity
public static final class ImmutableApplicationLogEntity.Builder extends Object
Builds instances of typeImmutableApplicationLogEntity. 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 ImmutableApplicationLogEntitybuild()Builds a newImmutableApplicationLogEntity.ImmutableApplicationLogEntity.Builderfrom(ApplicationLogEntity instance)Fill a builder with attribute values from the providedApplicationLogEntityinstance.ImmutableApplicationLogEntity.BuilderinstanceId(String instanceId)Initializes the value for theinstanceIdattribute.ImmutableApplicationLogEntity.BuilderlogBody(ApplicationLogEntity.LogBody logBody)Initializes the value for thelogBodyattribute.ImmutableApplicationLogEntity.BuilderputAllTags(Map<String,? extends String> entries)Put all mappings from the specified map as entries totagsmap.ImmutableApplicationLogEntity.BuilderputTag(String key, String value)Put one entry to thetagsmap.ImmutableApplicationLogEntity.BuilderputTag(Map.Entry<String,? extends String> entry)Put one entry to thetagsmap.ImmutableApplicationLogEntity.BuildersourceId(String sourceId)Initializes the value for thesourceIdattribute.ImmutableApplicationLogEntity.Buildertags(Map<String,? extends String> entries)Sets or replaces all mappings from the specified map as entries for thetagsmap.ImmutableApplicationLogEntity.BuildertimestampInNanoseconds(Long timestampInNanoseconds)Initializes the value for thetimestampInNanosecondsattribute.
-
-
-
Method Detail
-
from
public final ImmutableApplicationLogEntity.Builder from(ApplicationLogEntity instance)
Fill a builder with attribute values from the providedApplicationLogEntityinstance. 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.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
timestampInNanoseconds
public final ImmutableApplicationLogEntity.Builder timestampInNanoseconds(Long timestampInNanoseconds)
Initializes the value for thetimestampInNanosecondsattribute.- Parameters:
timestampInNanoseconds- The value for timestampInNanoseconds- Returns:
thisbuilder for use in a chained invocation
-
sourceId
public final ImmutableApplicationLogEntity.Builder sourceId(String sourceId)
Initializes the value for thesourceIdattribute.- Parameters:
sourceId- The value for sourceId- Returns:
thisbuilder for use in a chained invocation
-
instanceId
public final ImmutableApplicationLogEntity.Builder instanceId(String instanceId)
Initializes the value for theinstanceIdattribute.- Parameters:
instanceId- The value for instanceId- Returns:
thisbuilder for use in a chained invocation
-
putTag
public final ImmutableApplicationLogEntity.Builder putTag(String key, String value)
Put one entry to thetagsmap.- Parameters:
key- The key in the tags mapvalue- The associated value in the tags map- Returns:
thisbuilder for use in a chained invocation
-
putTag
public final ImmutableApplicationLogEntity.Builder putTag(Map.Entry<String,? extends String> entry)
Put one entry to thetagsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
tags
public final ImmutableApplicationLogEntity.Builder tags(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for thetagsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the tags map- Returns:
thisbuilder for use in a chained invocation
-
putAllTags
public final ImmutableApplicationLogEntity.Builder putAllTags(Map<String,? extends String> entries)
Put all mappings from the specified map as entries totagsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the tags map- Returns:
thisbuilder for use in a chained invocation
-
logBody
public final ImmutableApplicationLogEntity.Builder logBody(ApplicationLogEntity.LogBody logBody)
Initializes the value for thelogBodyattribute.- Parameters:
logBody- The value for logBody- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableApplicationLogEntity build()
Builds a newImmutableApplicationLogEntity.- Returns:
- An immutable instance of ApplicationLogEntity
- Throws:
IllegalStateException- if any required attributes are missing
-
-