All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.index.PropertyArgs.scala Maven / Gradle / Ivy

The newest version!
package besom.api.akamai

final case class PropertyArgs private(
  contractId: besom.types.Output[String],
  groupId: besom.types.Output[String],
  hostnames: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.akamai.inputs.PropertyHostnameArgs]]],
  name: besom.types.Output[scala.Option[String]],
  productId: besom.types.Output[String],
  propertyId: besom.types.Output[scala.Option[String]],
  ruleFormat: besom.types.Output[scala.Option[String]],
  rules: besom.types.Output[scala.Option[String]],
  versionNotes: besom.types.Output[scala.Option[String]]
)

object PropertyArgs:
  def apply(
    contractId: besom.types.Input[String],
    groupId: besom.types.Input[String],
    hostnames: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.akamai.inputs.PropertyHostnameArgs]]] = scala.None,
    name: besom.types.Input.Optional[String] = scala.None,
    productId: besom.types.Input[String],
    propertyId: besom.types.Input.Optional[String] = scala.None,
    ruleFormat: besom.types.Input.Optional[String] = scala.None,
    rules: besom.types.Input.Optional[String] = scala.None,
    versionNotes: besom.types.Input.Optional[String] = scala.None
  )(using besom.types.Context): PropertyArgs =
    new PropertyArgs(
      contractId = contractId.asOutput(isSecret = false),
      groupId = groupId.asOutput(isSecret = false),
      hostnames = hostnames.asOptionOutput(isSecret = false),
      name = name.asOptionOutput(isSecret = false),
      productId = productId.asOutput(isSecret = false),
      propertyId = propertyId.asOptionOutput(isSecret = false),
      ruleFormat = ruleFormat.asOptionOutput(isSecret = false),
      rules = rules.asOptionOutput(isSecret = false),
      versionNotes = versionNotes.asOptionOutput(isSecret = false)
    )

  given encoder(using besom.types.Context): besom.types.Encoder[PropertyArgs] =
    besom.internal.Encoder.derived[PropertyArgs]
  given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[PropertyArgs] =
    besom.internal.ArgsEncoder.derived[PropertyArgs]






© 2015 - 2024 Weber Informatics LLC | Privacy Policy