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

zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.10
Show newest version
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 ValidateSolFunctionPackageContentResponse(
    id: VnfPkgId,
    metadata: zio.aws.tnb.model.ValidateSolFunctionPackageContentMetadata,
    vnfProductName: String,
    vnfProvider: String,
    vnfdId: VnfdId,
    vnfdVersion: String
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.ValidateSolFunctionPackageContentResponse = {
    import ValidateSolFunctionPackageContentResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.ValidateSolFunctionPackageContentResponse
      .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.ValidateSolFunctionPackageContentResponse.ReadOnly =
    zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse
      .wrap(buildAwsValue())
}
object ValidateSolFunctionPackageContentResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.ValidateSolFunctionPackageContentResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable
        : zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse =
      zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse(
        id,
        metadata.asEditable,
        vnfProductName,
        vnfProvider,
        vnfdId,
        vnfdVersion
      )
    def id: VnfPkgId
    def metadata
        : zio.aws.tnb.model.ValidateSolFunctionPackageContentMetadata.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.ValidateSolFunctionPackageContentMetadata.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.ValidateSolFunctionPackageContentResponse
  ) extends zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse.ReadOnly {
    override val id: VnfPkgId = zio.aws.tnb.model.primitives.VnfPkgId(impl.id())
    override val metadata
        : zio.aws.tnb.model.ValidateSolFunctionPackageContentMetadata.ReadOnly =
      zio.aws.tnb.model.ValidateSolFunctionPackageContentMetadata
        .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.ValidateSolFunctionPackageContentResponse
  ): zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy