Record Class ContainerInfoDTO
java.lang.Object
java.lang.Record
com.ammann.servicemanager.dto.ContainerInfoDTO
- Record Components:
id- the Docker container identifier (short or full SHA-256 hex string)name- the container name as assigned by Docker (may include a leading slash)image- the image reference used to create the container, including tagstate- the current container state (e.g. "running", "exited", "paused")status- a human-readable status string (e.g. "Up 5 hours")
public record ContainerInfoDTO(String id, String name, String image, String state, String status)
extends Record
Data transfer object representing summary information about a Docker container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.image()Returns the value of theimagerecord component.name()Returns the value of thenamerecord component.state()Returns the value of thestaterecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContainerInfoDTO
Creates an instance of aContainerInfoDTOrecord class.
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
-
name
-
image
-
state
-
status
-