Class ImmutableApplicationLog
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ApplicationLog
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableApplicationLog
-
- All Implemented Interfaces:
Comparable<ApplicationLog>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableApplicationLog extends ApplicationLog
Immutable implementation ofApplicationLog.Use the builder to create immutable instances:
ImmutableApplicationLog.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableApplicationLog.BuilderBuilds instances of typeImmutableApplicationLog.-
Nested classes/interfaces inherited from class com.sap.cloudfoundry.client.facade.domain.ApplicationLog
ApplicationLog.MessageType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableApplicationLog.Builderbuilder()Creates a builder forImmutableApplicationLog.static ImmutableApplicationLogcopyOf(ApplicationLog instance)Creates an immutable copy of aApplicationLogvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableApplicationLogthat have equal attribute values.StringgetApplicationGuid()StringgetMessage()ApplicationLog.MessageTypegetMessageType()StringgetSourceName()LocalDateTimegetTimestamp()inthashCode()Computes a hash code from attributes:applicationGuid,message,timestamp,messageType,sourceName.ImmutableApplicationLogwithApplicationGuid(String value)Copy the current immutable object by setting a value for theapplicationGuidattribute.ImmutableApplicationLogwithMessage(String value)Copy the current immutable object by setting a value for themessageattribute.ImmutableApplicationLogwithMessageType(ApplicationLog.MessageType value)Copy the current immutable object by setting a value for themessageTypeattribute.ImmutableApplicationLogwithSourceName(String value)Copy the current immutable object by setting a value for thesourceNameattribute.ImmutableApplicationLogwithTimestamp(LocalDateTime value)Copy the current immutable object by setting a value for thetimestampattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.ApplicationLog
compareTo, toString
-
-
-
-
Method Detail
-
getApplicationGuid
public String getApplicationGuid()
- Specified by:
getApplicationGuidin classApplicationLog- Returns:
- The value of the
applicationGuidattribute
-
getMessage
public String getMessage()
- Specified by:
getMessagein classApplicationLog- Returns:
- The value of the
messageattribute
-
getTimestamp
public LocalDateTime getTimestamp()
- Specified by:
getTimestampin classApplicationLog- Returns:
- The value of the
timestampattribute
-
getMessageType
public ApplicationLog.MessageType getMessageType()
- Specified by:
getMessageTypein classApplicationLog- Returns:
- The value of the
messageTypeattribute
-
getSourceName
public String getSourceName()
- Specified by:
getSourceNamein classApplicationLog- Returns:
- The value of the
sourceNameattribute
-
withApplicationGuid
public final ImmutableApplicationLog withApplicationGuid(String value)
Copy the current immutable object by setting a value for theapplicationGuidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for applicationGuid- Returns:
- A modified copy of the
thisobject
-
withMessage
public final ImmutableApplicationLog withMessage(String value)
Copy the current immutable object by setting a value for themessageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for message- Returns:
- A modified copy of the
thisobject
-
withTimestamp
public final ImmutableApplicationLog withTimestamp(LocalDateTime value)
Copy the current immutable object by setting a value for thetimestampattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for timestamp- Returns:
- A modified copy of the
thisobject
-
withMessageType
public final ImmutableApplicationLog withMessageType(ApplicationLog.MessageType value)
Copy the current immutable object by setting a value for themessageTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for messageType- Returns:
- A modified copy of the
thisobject
-
withSourceName
public final ImmutableApplicationLog withSourceName(String value)
Copy the current immutable object by setting a value for thesourceNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceName- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableApplicationLogthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:applicationGuid,message,timestamp,messageType,sourceName.
-
copyOf
public static ImmutableApplicationLog copyOf(ApplicationLog instance)
Creates an immutable copy of aApplicationLogvalue. 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 ApplicationLog instance
-
builder
public static ImmutableApplicationLog.Builder builder()
Creates a builder forImmutableApplicationLog.ImmutableApplicationLog.builder() .applicationGuid(String) // requiredapplicationGuid.message(String) // requiredmessage.timestamp(java.time.LocalDateTime) // requiredtimestamp.messageType(com.sap.cloudfoundry.client.facade.domain.ApplicationLog.MessageType) // requiredmessageType.sourceName(String) // requiredsourceName.build();- Returns:
- A new ImmutableApplicationLog builder
-
-