zio.aws.codecatalyst.model.WorkflowDefinition.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-codecatalyst_3 Show documentation
Show all versions of zio-aws-codecatalyst_3 Show documentation
Low-level AWS wrapper for ZIO
The newest version!
package zio.aws.codecatalyst.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters.*
final case class WorkflowDefinition(path: String) {
def buildAwsValue()
: software.amazon.awssdk.services.codecatalyst.model.WorkflowDefinition = {
import WorkflowDefinition.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.codecatalyst.model.WorkflowDefinition
.builder()
.path(path: java.lang.String)
.build()
}
def asReadOnly: zio.aws.codecatalyst.model.WorkflowDefinition.ReadOnly =
zio.aws.codecatalyst.model.WorkflowDefinition.wrap(buildAwsValue())
}
object WorkflowDefinition {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.codecatalyst.model.WorkflowDefinition
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.codecatalyst.model.WorkflowDefinition =
zio.aws.codecatalyst.model.WorkflowDefinition(path)
def path: String
def getPath: ZIO[Any, Nothing, String] = ZIO.succeed(path)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.codecatalyst.model.WorkflowDefinition
) extends zio.aws.codecatalyst.model.WorkflowDefinition.ReadOnly {
override val path: String = impl.path(): String
}
def wrap(
impl: software.amazon.awssdk.services.codecatalyst.model.WorkflowDefinition
): zio.aws.codecatalyst.model.WorkflowDefinition.ReadOnly = new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy