commonMain.aws.sdk.kotlin.services.appstream.model.AssociateApplicationFleetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appstream-jvm Show documentation
Show all versions of appstream-jvm Show documentation
The AWS SDK for Kotlin client for AppStream
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream.model
import aws.smithy.kotlin.runtime.SdkDsl
public class AssociateApplicationFleetResponse private constructor(builder: Builder) {
/**
* If fleet name is specified, this returns the list of applications that are associated to it. If application ARN is specified, this returns the list of fleets to which it is associated.
*/
public val applicationFleetAssociation: aws.sdk.kotlin.services.appstream.model.ApplicationFleetAssociation? = builder.applicationFleetAssociation
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.AssociateApplicationFleetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociateApplicationFleetResponse(")
append("applicationFleetAssociation=$applicationFleetAssociation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationFleetAssociation?.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 AssociateApplicationFleetResponse
if (applicationFleetAssociation != other.applicationFleetAssociation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.AssociateApplicationFleetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If fleet name is specified, this returns the list of applications that are associated to it. If application ARN is specified, this returns the list of fleets to which it is associated.
*/
public var applicationFleetAssociation: aws.sdk.kotlin.services.appstream.model.ApplicationFleetAssociation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.AssociateApplicationFleetResponse) : this() {
this.applicationFleetAssociation = x.applicationFleetAssociation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.AssociateApplicationFleetResponse = AssociateApplicationFleetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.appstream.model.ApplicationFleetAssociation] inside the given [block]
*/
public fun applicationFleetAssociation(block: aws.sdk.kotlin.services.appstream.model.ApplicationFleetAssociation.Builder.() -> kotlin.Unit) {
this.applicationFleetAssociation = aws.sdk.kotlin.services.appstream.model.ApplicationFleetAssociation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy