
commonMain.aws.sdk.kotlin.services.ivsrealtime.model.CreateIngestConfigurationRequest.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
public class CreateIngestConfigurationRequest private constructor(builder: Builder) {
/**
* Application-provided attributes to store in the IngestConfiguration and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. *This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.*
*/
public val attributes: Map? = builder.attributes
/**
* Type of ingest protocol that the user employs to broadcast. If this is set to `RTMP`, `insecureIngest` must be set to `true`.
*/
public val ingestProtocol: aws.sdk.kotlin.services.ivsrealtime.model.IngestProtocol? = builder.ingestProtocol
/**
* Whether the stage allows insecure RTMP ingest. This must be set to `true`, if `ingestProtocol` is set to `RTMP`. Default: `false`.
*/
public val insecureIngest: kotlin.Boolean? = builder.insecureIngest
/**
* Optional name that can be specified for the IngestConfiguration being created.
*/
public val name: kotlin.String? = builder.name
/**
* ARN of the stage with which the IngestConfiguration is associated.
*/
public val stageArn: kotlin.String? = builder.stageArn
/**
* Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
*/
public val tags: Map? = builder.tags
/**
* 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.CreateIngestConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateIngestConfigurationRequest(")
append("attributes=$attributes,")
append("ingestProtocol=$ingestProtocol,")
append("insecureIngest=$insecureIngest,")
append("name=$name,")
append("stageArn=$stageArn,")
append("tags=$tags,")
append("userId=$userId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributes?.hashCode() ?: 0
result = 31 * result + (ingestProtocol?.hashCode() ?: 0)
result = 31 * result + (insecureIngest?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (stageArn?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
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 CreateIngestConfigurationRequest
if (attributes != other.attributes) return false
if (ingestProtocol != other.ingestProtocol) return false
if (insecureIngest != other.insecureIngest) return false
if (name != other.name) return false
if (stageArn != other.stageArn) return false
if (tags != other.tags) return false
if (userId != other.userId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivsrealtime.model.CreateIngestConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Application-provided attributes to store in the IngestConfiguration and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. *This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.*
*/
public var attributes: Map? = null
/**
* Type of ingest protocol that the user employs to broadcast. If this is set to `RTMP`, `insecureIngest` must be set to `true`.
*/
public var ingestProtocol: aws.sdk.kotlin.services.ivsrealtime.model.IngestProtocol? = null
/**
* Whether the stage allows insecure RTMP ingest. This must be set to `true`, if `ingestProtocol` is set to `RTMP`. Default: `false`.
*/
public var insecureIngest: kotlin.Boolean? = null
/**
* Optional name that can be specified for the IngestConfiguration being created.
*/
public var name: kotlin.String? = null
/**
* ARN of the stage with which the IngestConfiguration is associated.
*/
public var stageArn: kotlin.String? = null
/**
* Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
*/
public var tags: Map? = 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.CreateIngestConfigurationRequest) : this() {
this.attributes = x.attributes
this.ingestProtocol = x.ingestProtocol
this.insecureIngest = x.insecureIngest
this.name = x.name
this.stageArn = x.stageArn
this.tags = x.tags
this.userId = x.userId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.CreateIngestConfigurationRequest = CreateIngestConfigurationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy