commonMain.aws.sdk.kotlin.services.outposts.model.UpdateSiteRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of outposts-jvm Show documentation
Show all versions of outposts-jvm Show documentation
The AWS SDK for Kotlin client for Outposts
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.outposts.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateSiteRequest private constructor(builder: Builder) {
/**
* The description of the site.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the site.
*/
public val name: kotlin.String? = builder.name
/**
* Notes about a site.
*/
public val notes: kotlin.String? = builder.notes
/**
* The ID or the Amazon Resource Name (ARN) of the site.
*/
public val siteId: kotlin.String? = builder.siteId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.outposts.model.UpdateSiteRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateSiteRequest(")
append("description=$description,")
append("name=$name,")
append("notes=$notes,")
append("siteId=$siteId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (notes?.hashCode() ?: 0)
result = 31 * result + (siteId?.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 UpdateSiteRequest
if (description != other.description) return false
if (name != other.name) return false
if (notes != other.notes) return false
if (siteId != other.siteId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.outposts.model.UpdateSiteRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The description of the site.
*/
public var description: kotlin.String? = null
/**
* The name of the site.
*/
public var name: kotlin.String? = null
/**
* Notes about a site.
*/
public var notes: kotlin.String? = null
/**
* The ID or the Amazon Resource Name (ARN) of the site.
*/
public var siteId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.outposts.model.UpdateSiteRequest) : this() {
this.description = x.description
this.name = x.name
this.notes = x.notes
this.siteId = x.siteId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.outposts.model.UpdateSiteRequest = UpdateSiteRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy