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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy