src.index.outputs.GtmCidrmapDefaultDatacenter.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai.outputs
final case class GtmCidrmapDefaultDatacenter private(
datacenterId: Int,
nickname: scala.Option[String]
)
object GtmCidrmapDefaultDatacenter :
given decoder(using besom.types.Context): besom.types.Decoder[GtmCidrmapDefaultDatacenter] =
besom.internal.Decoder.derived[GtmCidrmapDefaultDatacenter]
given outputOps: {} with
extension(output: besom.types.Output[GtmCidrmapDefaultDatacenter])
def datacenterId : besom.types.Output[Int] = output.map(_.datacenterId)
def nickname : besom.types.Output[scala.Option[String]] = output.map(_.nickname)
given optionOutputOps: {} with
extension(output: besom.types.Output[scala.Option[GtmCidrmapDefaultDatacenter]])
def datacenterId : besom.types.Output[scala.Option[Int]] = output.map(_.map(_.datacenterId))
def nickname : besom.types.Output[scala.Option[String]] = output.map(_.flatMap(_.nickname))