zio.aws.codecatalyst.model.StartDevEnvironmentResponse.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.aws.codecatalyst.model.primitives.{Uuid, NameString}
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters.*
final case class StartDevEnvironmentResponse(
spaceName: NameString,
projectName: NameString,
id: Uuid,
status: zio.aws.codecatalyst.model.DevEnvironmentStatus
) {
def buildAwsValue()
: software.amazon.awssdk.services.codecatalyst.model.StartDevEnvironmentResponse = {
import StartDevEnvironmentResponse.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.codecatalyst.model.StartDevEnvironmentResponse
.builder()
.spaceName(NameString.unwrap(spaceName): java.lang.String)
.projectName(NameString.unwrap(projectName): java.lang.String)
.id(Uuid.unwrap(id): java.lang.String)
.status(status.unwrap)
.build()
}
def asReadOnly
: zio.aws.codecatalyst.model.StartDevEnvironmentResponse.ReadOnly =
zio.aws.codecatalyst.model.StartDevEnvironmentResponse.wrap(buildAwsValue())
}
object StartDevEnvironmentResponse {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.codecatalyst.model.StartDevEnvironmentResponse
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.codecatalyst.model.StartDevEnvironmentResponse =
zio.aws.codecatalyst.model.StartDevEnvironmentResponse(
spaceName,
projectName,
id,
status
)
def spaceName: NameString
def projectName: NameString
def id: Uuid
def status: zio.aws.codecatalyst.model.DevEnvironmentStatus
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 getStatus
: ZIO[Any, Nothing, zio.aws.codecatalyst.model.DevEnvironmentStatus] =
ZIO.succeed(status)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.codecatalyst.model.StartDevEnvironmentResponse
) extends zio.aws.codecatalyst.model.StartDevEnvironmentResponse.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 status: zio.aws.codecatalyst.model.DevEnvironmentStatus =
zio.aws.codecatalyst.model.DevEnvironmentStatus.wrap(impl.status())
}
def wrap(
impl: software.amazon.awssdk.services.codecatalyst.model.StartDevEnvironmentResponse
): zio.aws.codecatalyst.model.StartDevEnvironmentResponse.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy