commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chimesdkmediapipelines-jvm Show documentation
Show all versions of chimesdkmediapipelines-jvm Show documentation
The AWS SDK for Kotlin client for Chime SDK Media Pipelines
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* A structure that contains the configuration settings for a media insights pipeline.
*/
public class MediaInsightsPipelineConfiguration private constructor(builder: Builder) {
/**
* The time at which the configuration was created.
*/
public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
/**
* The elements in the configuration.
*/
public val elements: List? = builder.elements
/**
* The ARN of the configuration.
*/
public val mediaInsightsPipelineConfigurationArn: kotlin.String? = builder.mediaInsightsPipelineConfigurationArn
/**
* The ID of the configuration.
*/
public val mediaInsightsPipelineConfigurationId: kotlin.String? = builder.mediaInsightsPipelineConfigurationId
/**
* The name of the configuration.
*/
public val mediaInsightsPipelineConfigurationName: kotlin.String? = builder.mediaInsightsPipelineConfigurationName
/**
* Lists the rules that trigger a real-time alert.
*/
public val realTimeAlertConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.RealTimeAlertConfiguration? = builder.realTimeAlertConfiguration
/**
* The ARN of the role used by the service to access Amazon Web Services resources.
*/
public val resourceAccessRoleArn: kotlin.String? = builder.resourceAccessRoleArn
/**
* The time at which the configuration was last updated.
*/
public val updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedTimestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MediaInsightsPipelineConfiguration(")
append("createdTimestamp=$createdTimestamp,")
append("elements=$elements,")
append("mediaInsightsPipelineConfigurationArn=*** Sensitive Data Redacted ***,")
append("mediaInsightsPipelineConfigurationId=$mediaInsightsPipelineConfigurationId,")
append("mediaInsightsPipelineConfigurationName=$mediaInsightsPipelineConfigurationName,")
append("realTimeAlertConfiguration=$realTimeAlertConfiguration,")
append("resourceAccessRoleArn=*** Sensitive Data Redacted ***,")
append("updatedTimestamp=$updatedTimestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdTimestamp?.hashCode() ?: 0
result = 31 * result + (elements?.hashCode() ?: 0)
result = 31 * result + (mediaInsightsPipelineConfigurationArn?.hashCode() ?: 0)
result = 31 * result + (mediaInsightsPipelineConfigurationId?.hashCode() ?: 0)
result = 31 * result + (mediaInsightsPipelineConfigurationName?.hashCode() ?: 0)
result = 31 * result + (realTimeAlertConfiguration?.hashCode() ?: 0)
result = 31 * result + (resourceAccessRoleArn?.hashCode() ?: 0)
result = 31 * result + (updatedTimestamp?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as MediaInsightsPipelineConfiguration
if (createdTimestamp != other.createdTimestamp) return false
if (elements != other.elements) return false
if (mediaInsightsPipelineConfigurationArn != other.mediaInsightsPipelineConfigurationArn) return false
if (mediaInsightsPipelineConfigurationId != other.mediaInsightsPipelineConfigurationId) return false
if (mediaInsightsPipelineConfigurationName != other.mediaInsightsPipelineConfigurationName) return false
if (realTimeAlertConfiguration != other.realTimeAlertConfiguration) return false
if (resourceAccessRoleArn != other.resourceAccessRoleArn) return false
if (updatedTimestamp != other.updatedTimestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time at which the configuration was created.
*/
public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The elements in the configuration.
*/
public var elements: List? = null
/**
* The ARN of the configuration.
*/
public var mediaInsightsPipelineConfigurationArn: kotlin.String? = null
/**
* The ID of the configuration.
*/
public var mediaInsightsPipelineConfigurationId: kotlin.String? = null
/**
* The name of the configuration.
*/
public var mediaInsightsPipelineConfigurationName: kotlin.String? = null
/**
* Lists the rules that trigger a real-time alert.
*/
public var realTimeAlertConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.RealTimeAlertConfiguration? = null
/**
* The ARN of the role used by the service to access Amazon Web Services resources.
*/
public var resourceAccessRoleArn: kotlin.String? = null
/**
* The time at which the configuration was last updated.
*/
public var updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineConfiguration) : this() {
this.createdTimestamp = x.createdTimestamp
this.elements = x.elements
this.mediaInsightsPipelineConfigurationArn = x.mediaInsightsPipelineConfigurationArn
this.mediaInsightsPipelineConfigurationId = x.mediaInsightsPipelineConfigurationId
this.mediaInsightsPipelineConfigurationName = x.mediaInsightsPipelineConfigurationName
this.realTimeAlertConfiguration = x.realTimeAlertConfiguration
this.resourceAccessRoleArn = x.resourceAccessRoleArn
this.updatedTimestamp = x.updatedTimestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineConfiguration = MediaInsightsPipelineConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.RealTimeAlertConfiguration] inside the given [block]
*/
public fun realTimeAlertConfiguration(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.RealTimeAlertConfiguration.Builder.() -> kotlin.Unit) {
this.realTimeAlertConfiguration = aws.sdk.kotlin.services.chimesdkmediapipelines.model.RealTimeAlertConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}