commonMain.aws.sdk.kotlin.services.appstream.model.AssociateApplicationFleetResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream.model
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.
*/
val applicationFleetAssociation: aws.sdk.kotlin.services.appstream.model.ApplicationFleetAssociation? = builder.applicationFleetAssociation
companion object {
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)")
}
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
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.AssociateApplicationFleetResponse = Builder(this).apply(block).build()
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.
*/
var applicationFleetAssociation: aws.sdk.kotlin.services.appstream.model.ApplicationFleetAssociation? = null
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]
*/
fun applicationFleetAssociation(block: aws.sdk.kotlin.services.appstream.model.ApplicationFleetAssociation.Builder.() -> kotlin.Unit) {
this.applicationFleetAssociation = aws.sdk.kotlin.services.appstream.model.ApplicationFleetAssociation.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy