All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlassian.maven.plugins.aws.it.ExecutionStep.kt Maven / Gradle / Ivy

The newest version!
package com.atlassian.maven.plugins.aws.it

import java.time.Duration

/**
 * Required by reflection-based Maven plugin framework, which requires a nullary constructor.
 */
data class ExecutionStep(
    var commands: List? = null,
    var targetTagKey: String? = null,
    var targetTagValue: String? = null,
    var timeoutInSeconds: Long = 3600
) {

    fun becomeProper(): ProperExecutionStep {
        return ProperExecutionStep(
            commands!!,
            ResourceTag(
                targetTagKey!!,
                targetTagValue!!
            ),
            Duration.ofSeconds(timeoutInSeconds)
        )
    }
}

data class ProperExecutionStep(
    val commands: List,
    val target: ResourceTag,
    val timeout: Duration
)

data class ResourceTag(
    val key: String,
    val value: String
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy