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

src.index.outputs.ProviderConfig.scala Maven / Gradle / Ivy

The newest version!
package besom.api.akamai.outputs


final case class ProviderConfig private(
  accessToken: String,
  accountKey: scala.Option[String],
  clientSecret: String,
  clientToken: String,
  host: String,
  maxBody: scala.Option[Int]
)
object ProviderConfig :

  given decoder(using besom.types.Context): besom.types.Decoder[ProviderConfig] =
    besom.internal.Decoder.derived[ProviderConfig]



  given outputOps: {} with
    extension(output: besom.types.Output[ProviderConfig])
      def accessToken : besom.types.Output[String] = output.map(_.accessToken)
      def accountKey : besom.types.Output[scala.Option[String]] = output.map(_.accountKey)
      def clientSecret : besom.types.Output[String] = output.map(_.clientSecret)
      def clientToken : besom.types.Output[String] = output.map(_.clientToken)
      def host : besom.types.Output[String] = output.map(_.host)
      def maxBody : besom.types.Output[scala.Option[Int]] = output.map(_.maxBody)

  given optionOutputOps: {} with
    extension(output: besom.types.Output[scala.Option[ProviderConfig]])
      def accessToken : besom.types.Output[scala.Option[String]] = output.map(_.map(_.accessToken))
      def accountKey : besom.types.Output[scala.Option[String]] = output.map(_.flatMap(_.accountKey))
      def clientSecret : besom.types.Output[scala.Option[String]] = output.map(_.map(_.clientSecret))
      def clientToken : besom.types.Output[scala.Option[String]] = output.map(_.map(_.clientToken))
      def host : besom.types.Output[scala.Option[String]] = output.map(_.map(_.host))
      def maxBody : besom.types.Output[scala.Option[Int]] = output.map(_.flatMap(_.maxBody))





© 2015 - 2024 Weber Informatics LLC | Privacy Policy