commonMain.aws.sdk.kotlin.services.datapipeline.model.ParameterAttribute.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datapipeline-jvm Show documentation
Show all versions of datapipeline-jvm Show documentation
The AWS SDK for Kotlin client for Data Pipeline
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datapipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The attributes allowed or specified with a parameter object.
*/
public class ParameterAttribute private constructor(builder: Builder) {
/**
* The field identifier.
*/
public val key: kotlin.String = requireNotNull(builder.key) { "A non-null value must be provided for key" }
/**
* The field value, expressed as a String.
*/
public val stringValue: kotlin.String = requireNotNull(builder.stringValue) { "A non-null value must be provided for stringValue" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datapipeline.model.ParameterAttribute = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ParameterAttribute(")
append("key=$key,")
append("stringValue=$stringValue")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = key.hashCode()
result = 31 * result + (stringValue.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 ParameterAttribute
if (key != other.key) return false
if (stringValue != other.stringValue) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datapipeline.model.ParameterAttribute = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The field identifier.
*/
public var key: kotlin.String? = null
/**
* The field value, expressed as a String.
*/
public var stringValue: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.ParameterAttribute) : this() {
this.key = x.key
this.stringValue = x.stringValue
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datapipeline.model.ParameterAttribute = ParameterAttribute(this)
internal fun correctErrors(): Builder {
if (key == null) key = ""
if (stringValue == null) stringValue = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy