commonMain.aws.sdk.kotlin.services.appsync.model.AwsIamConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appsync-jvm Show documentation
Show all versions of appsync-jvm Show documentation
The AWS SDK for Kotlin client for AppSync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appsync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The Identity and Access Management (IAM) configuration.
*/
public class AwsIamConfig private constructor(builder: Builder) {
/**
* The signing Amazon Web Services Region for IAM authorization.
*/
public val signingRegion: kotlin.String? = builder.signingRegion
/**
* The signing service name for IAM authorization.
*/
public val signingServiceName: kotlin.String? = builder.signingServiceName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.AwsIamConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AwsIamConfig(")
append("signingRegion=$signingRegion,")
append("signingServiceName=$signingServiceName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = signingRegion?.hashCode() ?: 0
result = 31 * result + (signingServiceName?.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 AwsIamConfig
if (signingRegion != other.signingRegion) return false
if (signingServiceName != other.signingServiceName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.AwsIamConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The signing Amazon Web Services Region for IAM authorization.
*/
public var signingRegion: kotlin.String? = null
/**
* The signing service name for IAM authorization.
*/
public var signingServiceName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.AwsIamConfig) : this() {
this.signingRegion = x.signingRegion
this.signingServiceName = x.signingServiceName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.AwsIamConfig = AwsIamConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}