src.index.GetPropertyArgs.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai
final case class GetPropertyArgs private(
name: besom.types.Output[String],
version: besom.types.Output[scala.Option[Int]]
)
object GetPropertyArgs:
def apply(
name: besom.types.Input[String],
version: besom.types.Input.Optional[Int] = scala.None
)(using besom.types.Context): GetPropertyArgs =
new GetPropertyArgs(
name = name.asOutput(isSecret = false),
version = version.asOptionOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[GetPropertyArgs] =
besom.internal.Encoder.derived[GetPropertyArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[GetPropertyArgs] =
besom.internal.ArgsEncoder.derived[GetPropertyArgs]