![JAR search and dependency download from the Maven repository](/logo.png)
io.cloudshiftdev.awscdk.services.mediapackagev2.CfnChannelProps.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.mediapackagev2
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.String
import kotlin.Unit
import kotlin.collections.List
/**
* Properties for defining a `CfnChannel`.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import io.cloudshiftdev.awscdk.services.mediapackagev2.*;
* CfnChannelProps cfnChannelProps = CfnChannelProps.builder()
* .channelGroupName("channelGroupName")
* .channelName("channelName")
* // the properties below are optional
* .description("description")
* .inputType("inputType")
* .tags(List.of(CfnTag.builder()
* .key("key")
* .value("value")
* .build()))
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html)
*/
public interface CfnChannelProps {
/**
* The name of the channel group associated with the channel configuration.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-channelgroupname)
*/
public fun channelGroupName(): String
/**
* The name of the channel.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-channelname)
*/
public fun channelName(): String
/**
* The description of the channel.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-description)
*/
public fun description(): String? = unwrap(this).getDescription()
/**
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-inputtype)
*/
public fun inputType(): String? = unwrap(this).getInputType()
/**
* The tags associated with the channel.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-tags)
*/
public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList()
/**
* A builder for [CfnChannelProps]
*/
@CdkDslMarker
public interface Builder {
/**
* @param channelGroupName The name of the channel group associated with the channel
* configuration.
*/
public fun channelGroupName(channelGroupName: String)
/**
* @param channelName The name of the channel.
*/
public fun channelName(channelName: String)
/**
* @param description The description of the channel.
*/
public fun description(description: String)
/**
* @param inputType the value to be set.
*/
public fun inputType(inputType: String)
/**
* @param tags The tags associated with the channel.
*/
public fun tags(tags: List)
/**
* @param tags The tags associated with the channel.
*/
public fun tags(vararg tags: CfnTag)
}
private class BuilderImpl : Builder {
private val cdkBuilder: software.amazon.awscdk.services.mediapackagev2.CfnChannelProps.Builder =
software.amazon.awscdk.services.mediapackagev2.CfnChannelProps.builder()
/**
* @param channelGroupName The name of the channel group associated with the channel
* configuration.
*/
override fun channelGroupName(channelGroupName: String) {
cdkBuilder.channelGroupName(channelGroupName)
}
/**
* @param channelName The name of the channel.
*/
override fun channelName(channelName: String) {
cdkBuilder.channelName(channelName)
}
/**
* @param description The description of the channel.
*/
override fun description(description: String) {
cdkBuilder.description(description)
}
/**
* @param inputType the value to be set.
*/
override fun inputType(inputType: String) {
cdkBuilder.inputType(inputType)
}
/**
* @param tags The tags associated with the channel.
*/
override fun tags(tags: List) {
cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap))
}
/**
* @param tags The tags associated with the channel.
*/
override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList())
public fun build(): software.amazon.awscdk.services.mediapackagev2.CfnChannelProps =
cdkBuilder.build()
}
private class Wrapper(
cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnChannelProps,
) : CdkObject(cdkObject),
CfnChannelProps {
/**
* The name of the channel group associated with the channel configuration.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-channelgroupname)
*/
override fun channelGroupName(): String = unwrap(this).getChannelGroupName()
/**
* The name of the channel.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-channelname)
*/
override fun channelName(): String = unwrap(this).getChannelName()
/**
* The description of the channel.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-description)
*/
override fun description(): String? = unwrap(this).getDescription()
/**
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-inputtype)
*/
override fun inputType(): String? = unwrap(this).getInputType()
/**
* The tags associated with the channel.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-tags)
*/
override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList()
}
public companion object {
public operator fun invoke(block: Builder.() -> Unit = {}): CfnChannelProps {
val builderImpl = BuilderImpl()
return Wrapper(builderImpl.apply(block).build())
}
internal fun wrap(cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnChannelProps):
CfnChannelProps = CdkObjectWrappers.wrap(cdkObject) as? CfnChannelProps ?:
Wrapper(cdkObject)
internal fun unwrap(wrapped: CfnChannelProps):
software.amazon.awscdk.services.mediapackagev2.CfnChannelProps = (wrapped as
CdkObject).cdkObject as software.amazon.awscdk.services.mediapackagev2.CfnChannelProps
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy