
commonMain.aws.sdk.kotlin.services.qbusiness.model.UpdatePluginRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
public class UpdatePluginRequest private constructor(builder: Builder) {
/**
* The identifier of the application the plugin is attached to.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The authentication configuration the plugin is using.
*/
public val authConfiguration: aws.sdk.kotlin.services.qbusiness.model.PluginAuthConfiguration? = builder.authConfiguration
/**
* The name of the plugin.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The identifier of the plugin.
*/
public val pluginId: kotlin.String? = builder.pluginId
/**
* The source URL used for plugin configuration.
*/
public val serverUrl: kotlin.String? = builder.serverUrl
/**
* The status of the plugin.
*/
public val state: aws.sdk.kotlin.services.qbusiness.model.PluginState? = builder.state
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.UpdatePluginRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdatePluginRequest(")
append("applicationId=$applicationId,")
append("authConfiguration=$authConfiguration,")
append("displayName=$displayName,")
append("pluginId=$pluginId,")
append("serverUrl=$serverUrl,")
append("state=$state")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (authConfiguration?.hashCode() ?: 0)
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (pluginId?.hashCode() ?: 0)
result = 31 * result + (serverUrl?.hashCode() ?: 0)
result = 31 * result + (state?.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 UpdatePluginRequest
if (applicationId != other.applicationId) return false
if (authConfiguration != other.authConfiguration) return false
if (displayName != other.displayName) return false
if (pluginId != other.pluginId) return false
if (serverUrl != other.serverUrl) return false
if (state != other.state) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.UpdatePluginRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the application the plugin is attached to.
*/
public var applicationId: kotlin.String? = null
/**
* The authentication configuration the plugin is using.
*/
public var authConfiguration: aws.sdk.kotlin.services.qbusiness.model.PluginAuthConfiguration? = null
/**
* The name of the plugin.
*/
public var displayName: kotlin.String? = null
/**
* The identifier of the plugin.
*/
public var pluginId: kotlin.String? = null
/**
* The source URL used for plugin configuration.
*/
public var serverUrl: kotlin.String? = null
/**
* The status of the plugin.
*/
public var state: aws.sdk.kotlin.services.qbusiness.model.PluginState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.UpdatePluginRequest) : this() {
this.applicationId = x.applicationId
this.authConfiguration = x.authConfiguration
this.displayName = x.displayName
this.pluginId = x.pluginId
this.serverUrl = x.serverUrl
this.state = x.state
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.UpdatePluginRequest = UpdatePluginRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy