Record Class DeploymentDto
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.messagecontract.web.api.dto.DeploymentDto
public record DeploymentDto(String appName, String appVersion, String environment, ZonedDateTime createdAt)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentDto(String appName, String appVersion, String environment, ZonedDateTime createdAt) Creates an instance of aDeploymentDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionappName()Returns the value of theappNamerecord component.Returns the value of theappVersionrecord component.Returns the value of thecreatedAtrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.static DeploymentDtofromDomainObject(ch.admin.bit.jeap.messagecontract.persistence.model.Deployment deployment) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeploymentDto
public DeploymentDto(String appName, String appVersion, String environment, ZonedDateTime createdAt) Creates an instance of aDeploymentDtorecord class.- Parameters:
appName- the value for theappNamerecord componentappVersion- the value for theappVersionrecord componentenvironment- the value for theenvironmentrecord componentcreatedAt- the value for thecreatedAtrecord component
-
-
Method Details
-
fromDomainObject
public static DeploymentDto fromDomainObject(ch.admin.bit.jeap.messagecontract.persistence.model.Deployment deployment) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
appName
Returns the value of theappNamerecord component.- Returns:
- the value of the
appNamerecord component
-
appVersion
Returns the value of theappVersionrecord component.- Returns:
- the value of the
appVersionrecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-