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