
commonMain.aws.sdk.kotlin.services.fis.model.TargetAccountConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fis.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes a target account configuration.
*/
public class TargetAccountConfiguration private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID of the target account.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The description of the target account.
*/
public val description: kotlin.String? = builder.description
/**
* The Amazon Resource Name (ARN) of an IAM role for the target account.
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fis.model.TargetAccountConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TargetAccountConfiguration(")
append("accountId=$accountId,")
append("description=$description,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 TargetAccountConfiguration
if (accountId != other.accountId) return false
if (description != other.description) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fis.model.TargetAccountConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Web Services account ID of the target account.
*/
public var accountId: kotlin.String? = null
/**
* The description of the target account.
*/
public var description: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of an IAM role for the target account.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fis.model.TargetAccountConfiguration) : this() {
this.accountId = x.accountId
this.description = x.description
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fis.model.TargetAccountConfiguration = TargetAccountConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy