zio.aws.codecatalyst.model.CreateDevEnvironmentResponse.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.{AwsError, BuilderHelper}
import zio.prelude.data.Optional
import scala.jdk.CollectionConverters.*
final case class CreateDevEnvironmentResponse(
spaceName: NameString,
projectName: NameString,
id: Uuid,
vpcConnectionName: Optional[NameString] = Optional.Absent
) {
def buildAwsValue()
: software.amazon.awssdk.services.codecatalyst.model.CreateDevEnvironmentResponse = {
import CreateDevEnvironmentResponse.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.codecatalyst.model.CreateDevEnvironmentResponse
.builder()
.spaceName(NameString.unwrap(spaceName): java.lang.String)
.projectName(NameString.unwrap(projectName): java.lang.String)
.id(Uuid.unwrap(id): java.lang.String)
.optionallyWith(
vpcConnectionName.map(value =>
NameString.unwrap(value): java.lang.String
)
)(_.vpcConnectionName)
.build()
}
def asReadOnly
: zio.aws.codecatalyst.model.CreateDevEnvironmentResponse.ReadOnly =
zio.aws.codecatalyst.model.CreateDevEnvironmentResponse
.wrap(buildAwsValue())
}
object CreateDevEnvironmentResponse {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.codecatalyst.model.CreateDevEnvironmentResponse
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.codecatalyst.model.CreateDevEnvironmentResponse =
zio.aws.codecatalyst.model.CreateDevEnvironmentResponse(
spaceName,
projectName,
id,
vpcConnectionName.map(value => value)
)
def spaceName: NameString
def projectName: NameString
def id: Uuid
def vpcConnectionName: Optional[NameString]
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 getVpcConnectionName: ZIO[Any, AwsError, NameString] =
AwsError.unwrapOptionField("vpcConnectionName", vpcConnectionName)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.codecatalyst.model.CreateDevEnvironmentResponse
) extends zio.aws.codecatalyst.model.CreateDevEnvironmentResponse.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 vpcConnectionName: Optional[NameString] = zio.aws.core.internal
.optionalFromNullable(impl.vpcConnectionName())
.map(value => zio.aws.codecatalyst.model.primitives.NameString(value))
}
def wrap(
impl: software.amazon.awssdk.services.codecatalyst.model.CreateDevEnvironmentResponse
): zio.aws.codecatalyst.model.CreateDevEnvironmentResponse.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy