commonMain.aws.sdk.kotlin.services.nimble.model.CreateLaunchProfileRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateLaunchProfileRequest 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
/**
* Specifies the IDs of the EC2 subnets where streaming sessions will be accessible from. These subnets must support the specified instance types.
*/
public val ec2SubnetIds: List? = builder.ec2SubnetIds
/**
* 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
/**
* A collection of labels, in the form of key-value pairs, that apply to this resource.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.CreateLaunchProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateLaunchProfileRequest(")
append("clientToken=$clientToken,")
append("description=*** Sensitive Data Redacted ***,")
append("ec2SubnetIds=$ec2SubnetIds,")
append("launchProfileProtocolVersions=$launchProfileProtocolVersions,")
append("name=*** Sensitive Data Redacted ***,")
append("streamConfiguration=$streamConfiguration,")
append("studioComponentIds=$studioComponentIds,")
append("studioId=$studioId,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (ec2SubnetIds?.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)
result = 31 * result + (tags?.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 CreateLaunchProfileRequest
if (clientToken != other.clientToken) return false
if (description != other.description) return false
if (ec2SubnetIds != other.ec2SubnetIds) 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
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.CreateLaunchProfileRequest = 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
/**
* Specifies the IDs of the EC2 subnets where streaming sessions will be accessible from. These subnets must support the specified instance types.
*/
public var ec2SubnetIds: List? = 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
/**
* A collection of labels, in the form of key-value pairs, that apply to this resource.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.CreateLaunchProfileRequest) : this() {
this.clientToken = x.clientToken
this.description = x.description
this.ec2SubnetIds = x.ec2SubnetIds
this.launchProfileProtocolVersions = x.launchProfileProtocolVersions
this.name = x.name
this.streamConfiguration = x.streamConfiguration
this.studioComponentIds = x.studioComponentIds
this.studioId = x.studioId
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.CreateLaunchProfileRequest = CreateLaunchProfileRequest(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
}
}
}