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

io.burkard.cdk.services.licensemanager.CfnLicenseProps.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

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

  def apply(
    consumptionConfiguration: software.amazon.awscdk.services.licensemanager.CfnLicense.ConsumptionConfigurationProperty,
    licenseName: String,
    issuer: software.amazon.awscdk.services.licensemanager.CfnLicense.IssuerDataProperty,
    validity: software.amazon.awscdk.services.licensemanager.CfnLicense.ValidityDateFormatProperty,
    productName: String,
    entitlements: List[_],
    homeRegion: String,
    licenseMetadata: Option[List[_]] = None,
    status: Option[String] = None,
    beneficiary: Option[String] = None,
    productSku: Option[String] = None
  ): software.amazon.awscdk.services.licensemanager.CfnLicenseProps =
    (new software.amazon.awscdk.services.licensemanager.CfnLicenseProps.Builder)
      .consumptionConfiguration(consumptionConfiguration)
      .licenseName(licenseName)
      .issuer(issuer)
      .validity(validity)
      .productName(productName)
      .entitlements(entitlements.asJava)
      .homeRegion(homeRegion)
      .licenseMetadata(licenseMetadata.map(_.asJava).orNull)
      .status(status.orNull)
      .beneficiary(beneficiary.orNull)
      .productSku(productSku.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy