
commonMain.aws.sdk.kotlin.services.ssmsap.model.UpdateApplicationSettingsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmsap.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateApplicationSettingsRequest private constructor(builder: Builder) {
/**
* The ID of the application.
*/
public val applicationId: kotlin.String = requireNotNull(builder.applicationId) { "A non-null value must be provided for applicationId" }
/**
* Installation of AWS Backint Agent for SAP HANA.
*/
public val backint: aws.sdk.kotlin.services.ssmsap.model.BackintConfig? = builder.backint
/**
* The credentials to be added or updated.
*/
public val credentialsToAddOrUpdate: List? = builder.credentialsToAddOrUpdate
/**
* The credentials to be removed.
*/
public val credentialsToRemove: List? = builder.credentialsToRemove
/**
* The Amazon Resource Name of the SAP HANA database that replaces the current SAP HANA connection with the SAP_ABAP application.
*/
public val databaseArn: kotlin.String? = builder.databaseArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.UpdateApplicationSettingsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateApplicationSettingsRequest(")
append("applicationId=$applicationId,")
append("backint=$backint,")
append("credentialsToAddOrUpdate=$credentialsToAddOrUpdate,")
append("credentialsToRemove=$credentialsToRemove,")
append("databaseArn=$databaseArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId.hashCode()
result = 31 * result + (backint?.hashCode() ?: 0)
result = 31 * result + (credentialsToAddOrUpdate?.hashCode() ?: 0)
result = 31 * result + (credentialsToRemove?.hashCode() ?: 0)
result = 31 * result + (databaseArn?.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 UpdateApplicationSettingsRequest
if (applicationId != other.applicationId) return false
if (backint != other.backint) return false
if (credentialsToAddOrUpdate != other.credentialsToAddOrUpdate) return false
if (credentialsToRemove != other.credentialsToRemove) return false
if (databaseArn != other.databaseArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.UpdateApplicationSettingsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the application.
*/
public var applicationId: kotlin.String? = null
/**
* Installation of AWS Backint Agent for SAP HANA.
*/
public var backint: aws.sdk.kotlin.services.ssmsap.model.BackintConfig? = null
/**
* The credentials to be added or updated.
*/
public var credentialsToAddOrUpdate: List? = null
/**
* The credentials to be removed.
*/
public var credentialsToRemove: List? = null
/**
* The Amazon Resource Name of the SAP HANA database that replaces the current SAP HANA connection with the SAP_ABAP application.
*/
public var databaseArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.UpdateApplicationSettingsRequest) : this() {
this.applicationId = x.applicationId
this.backint = x.backint
this.credentialsToAddOrUpdate = x.credentialsToAddOrUpdate
this.credentialsToRemove = x.credentialsToRemove
this.databaseArn = x.databaseArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.UpdateApplicationSettingsRequest = UpdateApplicationSettingsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.ssmsap.model.BackintConfig] inside the given [block]
*/
public fun backint(block: aws.sdk.kotlin.services.ssmsap.model.BackintConfig.Builder.() -> kotlin.Unit) {
this.backint = aws.sdk.kotlin.services.ssmsap.model.BackintConfig.invoke(block)
}
internal fun correctErrors(): Builder {
if (applicationId == null) applicationId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy