zio.aws.tnb.model.PutSolFunctionPackageContentResponse.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-tnb_3 Show documentation
Show all versions of zio-aws-tnb_3 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.tnb.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import zio.aws.tnb.model.primitives.{VnfdId, VnfPkgId}
import scala.jdk.CollectionConverters.*
final case class PutSolFunctionPackageContentResponse(
id: VnfPkgId,
metadata: zio.aws.tnb.model.PutSolFunctionPackageContentMetadata,
vnfProductName: String,
vnfProvider: String,
vnfdId: VnfdId,
vnfdVersion: String
) {
def buildAwsValue()
: software.amazon.awssdk.services.tnb.model.PutSolFunctionPackageContentResponse = {
import PutSolFunctionPackageContentResponse.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.tnb.model.PutSolFunctionPackageContentResponse
.builder()
.id(VnfPkgId.unwrap(id): java.lang.String)
.metadata(metadata.buildAwsValue())
.vnfProductName(vnfProductName: java.lang.String)
.vnfProvider(vnfProvider: java.lang.String)
.vnfdId(VnfdId.unwrap(vnfdId): java.lang.String)
.vnfdVersion(vnfdVersion: java.lang.String)
.build()
}
def asReadOnly
: zio.aws.tnb.model.PutSolFunctionPackageContentResponse.ReadOnly =
zio.aws.tnb.model.PutSolFunctionPackageContentResponse.wrap(buildAwsValue())
}
object PutSolFunctionPackageContentResponse {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.tnb.model.PutSolFunctionPackageContentResponse
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.tnb.model.PutSolFunctionPackageContentResponse =
zio.aws.tnb.model.PutSolFunctionPackageContentResponse(
id,
metadata.asEditable,
vnfProductName,
vnfProvider,
vnfdId,
vnfdVersion
)
def id: VnfPkgId
def metadata
: zio.aws.tnb.model.PutSolFunctionPackageContentMetadata.ReadOnly
def vnfProductName: String
def vnfProvider: String
def vnfdId: VnfdId
def vnfdVersion: String
def getId: ZIO[Any, Nothing, VnfPkgId] = ZIO.succeed(id)
def getMetadata: ZIO[
Any,
Nothing,
zio.aws.tnb.model.PutSolFunctionPackageContentMetadata.ReadOnly
] = ZIO.succeed(metadata)
def getVnfProductName: ZIO[Any, Nothing, String] =
ZIO.succeed(vnfProductName)
def getVnfProvider: ZIO[Any, Nothing, String] = ZIO.succeed(vnfProvider)
def getVnfdId: ZIO[Any, Nothing, VnfdId] = ZIO.succeed(vnfdId)
def getVnfdVersion: ZIO[Any, Nothing, String] = ZIO.succeed(vnfdVersion)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.tnb.model.PutSolFunctionPackageContentResponse
) extends zio.aws.tnb.model.PutSolFunctionPackageContentResponse.ReadOnly {
override val id: VnfPkgId = zio.aws.tnb.model.primitives.VnfPkgId(impl.id())
override val metadata
: zio.aws.tnb.model.PutSolFunctionPackageContentMetadata.ReadOnly =
zio.aws.tnb.model.PutSolFunctionPackageContentMetadata
.wrap(impl.metadata())
override val vnfProductName: String = impl.vnfProductName(): String
override val vnfProvider: String = impl.vnfProvider(): String
override val vnfdId: VnfdId =
zio.aws.tnb.model.primitives.VnfdId(impl.vnfdId())
override val vnfdVersion: String = impl.vnfdVersion(): String
}
def wrap(
impl: software.amazon.awssdk.services.tnb.model.PutSolFunctionPackageContentResponse
): zio.aws.tnb.model.PutSolFunctionPackageContentResponse.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy