Class ImmutableApplicationLogEntity
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.ApplicationLogEntity
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableApplicationLogEntity
-
- All Implemented Interfaces:
Comparable<ApplicationLogEntity>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableApplicationLogEntity extends ApplicationLogEntity
Immutable implementation ofApplicationLogEntity.Use the builder to create immutable instances:
ImmutableApplicationLogEntity.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableApplicationLogEntity.BuilderBuilds instances of typeImmutableApplicationLogEntity.static classImmutableApplicationLogEntity.ImmutableLogBodyImmutable implementation ofApplicationLogEntity.LogBody.-
Nested classes/interfaces inherited from class com.sap.cloudfoundry.client.facade.adapters.ApplicationLogEntity
ApplicationLogEntity.LogBody
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableApplicationLogEntity.Builderbuilder()Creates a builder forImmutableApplicationLogEntity.static ImmutableApplicationLogEntitycopyOf(ApplicationLogEntity instance)Creates an immutable copy of aApplicationLogEntityvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableApplicationLogEntitythat have equal attribute values.StringgetInstanceId()ApplicationLogEntity.LogBodygetLogBody()StringgetSourceId()Map<String,String>getTags()LonggetTimestampInNanoseconds()inthashCode()Computes a hash code from attributes:timestampInNanoseconds,sourceId,instanceId,tags,logBody.StringtoString()Prints the immutable valueApplicationLogEntitywith attribute values.ImmutableApplicationLogEntitywithInstanceId(String value)Copy the current immutable object by setting a value for theinstanceIdattribute.ImmutableApplicationLogEntitywithLogBody(ApplicationLogEntity.LogBody value)Copy the current immutable object by setting a value for thelogBodyattribute.ImmutableApplicationLogEntitywithSourceId(String value)Copy the current immutable object by setting a value for thesourceIdattribute.ImmutableApplicationLogEntitywithTags(Map<String,? extends String> entries)Copy the current immutable object by replacing thetagsmap with the specified map.ImmutableApplicationLogEntitywithTimestampInNanoseconds(Long value)Copy the current immutable object by setting a value for thetimestampInNanosecondsattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.ApplicationLogEntity
compareTo
-
-
-
-
Method Detail
-
getTimestampInNanoseconds
public Long getTimestampInNanoseconds()
- Specified by:
getTimestampInNanosecondsin classApplicationLogEntity- Returns:
- The value of the
timestampInNanosecondsattribute
-
getSourceId
public String getSourceId()
- Specified by:
getSourceIdin classApplicationLogEntity- Returns:
- The value of the
sourceIdattribute
-
getInstanceId
public String getInstanceId()
- Specified by:
getInstanceIdin classApplicationLogEntity- Returns:
- The value of the
instanceIdattribute
-
getTags
public Map<String,String> getTags()
- Specified by:
getTagsin classApplicationLogEntity- Returns:
- The value of the
tagsattribute
-
getLogBody
public ApplicationLogEntity.LogBody getLogBody()
- Specified by:
getLogBodyin classApplicationLogEntity- Returns:
- The value of the
logBodyattribute
-
withTimestampInNanoseconds
public final ImmutableApplicationLogEntity withTimestampInNanoseconds(Long value)
Copy the current immutable object by setting a value for thetimestampInNanosecondsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for timestampInNanoseconds- Returns:
- A modified copy of the
thisobject
-
withSourceId
public final ImmutableApplicationLogEntity withSourceId(String value)
Copy the current immutable object by setting a value for thesourceIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceId- Returns:
- A modified copy of the
thisobject
-
withInstanceId
public final ImmutableApplicationLogEntity withInstanceId(String value)
Copy the current immutable object by setting a value for theinstanceIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for instanceId- Returns:
- A modified copy of the
thisobject
-
withTags
public final ImmutableApplicationLogEntity withTags(Map<String,? extends String> entries)
Copy the current immutable object by replacing thetagsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the tags map- Returns:
- A modified copy of
thisobject
-
withLogBody
public final ImmutableApplicationLogEntity withLogBody(ApplicationLogEntity.LogBody value)
Copy the current immutable object by setting a value for thelogBodyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for logBody- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableApplicationLogEntitythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:timestampInNanoseconds,sourceId,instanceId,tags,logBody.
-
toString
public String toString()
Prints the immutable valueApplicationLogEntitywith attribute values.
-
copyOf
public static ImmutableApplicationLogEntity copyOf(ApplicationLogEntity instance)
Creates an immutable copy of aApplicationLogEntityvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ApplicationLogEntity instance
-
builder
public static ImmutableApplicationLogEntity.Builder builder()
Creates a builder forImmutableApplicationLogEntity.ImmutableApplicationLogEntity.builder() .timestampInNanoseconds(Long) // requiredtimestampInNanoseconds.sourceId(String) // requiredsourceId.instanceId(String) // requiredinstanceId.putTag|putAllTags(String => String) //tagsmappings .logBody(com.sap.cloudfoundry.client.facade.adapters.ApplicationLogEntity.LogBody) // requiredlogBody.build();- Returns:
- A new ImmutableApplicationLogEntity builder
-
-