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

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

The newest version!
package zio.aws.codecatalyst.model
import zio.aws.codecatalyst.model.primitives.{
  GetWorkflowRequestProjectNameString,
  Uuid,
  NameString
}
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters.*
final case class GetWorkflowRequest(
    spaceName: NameString,
    id: Uuid,
    projectName: GetWorkflowRequestProjectNameString
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.codecatalyst.model.GetWorkflowRequest = {
    import GetWorkflowRequest.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.codecatalyst.model.GetWorkflowRequest
      .builder()
      .spaceName(NameString.unwrap(spaceName): java.lang.String)
      .id(Uuid.unwrap(id): java.lang.String)
      .projectName(
        GetWorkflowRequestProjectNameString.unwrap(
          projectName
        ): java.lang.String
      )
      .build()
  }
  def asReadOnly: zio.aws.codecatalyst.model.GetWorkflowRequest.ReadOnly =
    zio.aws.codecatalyst.model.GetWorkflowRequest.wrap(buildAwsValue())
}
object GetWorkflowRequest {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.codecatalyst.model.GetWorkflowRequest
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.codecatalyst.model.GetWorkflowRequest =
      zio.aws.codecatalyst.model.GetWorkflowRequest(spaceName, id, projectName)
    def spaceName: NameString
    def id: Uuid
    def projectName: GetWorkflowRequestProjectNameString
    def getSpaceName: ZIO[Any, Nothing, NameString] = ZIO.succeed(spaceName)
    def getId: ZIO[Any, Nothing, Uuid] = ZIO.succeed(id)
    def getProjectName: ZIO[Any, Nothing, GetWorkflowRequestProjectNameString] =
      ZIO.succeed(projectName)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.codecatalyst.model.GetWorkflowRequest
  ) extends zio.aws.codecatalyst.model.GetWorkflowRequest.ReadOnly {
    override val spaceName: NameString =
      zio.aws.codecatalyst.model.primitives.NameString(impl.spaceName())
    override val id: Uuid =
      zio.aws.codecatalyst.model.primitives.Uuid(impl.id())
    override val projectName: GetWorkflowRequestProjectNameString =
      zio.aws.codecatalyst.model.primitives
        .GetWorkflowRequestProjectNameString(impl.projectName())
  }
  def wrap(
      impl: software.amazon.awssdk.services.codecatalyst.model.GetWorkflowRequest
  ): zio.aws.codecatalyst.model.GetWorkflowRequest.ReadOnly = new Wrapper(impl)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy