io.cloudshiftdev.awscdk.pipelines.ManualApprovalStepProps.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.pipelines
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.String
import kotlin.Unit
/**
* Construction properties for a `ManualApprovalStep`.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import io.cloudshiftdev.awscdk.pipelines.*;
* ManualApprovalStepProps manualApprovalStepProps = ManualApprovalStepProps.builder()
* .comment("comment")
* .build();
* ```
*/
public interface ManualApprovalStepProps {
/**
* The comment to display with this manual approval.
*
* Default: - No comment
*/
public fun comment(): String? = unwrap(this).getComment()
/**
* A builder for [ManualApprovalStepProps]
*/
@CdkDslMarker
public interface Builder {
/**
* @param comment The comment to display with this manual approval.
*/
public fun comment(comment: String)
}
private class BuilderImpl : Builder {
private val cdkBuilder: software.amazon.awscdk.pipelines.ManualApprovalStepProps.Builder =
software.amazon.awscdk.pipelines.ManualApprovalStepProps.builder()
/**
* @param comment The comment to display with this manual approval.
*/
override fun comment(comment: String) {
cdkBuilder.comment(comment)
}
public fun build(): software.amazon.awscdk.pipelines.ManualApprovalStepProps =
cdkBuilder.build()
}
private class Wrapper(
cdkObject: software.amazon.awscdk.pipelines.ManualApprovalStepProps,
) : CdkObject(cdkObject),
ManualApprovalStepProps {
/**
* The comment to display with this manual approval.
*
* Default: - No comment
*/
override fun comment(): String? = unwrap(this).getComment()
}
public companion object {
public operator fun invoke(block: Builder.() -> Unit = {}): ManualApprovalStepProps {
val builderImpl = BuilderImpl()
return Wrapper(builderImpl.apply(block).build())
}
internal fun wrap(cdkObject: software.amazon.awscdk.pipelines.ManualApprovalStepProps):
ManualApprovalStepProps = CdkObjectWrappers.wrap(cdkObject) as? ManualApprovalStepProps ?:
Wrapper(cdkObject)
internal fun unwrap(wrapped: ManualApprovalStepProps):
software.amazon.awscdk.pipelines.ManualApprovalStepProps = (wrapped as CdkObject).cdkObject
as software.amazon.awscdk.pipelines.ManualApprovalStepProps
}
}