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

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

There is a newer version: 0.0.24-core.0.3
Show newest version
package besom.api.ngrok

final case class ReservedAddress private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  addr: besom.types.Output[String],
  description: besom.types.Output[scala.Option[String]],
  endpointConfigurationId: besom.types.Output[scala.Option[String]],
  metadata: besom.types.Output[scala.Option[String]],
  region: besom.types.Output[scala.Option[String]]
) extends besom.CustomResource

object ReservedAddress extends besom.ResourceCompanion[ReservedAddress]:
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: ReservedAddressArgs = ReservedAddressArgs(),
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[ReservedAddress] =
    ctx.readOrRegisterResource[ReservedAddress, ReservedAddressArgs]("ngrok:index/reservedAddress:ReservedAddress", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "ngrok:index/reservedAddress:ReservedAddress"

  given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[ReservedAddress] =
    besom.internal.ResourceDecoder.derived[ReservedAddress]

  given decoder(using besom.types.Context): besom.types.Decoder[ReservedAddress] =
    besom.internal.Decoder.customResourceDecoder[ReservedAddress]


  given outputOps: {} with
    extension(output: besom.types.Output[ReservedAddress])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def addr : besom.types.Output[String] = output.flatMap(_.addr)
      def description : besom.types.Output[scala.Option[String]] = output.flatMap(_.description)
      def endpointConfigurationId : besom.types.Output[scala.Option[String]] = output.flatMap(_.endpointConfigurationId)
      def metadata : besom.types.Output[scala.Option[String]] = output.flatMap(_.metadata)
      def region : besom.types.Output[scala.Option[String]] = output.flatMap(_.region)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy