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
-
Method Summary
Modifier and TypeMethodDescriptionargs()
Returns the value of theargs
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.labels()
Returns the value of thelabels
record component.ports()
Returns the value of theports
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theworkingDirectory
record component.
-
Constructor Details
-
ContainerConfiguration
public ContainerConfiguration(Optional<String> workingDirectory, Set<String> ports, List<String> args, Set<String> labels) Creates an instance of aContainerConfiguration
record class.- Parameters:
workingDirectory
- the value for theworkingDirectory
record componentports
- the value for theports
record componentargs
- the value for theargs
record componentlabels
- the value for thelabels
record 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 theworkingDirectory
record component.- Returns:
- the value of the
workingDirectory
record component
-
ports
Returns the value of theports
record component.- Returns:
- the value of the
ports
record component
-
args
Returns the value of theargs
record component.- Returns:
- the value of the
args
record component
-
labels
Returns the value of thelabels
record component.- Returns:
- the value of the
labels
record component
-