Record Class ActTestSpec
java.lang.Object
java.lang.Record
io.github.pshevche.act.internal.spec.ActTestSpec
public record ActTestSpec(String name, Path workflow, @Nullable String job, @Nullable ActTestSpecEvent event, @Nullable ActTestSpecInput env, @Nullable ActTestSpecInput inputs, @Nullable ActTestSpecInput secrets, @Nullable ActTestSpecInput variables, Map<String,Object> matrix, @Nullable ActTestSpecResources resources, List<String> additionalArgs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionActTestSpec(String name, Path workflow, String job, ActTestSpecEvent event, ActTestSpecInput env, ActTestSpecInput inputs, ActTestSpecInput secrets, ActTestSpecInput variables, Map<String, Object> matrix, ActTestSpecResources resources, List<String> additionalArgs) Creates an instance of aActTestSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalArgsrecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.job()Returns the value of thejobrecord component.matrix()Returns the value of thematrixrecord component.name()Returns the value of thenamerecord component.Returns the value of theresourcesrecord component.secrets()Returns the value of thesecretsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariablesrecord component.workflow()Returns the value of theworkflowrecord component.
-
Constructor Details
-
ActTestSpec
public ActTestSpec(String name, Path workflow, @Nullable String job, @Nullable ActTestSpecEvent event, @Nullable ActTestSpecInput env, @Nullable ActTestSpecInput inputs, @Nullable ActTestSpecInput secrets, @Nullable ActTestSpecInput variables, Map<String, Object> matrix, @Nullable ActTestSpecResources resources, List<String> additionalArgs) Creates an instance of aActTestSpecrecord class.- Parameters:
name- the value for thenamerecord componentworkflow- the value for theworkflowrecord componentjob- the value for thejobrecord componentevent- the value for theeventrecord componentenv- the value for theenvrecord componentinputs- the value for theinputsrecord componentsecrets- the value for thesecretsrecord componentvariables- the value for thevariablesrecord componentmatrix- the value for thematrixrecord componentresources- the value for theresourcesrecord componentadditionalArgs- the value for theadditionalArgsrecord 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
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
workflow
Returns the value of theworkflowrecord component.- Returns:
- the value of the
workflowrecord component
-
job
Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
secrets
Returns the value of thesecretsrecord component.- Returns:
- the value of the
secretsrecord component
-
variables
Returns the value of thevariablesrecord component.- Returns:
- the value of the
variablesrecord component
-
matrix
Returns the value of thematrixrecord component.- Returns:
- the value of the
matrixrecord component
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-
additionalArgs
Returns the value of theadditionalArgsrecord component.- Returns:
- the value of the
additionalArgsrecord component
-