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

src.datastream.v1alpha1.RouteArgs.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.datastream.v1alpha1

final case class RouteArgs private(
  destinationAddress: besom.types.Output[String],
  destinationPort: besom.types.Output[scala.Option[Int]],
  displayName: besom.types.Output[String],
  labels: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  location: besom.types.Output[scala.Option[String]],
  privateConnectionId: besom.types.Output[String],
  project: besom.types.Output[scala.Option[String]],
  requestId: besom.types.Output[scala.Option[String]],
  routeId: besom.types.Output[String]
)

object RouteArgs:
  def apply(
    destinationAddress: besom.types.Input[String],
    destinationPort: besom.types.Input.Optional[Int] = scala.None,
    displayName: besom.types.Input[String],
    labels: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[String]]] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    privateConnectionId: besom.types.Input[String],
    project: besom.types.Input.Optional[String] = scala.None,
    requestId: besom.types.Input.Optional[String] = scala.None,
    routeId: besom.types.Input[String]
  )(using besom.types.Context): RouteArgs =
    new RouteArgs(
      destinationAddress = destinationAddress.asOutput(isSecret = false),
      destinationPort = destinationPort.asOptionOutput(isSecret = false),
      displayName = displayName.asOutput(isSecret = false),
      labels = labels.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      privateConnectionId = privateConnectionId.asOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      requestId = requestId.asOptionOutput(isSecret = false),
      routeId = routeId.asOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy