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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy