
commonMain.aws.sdk.kotlin.services.appconfig.model.Parameter.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appconfig.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A value such as an Amazon Resource Name (ARN) or an Amazon Simple Notification Service topic entered in an extension when invoked. Parameter values are specified in an extension association. For more information about extensions, see [Extending workflows](https://docs.aws.amazon.com/appconfig/latest/userguide/working-with-appconfig-extensions.html) in the *AppConfig User Guide*.
*/
public class Parameter private constructor(builder: Builder) {
/**
* Information about the parameter.
*/
public val description: kotlin.String? = builder.description
/**
* Indicates whether this parameter's value can be supplied at the extension's action point instead of during extension association. Dynamic parameters can't be marked `Required`.
*/
public val dynamic: kotlin.Boolean = builder.dynamic
/**
* A parameter value must be specified in the extension association.
*/
public val required: kotlin.Boolean = builder.required
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.Parameter = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Parameter(")
append("description=$description,")
append("dynamic=$dynamic,")
append("required=$required")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (dynamic.hashCode())
result = 31 * result + (required.hashCode())
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 Parameter
if (description != other.description) return false
if (dynamic != other.dynamic) return false
if (required != other.required) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.Parameter = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the parameter.
*/
public var description: kotlin.String? = null
/**
* Indicates whether this parameter's value can be supplied at the extension's action point instead of during extension association. Dynamic parameters can't be marked `Required`.
*/
public var dynamic: kotlin.Boolean = false
/**
* A parameter value must be specified in the extension association.
*/
public var required: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.Parameter) : this() {
this.description = x.description
this.dynamic = x.dynamic
this.required = x.required
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.Parameter = Parameter(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy