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

cloudshift.awscdk.dsl.services.medialive.CfnChannelOutputDestinationPropertyDsl.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.Any
import kotlin.String
import kotlin.collections.Collection
import kotlin.collections.MutableList
import software.amazon.awscdk.IResolvable
import software.amazon.awscdk.services.medialive.CfnChannel

/**
 * Configuration information for an output.
 *
 * This entity is at the top level in the channel.
 *
 * 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.*;
 * OutputDestinationProperty outputDestinationProperty = OutputDestinationProperty.builder()
 * .id("id")
 * .mediaPackageSettings(List.of(MediaPackageOutputDestinationSettingsProperty.builder()
 * .channelId("channelId")
 * .build()))
 * .multiplexSettings(MultiplexProgramChannelDestinationSettingsProperty.builder()
 * .multiplexId("multiplexId")
 * .programName("programName")
 * .build())
 * .settings(List.of(OutputDestinationSettingsProperty.builder()
 * .passwordParam("passwordParam")
 * .streamName("streamName")
 * .url("url")
 * .username("username")
 * .build()))
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestination.html)
 */
@CdkDslMarker
public class CfnChannelOutputDestinationPropertyDsl {
  private val cdkBuilder: CfnChannel.OutputDestinationProperty.Builder =
      CfnChannel.OutputDestinationProperty.builder()

  private val _mediaPackageSettings: MutableList = mutableListOf()

  private val _settings: MutableList = mutableListOf()

  /**
   * @param id The ID for this destination.
   */
  public fun id(id: String) {
    cdkBuilder.id(id)
  }

  /**
   * @param mediaPackageSettings The destination settings for a MediaPackage output.
   */
  public fun mediaPackageSettings(vararg mediaPackageSettings: Any) {
    _mediaPackageSettings.addAll(listOf(*mediaPackageSettings))
  }

  /**
   * @param mediaPackageSettings The destination settings for a MediaPackage output.
   */
  public fun mediaPackageSettings(mediaPackageSettings: Collection) {
    _mediaPackageSettings.addAll(mediaPackageSettings)
  }

  /**
   * @param mediaPackageSettings The destination settings for a MediaPackage output.
   */
  public fun mediaPackageSettings(mediaPackageSettings: IResolvable) {
    cdkBuilder.mediaPackageSettings(mediaPackageSettings)
  }

  /**
   * @param multiplexSettings Destination settings for a Multiplex output;.
   * one destination for both encoders.
   */
  public fun multiplexSettings(multiplexSettings: IResolvable) {
    cdkBuilder.multiplexSettings(multiplexSettings)
  }

  /**
   * @param multiplexSettings Destination settings for a Multiplex output;.
   * one destination for both encoders.
   */
  public
      fun multiplexSettings(multiplexSettings: CfnChannel.MultiplexProgramChannelDestinationSettingsProperty) {
    cdkBuilder.multiplexSettings(multiplexSettings)
  }

  /**
   * @param settings The destination settings for an output.
   */
  public fun settings(vararg settings: Any) {
    _settings.addAll(listOf(*settings))
  }

  /**
   * @param settings The destination settings for an output.
   */
  public fun settings(settings: Collection) {
    _settings.addAll(settings)
  }

  /**
   * @param settings The destination settings for an output.
   */
  public fun settings(settings: IResolvable) {
    cdkBuilder.settings(settings)
  }

  public fun build(): CfnChannel.OutputDestinationProperty {
    if(_mediaPackageSettings.isNotEmpty()) cdkBuilder.mediaPackageSettings(_mediaPackageSettings)
    if(_settings.isNotEmpty()) cdkBuilder.settings(_settings)
    return cdkBuilder.build()
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy