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

zio.aws.transcribe.model.GetCallAnalyticsCategoryResponse.scala Maven / Gradle / Ivy

The newest version!
package zio.aws.transcribe.model
import zio.ZIO
import zio.aws.core.{AwsError, BuilderHelper}
import zio.prelude.data.Optional
import scala.jdk.CollectionConverters._
final case class GetCallAnalyticsCategoryResponse(
    categoryProperties: Optional[zio.aws.transcribe.model.CategoryProperties] =
      Optional.Absent
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.transcribe.model.GetCallAnalyticsCategoryResponse = {
    import GetCallAnalyticsCategoryResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.transcribe.model.GetCallAnalyticsCategoryResponse
      .builder()
      .optionallyWith(categoryProperties.map(value => value.buildAwsValue()))(
        _.categoryProperties
      )
      .build()
  }
  def asReadOnly
      : zio.aws.transcribe.model.GetCallAnalyticsCategoryResponse.ReadOnly =
    zio.aws.transcribe.model.GetCallAnalyticsCategoryResponse
      .wrap(buildAwsValue())
}
object GetCallAnalyticsCategoryResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.transcribe.model.GetCallAnalyticsCategoryResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.transcribe.model.GetCallAnalyticsCategoryResponse =
      zio.aws.transcribe.model.GetCallAnalyticsCategoryResponse(
        categoryProperties.map(value => value.asEditable)
      )
    def categoryProperties
        : Optional[zio.aws.transcribe.model.CategoryProperties.ReadOnly]
    def getCategoryProperties: ZIO[
      Any,
      AwsError,
      zio.aws.transcribe.model.CategoryProperties.ReadOnly
    ] = AwsError.unwrapOptionField("categoryProperties", categoryProperties)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.transcribe.model.GetCallAnalyticsCategoryResponse
  ) extends zio.aws.transcribe.model.GetCallAnalyticsCategoryResponse.ReadOnly {
    override val categoryProperties
        : Optional[zio.aws.transcribe.model.CategoryProperties.ReadOnly] =
      zio.aws.core.internal
        .optionalFromNullable(impl.categoryProperties())
        .map(value => zio.aws.transcribe.model.CategoryProperties.wrap(value))
  }
  def wrap(
      impl: software.amazon.awssdk.services.transcribe.model.GetCallAnalyticsCategoryResponse
  ): zio.aws.transcribe.model.GetCallAnalyticsCategoryResponse.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy