commonMain.aws.sdk.kotlin.services.configservice.model.PendingAggregationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS SDK for Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object that represents the account ID and region of an aggregator account that is requesting authorization but is not yet authorized.
*/
public class PendingAggregationRequest private constructor(builder: Builder) {
/**
* The 12-digit account ID of the account requesting to aggregate data.
*/
public val requesterAccountId: kotlin.String? = builder.requesterAccountId
/**
* The region requesting to aggregate data.
*/
public val requesterAwsRegion: kotlin.String? = builder.requesterAwsRegion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.PendingAggregationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PendingAggregationRequest(")
append("requesterAccountId=$requesterAccountId,")
append("requesterAwsRegion=$requesterAwsRegion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = requesterAccountId?.hashCode() ?: 0
result = 31 * result + (requesterAwsRegion?.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 PendingAggregationRequest
if (requesterAccountId != other.requesterAccountId) return false
if (requesterAwsRegion != other.requesterAwsRegion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.PendingAggregationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The 12-digit account ID of the account requesting to aggregate data.
*/
public var requesterAccountId: kotlin.String? = null
/**
* The region requesting to aggregate data.
*/
public var requesterAwsRegion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.PendingAggregationRequest) : this() {
this.requesterAccountId = x.requesterAccountId
this.requesterAwsRegion = x.requesterAwsRegion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.PendingAggregationRequest = PendingAggregationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}