commonMain.aws.sdk.kotlin.services.transfer.model.DescribeProfileResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transfer-jvm Show documentation
Show all versions of transfer-jvm Show documentation
The AWS SDK for Kotlin client for Transfer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transfer.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeProfileResponse private constructor(builder: Builder) {
/**
* The details of the specified profile, returned as an object.
*/
public val profile: aws.sdk.kotlin.services.transfer.model.DescribedProfile? = builder.profile
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transfer.model.DescribeProfileResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeProfileResponse(")
append("profile=$profile")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = profile?.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 DescribeProfileResponse
if (profile != other.profile) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transfer.model.DescribeProfileResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The details of the specified profile, returned as an object.
*/
public var profile: aws.sdk.kotlin.services.transfer.model.DescribedProfile? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transfer.model.DescribeProfileResponse) : this() {
this.profile = x.profile
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transfer.model.DescribeProfileResponse = DescribeProfileResponse(this)
/**
* construct an [aws.sdk.kotlin.services.transfer.model.DescribedProfile] inside the given [block]
*/
public fun profile(block: aws.sdk.kotlin.services.transfer.model.DescribedProfile.Builder.() -> kotlin.Unit) {
this.profile = aws.sdk.kotlin.services.transfer.model.DescribedProfile.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}