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

cloudshift.awscdk.dsl.services.medialive.CfnChannelCaptionLanguageMappingPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.medialive

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import kotlin.String
import software.amazon.awscdk.services.medialive.CfnChannel

/**
 * Maps a captions channel to an ISO 693-2 language code (http://www.loc.gov/standards/iso639-2),
 * with an optional description.
 *
 * The parent of this entity is HlsGroupSettings.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.medialive.*;
 * CaptionLanguageMappingProperty captionLanguageMappingProperty =
 * CaptionLanguageMappingProperty.builder()
 * .captionChannel(123)
 * .languageCode("languageCode")
 * .languageDescription("languageDescription")
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-captionlanguagemapping.html)
 */
@CdkDslMarker
public class CfnChannelCaptionLanguageMappingPropertyDsl {
  private val cdkBuilder: CfnChannel.CaptionLanguageMappingProperty.Builder =
      CfnChannel.CaptionLanguageMappingProperty.builder()

  /**
   * @param captionChannel The closed caption channel being described by this
   * CaptionLanguageMapping.
   * Each channel mapping must have a unique channel number (maximum of 4).
   */
  public fun captionChannel(captionChannel: Number) {
    cdkBuilder.captionChannel(captionChannel)
  }

  /**
   * @param languageCode A three-character ISO 639-2 language code (see
   * http://www.loc.gov/standards/iso639-2).
   */
  public fun languageCode(languageCode: String) {
    cdkBuilder.languageCode(languageCode)
  }

  /**
   * @param languageDescription The textual description of language.
   */
  public fun languageDescription(languageDescription: String) {
    cdkBuilder.languageDescription(languageDescription)
  }

  public fun build(): CfnChannel.CaptionLanguageMappingProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy