src.config.outputs.Config.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai.config.outputs
import besom.internal.CodegenProtocol.*
final case class Config private(
accessToken: String,
accountKey: scala.Option[String],
clientSecret: String,
clientToken: String,
host: String,
maxBody: scala.Option[Int]
)
object Config :
given besom.json.JsonFormat[Config] = besom.internal.CodegenProtocol.jsonFormatN
given decoder(using besom.types.Context): besom.types.Decoder[Config] =
besom.internal.Decoder.derived[Config]
given outputOps: {} with
extension(output: besom.types.Output[Config])
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[Config]])
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))