src.index.inputs.GtmPropertyTrafficTargetArgs.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai.inputs
final case class GtmPropertyTrafficTargetArgs private(
datacenterId: besom.types.Output[scala.Option[Int]],
enabled: besom.types.Output[scala.Option[Boolean]],
handoutCname: besom.types.Output[scala.Option[String]],
name: besom.types.Output[scala.Option[String]],
precedence: besom.types.Output[scala.Option[Int]],
servers: besom.types.Output[scala.Option[scala.collection.immutable.List[String]]],
weight: besom.types.Output[scala.Option[Double]]
)
object GtmPropertyTrafficTargetArgs:
def apply(
datacenterId: besom.types.Input.Optional[Int] = scala.None,
enabled: besom.types.Input.Optional[Boolean] = scala.None,
handoutCname: besom.types.Input.Optional[String] = scala.None,
name: besom.types.Input.Optional[String] = scala.None,
precedence: besom.types.Input.Optional[Int] = scala.None,
servers: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[String]]] = scala.None,
weight: besom.types.Input.Optional[Double] = scala.None
)(using besom.types.Context): GtmPropertyTrafficTargetArgs =
new GtmPropertyTrafficTargetArgs(
datacenterId = datacenterId.asOptionOutput(isSecret = false),
enabled = enabled.asOptionOutput(isSecret = false),
handoutCname = handoutCname.asOptionOutput(isSecret = false),
name = name.asOptionOutput(isSecret = false),
precedence = precedence.asOptionOutput(isSecret = false),
servers = servers.asOptionOutput(isSecret = false),
weight = weight.asOptionOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[GtmPropertyTrafficTargetArgs] =
besom.internal.Encoder.derived[GtmPropertyTrafficTargetArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[GtmPropertyTrafficTargetArgs] =
besom.internal.ArgsEncoder.derived[GtmPropertyTrafficTargetArgs]