commonMain.aws.sdk.kotlin.services.resiliencehub.model.UpdateAppVersionAppComponentRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resiliencehub-jvm Show documentation
Show all versions of resiliencehub-jvm Show documentation
The AWS SDK for Kotlin client for resiliencehub
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.resiliencehub.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateAppVersionAppComponentRequest private constructor(builder: Builder) {
/**
* Currently, there is no supported additional information for Application Components.
*/
public val additionalInfo: Map>? = builder.additionalInfo
/**
* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:`partition`:resiliencehub:`region`:`account`:app/`app-id`. For more information about ARNs, see [ Amazon Resource Names (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *Amazon Web Services General Reference* guide.
*/
public val appArn: kotlin.String = requireNotNull(builder.appArn) { "A non-null value must be provided for appArn" }
/**
* Identifier of the Application Component.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* Name of the Application Component.
*/
public val name: kotlin.String? = builder.name
/**
* Type of Application Component. For more information about the types of Application Component, see [Grouping resources in an AppComponent](https://docs.aws.amazon.com/resilience-hub/latest/userguide/AppComponent.grouping.html).
*/
public val type: kotlin.String? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.resiliencehub.model.UpdateAppVersionAppComponentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAppVersionAppComponentRequest(")
append("additionalInfo=$additionalInfo,")
append("appArn=$appArn,")
append("id=$id,")
append("name=$name,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = additionalInfo?.hashCode() ?: 0
result = 31 * result + (appArn.hashCode())
result = 31 * result + (id.hashCode())
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (type?.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 UpdateAppVersionAppComponentRequest
if (additionalInfo != other.additionalInfo) return false
if (appArn != other.appArn) return false
if (id != other.id) return false
if (name != other.name) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.resiliencehub.model.UpdateAppVersionAppComponentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Currently, there is no supported additional information for Application Components.
*/
public var additionalInfo: Map>? = null
/**
* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:`partition`:resiliencehub:`region`:`account`:app/`app-id`. For more information about ARNs, see [ Amazon Resource Names (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *Amazon Web Services General Reference* guide.
*/
public var appArn: kotlin.String? = null
/**
* Identifier of the Application Component.
*/
public var id: kotlin.String? = null
/**
* Name of the Application Component.
*/
public var name: kotlin.String? = null
/**
* Type of Application Component. For more information about the types of Application Component, see [Grouping resources in an AppComponent](https://docs.aws.amazon.com/resilience-hub/latest/userguide/AppComponent.grouping.html).
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resiliencehub.model.UpdateAppVersionAppComponentRequest) : this() {
this.additionalInfo = x.additionalInfo
this.appArn = x.appArn
this.id = x.id
this.name = x.name
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resiliencehub.model.UpdateAppVersionAppComponentRequest = UpdateAppVersionAppComponentRequest(this)
internal fun correctErrors(): Builder {
if (appArn == null) appArn = ""
if (id == null) id = ""
return this
}
}
}