
commonMain.aws.sdk.kotlin.services.fis.model.GetExperimentTargetAccountConfigurationRequest.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
public class GetExperimentTargetAccountConfigurationRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID of the target account.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The ID of the experiment.
*/
public val experimentId: kotlin.String? = builder.experimentId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fis.model.GetExperimentTargetAccountConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetExperimentTargetAccountConfigurationRequest(")
append("accountId=$accountId,")
append("experimentId=$experimentId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (experimentId?.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 GetExperimentTargetAccountConfigurationRequest
if (accountId != other.accountId) return false
if (experimentId != other.experimentId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fis.model.GetExperimentTargetAccountConfigurationRequest = 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 ID of the experiment.
*/
public var experimentId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fis.model.GetExperimentTargetAccountConfigurationRequest) : this() {
this.accountId = x.accountId
this.experimentId = x.experimentId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fis.model.GetExperimentTargetAccountConfigurationRequest = GetExperimentTargetAccountConfigurationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy