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

io.burkard.cdk.services.gamelift.CfnMatchmakingConfiguration.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.gamelift

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnMatchmakingConfiguration {

  def apply(
    internalResourceId: String,
    name: String,
    ruleSetName: String,
    requestTimeoutSeconds: Number,
    acceptanceRequired: Boolean,
    gameSessionQueueArns: Option[List[String]] = None,
    flexMatchMode: Option[String] = None,
    backfillMode: Option[String] = None,
    description: Option[String] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    additionalPlayerCount: Option[Number] = None,
    gameProperties: Option[List[_]] = None,
    customEventData: Option[String] = None,
    gameSessionData: Option[String] = None,
    notificationTarget: Option[String] = None,
    acceptanceTimeoutSeconds: Option[Number] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.gamelift.CfnMatchmakingConfiguration =
    software.amazon.awscdk.services.gamelift.CfnMatchmakingConfiguration.Builder
      .create(stackCtx, internalResourceId)
      .name(name)
      .ruleSetName(ruleSetName)
      .requestTimeoutSeconds(requestTimeoutSeconds)
      .acceptanceRequired(acceptanceRequired)
      .gameSessionQueueArns(gameSessionQueueArns.map(_.asJava).orNull)
      .flexMatchMode(flexMatchMode.orNull)
      .backfillMode(backfillMode.orNull)
      .description(description.orNull)
      .tags(tags.map(_.asJava).orNull)
      .additionalPlayerCount(additionalPlayerCount.orNull)
      .gameProperties(gameProperties.map(_.asJava).orNull)
      .customEventData(customEventData.orNull)
      .gameSessionData(gameSessionData.orNull)
      .notificationTarget(notificationTarget.orNull)
      .acceptanceTimeoutSeconds(acceptanceTimeoutSeconds.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy