commonMain.aws.sdk.kotlin.services.appsync.model.UpdateSourceApiAssociationRequest.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
public class UpdateSourceApiAssociationRequest private constructor(builder: Builder) {
/**
* The ID generated by the AppSync service for the source API association.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* The description field.
*/
public val description: kotlin.String? = builder.description
/**
* The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
*/
public val mergedApiIdentifier: kotlin.String? = builder.mergedApiIdentifier
/**
* The `SourceApiAssociationConfig` object data.
*/
public val sourceApiAssociationConfig: aws.sdk.kotlin.services.appsync.model.SourceApiAssociationConfig? = builder.sourceApiAssociationConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.UpdateSourceApiAssociationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateSourceApiAssociationRequest(")
append("associationId=$associationId,")
append("description=$description,")
append("mergedApiIdentifier=$mergedApiIdentifier,")
append("sourceApiAssociationConfig=$sourceApiAssociationConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = associationId?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (mergedApiIdentifier?.hashCode() ?: 0)
result = 31 * result + (sourceApiAssociationConfig?.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 UpdateSourceApiAssociationRequest
if (associationId != other.associationId) return false
if (description != other.description) return false
if (mergedApiIdentifier != other.mergedApiIdentifier) return false
if (sourceApiAssociationConfig != other.sourceApiAssociationConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.UpdateSourceApiAssociationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID generated by the AppSync service for the source API association.
*/
public var associationId: kotlin.String? = null
/**
* The description field.
*/
public var description: kotlin.String? = null
/**
* The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
*/
public var mergedApiIdentifier: kotlin.String? = null
/**
* The `SourceApiAssociationConfig` object data.
*/
public var sourceApiAssociationConfig: aws.sdk.kotlin.services.appsync.model.SourceApiAssociationConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.UpdateSourceApiAssociationRequest) : this() {
this.associationId = x.associationId
this.description = x.description
this.mergedApiIdentifier = x.mergedApiIdentifier
this.sourceApiAssociationConfig = x.sourceApiAssociationConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.UpdateSourceApiAssociationRequest = UpdateSourceApiAssociationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.appsync.model.SourceApiAssociationConfig] inside the given [block]
*/
public fun sourceApiAssociationConfig(block: aws.sdk.kotlin.services.appsync.model.SourceApiAssociationConfig.Builder.() -> kotlin.Unit) {
this.sourceApiAssociationConfig = aws.sdk.kotlin.services.appsync.model.SourceApiAssociationConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}