
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
public class UpdateApplicationSettingsRequest private constructor(builder: Builder) {
/**
* The ID of the application.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The credentials to be added or updated.
*/
public val credentialsToAddOrUpdate: List? = builder.credentialsToAddOrUpdate
/**
* The credentials to be removed.
*/
public val credentialsToRemove: List? = builder.credentialsToRemove
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("credentialsToAddOrUpdate=$credentialsToAddOrUpdate,")
append("credentialsToRemove=$credentialsToRemove")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (credentialsToAddOrUpdate?.hashCode() ?: 0)
result = 31 * result + (credentialsToRemove?.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 (credentialsToAddOrUpdate != other.credentialsToAddOrUpdate) return false
if (credentialsToRemove != other.credentialsToRemove) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.UpdateApplicationSettingsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the application.
*/
public var applicationId: kotlin.String? = null
/**
* The credentials to be added or updated.
*/
public var credentialsToAddOrUpdate: List? = null
/**
* The credentials to be removed.
*/
public var credentialsToRemove: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.UpdateApplicationSettingsRequest) : this() {
this.applicationId = x.applicationId
this.credentialsToAddOrUpdate = x.credentialsToAddOrUpdate
this.credentialsToRemove = x.credentialsToRemove
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.UpdateApplicationSettingsRequest = UpdateApplicationSettingsRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy