
commonMain.aws.sdk.kotlin.services.nimble.model.UpdateLaunchProfileRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateLaunchProfileRequest private constructor(builder: Builder) {
/**
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The description.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the launch profile used to control access from the streaming session.
*/
public val launchProfileId: kotlin.String? = builder.launchProfileId
/**
* The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31".
*/
public val launchProfileProtocolVersions: List? = builder.launchProfileProtocolVersions
/**
* The name for the launch profile.
*/
public val name: kotlin.String? = builder.name
/**
* A configuration for a streaming session.
*/
public val streamConfiguration: aws.sdk.kotlin.services.nimble.model.StreamConfigurationCreate? = builder.streamConfiguration
/**
* Unique identifiers for a collection of studio components that can be used with this launch profile.
*/
public val studioComponentIds: List? = builder.studioComponentIds
/**
* The studio ID.
*/
public val studioId: kotlin.String? = builder.studioId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.UpdateLaunchProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateLaunchProfileRequest(")
append("clientToken=$clientToken,")
append("description=*** Sensitive Data Redacted ***,")
append("launchProfileId=$launchProfileId,")
append("launchProfileProtocolVersions=$launchProfileProtocolVersions,")
append("name=*** Sensitive Data Redacted ***,")
append("streamConfiguration=$streamConfiguration,")
append("studioComponentIds=$studioComponentIds,")
append("studioId=$studioId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (launchProfileId?.hashCode() ?: 0)
result = 31 * result + (launchProfileProtocolVersions?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (streamConfiguration?.hashCode() ?: 0)
result = 31 * result + (studioComponentIds?.hashCode() ?: 0)
result = 31 * result + (studioId?.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 UpdateLaunchProfileRequest
if (clientToken != other.clientToken) return false
if (description != other.description) return false
if (launchProfileId != other.launchProfileId) return false
if (launchProfileProtocolVersions != other.launchProfileProtocolVersions) return false
if (name != other.name) return false
if (streamConfiguration != other.streamConfiguration) return false
if (studioComponentIds != other.studioComponentIds) return false
if (studioId != other.studioId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.UpdateLaunchProfileRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency.
*/
public var clientToken: kotlin.String? = null
/**
* The description.
*/
public var description: kotlin.String? = null
/**
* The ID of the launch profile used to control access from the streaming session.
*/
public var launchProfileId: kotlin.String? = null
/**
* The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31".
*/
public var launchProfileProtocolVersions: List? = null
/**
* The name for the launch profile.
*/
public var name: kotlin.String? = null
/**
* A configuration for a streaming session.
*/
public var streamConfiguration: aws.sdk.kotlin.services.nimble.model.StreamConfigurationCreate? = null
/**
* Unique identifiers for a collection of studio components that can be used with this launch profile.
*/
public var studioComponentIds: List? = null
/**
* The studio ID.
*/
public var studioId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.UpdateLaunchProfileRequest) : this() {
this.clientToken = x.clientToken
this.description = x.description
this.launchProfileId = x.launchProfileId
this.launchProfileProtocolVersions = x.launchProfileProtocolVersions
this.name = x.name
this.streamConfiguration = x.streamConfiguration
this.studioComponentIds = x.studioComponentIds
this.studioId = x.studioId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.UpdateLaunchProfileRequest = UpdateLaunchProfileRequest(this)
/**
* construct an [aws.sdk.kotlin.services.nimble.model.StreamConfigurationCreate] inside the given [block]
*/
public fun streamConfiguration(block: aws.sdk.kotlin.services.nimble.model.StreamConfigurationCreate.Builder.() -> kotlin.Unit) {
this.streamConfiguration = aws.sdk.kotlin.services.nimble.model.StreamConfigurationCreate.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy