
commonMain.aws.sdk.kotlin.services.ivsrealtime.model.IngestConfigurationSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivsrealtime.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Summary information about an IngestConfiguration.
*/
public class IngestConfigurationSummary private constructor(builder: Builder) {
/**
* Ingest configuration ARN.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* Type of ingest protocol that the user employs for broadcasting.
*/
public val ingestProtocol: aws.sdk.kotlin.services.ivsrealtime.model.IngestProtocol = requireNotNull(builder.ingestProtocol) { "A non-null value must be provided for ingestProtocol" }
/**
* Ingest name.
*/
public val name: kotlin.String? = builder.name
/**
* ID of the participant within the stage.
*/
public val participantId: kotlin.String = requireNotNull(builder.participantId) { "A non-null value must be provided for participantId" }
/**
* ARN of the stage with which the IngestConfiguration is associated.
*/
public val stageArn: kotlin.String = requireNotNull(builder.stageArn) { "A non-null value must be provided for stageArn" }
/**
* State of the ingest configuration. It is `ACTIVE` if a publisher currently is publishing to the stage associated with the ingest configuration.
*/
public val state: aws.sdk.kotlin.services.ivsrealtime.model.IngestConfigurationState = requireNotNull(builder.state) { "A non-null value must be provided for state" }
/**
* Customer-assigned name to help identify the participant using the IngestConfiguration; this can be used to link a participant to a user in the customer’s own systems. This can be any UTF-8 encoded text. *This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.*
*/
public val userId: kotlin.String? = builder.userId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivsrealtime.model.IngestConfigurationSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IngestConfigurationSummary(")
append("arn=$arn,")
append("ingestProtocol=$ingestProtocol,")
append("name=$name,")
append("participantId=$participantId,")
append("stageArn=$stageArn,")
append("state=$state,")
append("userId=$userId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (ingestProtocol.hashCode())
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (participantId.hashCode())
result = 31 * result + (stageArn.hashCode())
result = 31 * result + (state.hashCode())
result = 31 * result + (userId?.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 IngestConfigurationSummary
if (arn != other.arn) return false
if (ingestProtocol != other.ingestProtocol) return false
if (name != other.name) return false
if (participantId != other.participantId) return false
if (stageArn != other.stageArn) return false
if (state != other.state) return false
if (userId != other.userId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivsrealtime.model.IngestConfigurationSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Ingest configuration ARN.
*/
public var arn: kotlin.String? = null
/**
* Type of ingest protocol that the user employs for broadcasting.
*/
public var ingestProtocol: aws.sdk.kotlin.services.ivsrealtime.model.IngestProtocol? = null
/**
* Ingest name.
*/
public var name: kotlin.String? = null
/**
* ID of the participant within the stage.
*/
public var participantId: kotlin.String? = null
/**
* ARN of the stage with which the IngestConfiguration is associated.
*/
public var stageArn: kotlin.String? = null
/**
* State of the ingest configuration. It is `ACTIVE` if a publisher currently is publishing to the stage associated with the ingest configuration.
*/
public var state: aws.sdk.kotlin.services.ivsrealtime.model.IngestConfigurationState? = null
/**
* Customer-assigned name to help identify the participant using the IngestConfiguration; this can be used to link a participant to a user in the customer’s own systems. This can be any UTF-8 encoded text. *This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.*
*/
public var userId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.IngestConfigurationSummary) : this() {
this.arn = x.arn
this.ingestProtocol = x.ingestProtocol
this.name = x.name
this.participantId = x.participantId
this.stageArn = x.stageArn
this.state = x.state
this.userId = x.userId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.IngestConfigurationSummary = IngestConfigurationSummary(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (ingestProtocol == null) ingestProtocol = IngestProtocol.SdkUnknown("no value provided")
if (participantId == null) participantId = ""
if (stageArn == null) stageArn = ""
if (state == null) state = IngestConfigurationState.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy