
commonMain.aws.sdk.kotlin.services.ssmsap.model.GetComponentRequest.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 GetComponentRequest 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" }
/**
* The ID of the component.
*/
public val componentId: kotlin.String = requireNotNull(builder.componentId) { "A non-null value must be provided for componentId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.GetComponentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetComponentRequest(")
append("applicationId=$applicationId,")
append("componentId=$componentId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId.hashCode()
result = 31 * result + (componentId.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 GetComponentRequest
if (applicationId != other.applicationId) return false
if (componentId != other.componentId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.GetComponentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the application.
*/
public var applicationId: kotlin.String? = null
/**
* The ID of the component.
*/
public var componentId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.GetComponentRequest) : this() {
this.applicationId = x.applicationId
this.componentId = x.componentId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.GetComponentRequest = GetComponentRequest(this)
internal fun correctErrors(): Builder {
if (applicationId == null) applicationId = ""
if (componentId == null) componentId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy