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

zio.aws.codecatalyst.model.WorkflowDefinition.scala Maven / Gradle / Ivy

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