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

src.retail.v2.ServingConfig.scala Maven / Gradle / Ivy

The newest version!
package besom.api.googlenative.retail.v2

final case class ServingConfig private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  boostControlIds: besom.types.Output[scala.collection.immutable.List[String]],
  catalogId: besom.types.Output[String],
  displayName: besom.types.Output[String],
  diversityLevel: besom.types.Output[String],
  diversityType: besom.types.Output[String],
  doNotAssociateControlIds: besom.types.Output[scala.collection.immutable.List[String]],
  dynamicFacetSpec: besom.types.Output[besom.api.googlenative.retail.v2.outputs.GoogleCloudRetailV2SearchRequestDynamicFacetSpecResponse],
  enableCategoryFilterLevel: besom.types.Output[String],
  facetControlIds: besom.types.Output[scala.collection.immutable.List[String]],
  filterControlIds: besom.types.Output[scala.collection.immutable.List[String]],
  ignoreControlIds: besom.types.Output[scala.collection.immutable.List[String]],
  location: besom.types.Output[String],
  modelId: besom.types.Output[String],
  name: besom.types.Output[String],
  onewaySynonymsControlIds: besom.types.Output[scala.collection.immutable.List[String]],
  personalizationSpec: besom.types.Output[besom.api.googlenative.retail.v2.outputs.GoogleCloudRetailV2SearchRequestPersonalizationSpecResponse],
  priceRerankingLevel: besom.types.Output[String],
  project: besom.types.Output[String],
  redirectControlIds: besom.types.Output[scala.collection.immutable.List[String]],
  replacementControlIds: besom.types.Output[scala.collection.immutable.List[String]],
  servingConfigId: besom.types.Output[String],
  solutionTypes: besom.types.Output[scala.collection.immutable.List[String]],
  twowaySynonymsControlIds: besom.types.Output[scala.collection.immutable.List[String]]
) extends besom.CustomResource

object ServingConfig extends besom.ResourceCompanion[ServingConfig]:
  /** Resource constructor for ServingConfig. 
    * 
    * @param name [[besom.util.NonEmptyString]] The unique (stack-wise) name of the resource in Pulumi state (not on provider's side).
    *        NonEmptyString is inferred automatically from non-empty string literals, even when interpolated. If you encounter any
    *        issues with this, please try using `: NonEmptyString` type annotation. If you need to convert a dynamically generated
    *        string to NonEmptyString, use `NonEmptyString.apply` method - `NonEmptyString(str): Option[NonEmptyString]`.
    *
    * @param args [[ServingConfigArgs]] The configuration to use to create this resource. 
    *
    * @param opts [[besom.CustomResourceOptions]] Resource options to use for this resource. 
    *        Defaults to empty options. If you need to set some options, use [[besom.opts]] function to create them, for example:
    *  
    *        {{{
    *        val res = ServingConfig(
    *          "my-resource",
    *          ServingConfigArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: ServingConfigArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[ServingConfig] =
    ctx.readOrRegisterResource[ServingConfig, ServingConfigArgs]("google-native:retail/v2:ServingConfig", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:retail/v2:ServingConfig"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[ServingConfig])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def boostControlIds : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.boostControlIds)
      def catalogId : besom.types.Output[String] = output.flatMap(_.catalogId)
      def displayName : besom.types.Output[String] = output.flatMap(_.displayName)
      def diversityLevel : besom.types.Output[String] = output.flatMap(_.diversityLevel)
      def diversityType : besom.types.Output[String] = output.flatMap(_.diversityType)
      def doNotAssociateControlIds : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.doNotAssociateControlIds)
      def dynamicFacetSpec : besom.types.Output[besom.api.googlenative.retail.v2.outputs.GoogleCloudRetailV2SearchRequestDynamicFacetSpecResponse] = output.flatMap(_.dynamicFacetSpec)
      def enableCategoryFilterLevel : besom.types.Output[String] = output.flatMap(_.enableCategoryFilterLevel)
      def facetControlIds : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.facetControlIds)
      def filterControlIds : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.filterControlIds)
      def ignoreControlIds : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.ignoreControlIds)
      def location : besom.types.Output[String] = output.flatMap(_.location)
      def modelId : besom.types.Output[String] = output.flatMap(_.modelId)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def onewaySynonymsControlIds : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.onewaySynonymsControlIds)
      def personalizationSpec : besom.types.Output[besom.api.googlenative.retail.v2.outputs.GoogleCloudRetailV2SearchRequestPersonalizationSpecResponse] = output.flatMap(_.personalizationSpec)
      def priceRerankingLevel : besom.types.Output[String] = output.flatMap(_.priceRerankingLevel)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def redirectControlIds : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.redirectControlIds)
      def replacementControlIds : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.replacementControlIds)
      def servingConfigId : besom.types.Output[String] = output.flatMap(_.servingConfigId)
      def solutionTypes : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.solutionTypes)
      def twowaySynonymsControlIds : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.twowaySynonymsControlIds)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy