Package io.micronaut.maven.jib
Record Class JibConfiguration.ContainerConfiguration
java.lang.Object
java.lang.Record
io.micronaut.maven.jib.JibConfiguration.ContainerConfiguration
- Record Components:
workingDirectory- The working directory.ports- The ports.args- The arguments.labels- The labels.
- Enclosing class:
- JibConfiguration
public static record JibConfiguration.ContainerConfiguration(Optional<String> workingDirectory, Set<String> ports, List<String> args, Set<String> labels)
extends Record
Represents the container configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.labels()Returns the value of thelabelsrecord component.ports()Returns the value of theportsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkingDirectoryrecord component.
-
Constructor Details
-
ContainerConfiguration
public ContainerConfiguration(Optional<String> workingDirectory, Set<String> ports, List<String> args, Set<String> labels) Creates an instance of aContainerConfigurationrecord class.- Parameters:
workingDirectory- the value for theworkingDirectoryrecord componentports- the value for theportsrecord componentargs- the value for theargsrecord componentlabels- the value for thelabelsrecord component
-
-
Method Details
-
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
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). -
workingDirectory
Returns the value of theworkingDirectoryrecord component.- Returns:
- the value of the
workingDirectoryrecord component
-
ports
Returns the value of theportsrecord component.- Returns:
- the value of the
portsrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-