commonMain.aws.sdk.kotlin.services.outposts.model.CreateOutpostRequest.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 CreateOutpostRequest private constructor(builder: Builder) {
/**
* The Availability Zone.
*/
public val availabilityZone: kotlin.String? = builder.availabilityZone
/**
* The ID of the Availability Zone.
*/
public val availabilityZoneId: kotlin.String? = builder.availabilityZoneId
/**
* The description of the Outpost.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the Outpost.
*/
public val name: kotlin.String? = builder.name
/**
* The ID or the Amazon Resource Name (ARN) of the site.
*/
public val siteId: kotlin.String? = builder.siteId
/**
* The type of hardware for this Outpost.
*/
public val supportedHardwareType: aws.sdk.kotlin.services.outposts.model.SupportedHardwareType? = builder.supportedHardwareType
/**
* The tags to apply to the Outpost.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.outposts.model.CreateOutpostRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateOutpostRequest(")
append("availabilityZone=$availabilityZone,")
append("availabilityZoneId=$availabilityZoneId,")
append("description=$description,")
append("name=$name,")
append("siteId=$siteId,")
append("supportedHardwareType=$supportedHardwareType,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = availabilityZone?.hashCode() ?: 0
result = 31 * result + (availabilityZoneId?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (siteId?.hashCode() ?: 0)
result = 31 * result + (supportedHardwareType?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateOutpostRequest
if (availabilityZone != other.availabilityZone) return false
if (availabilityZoneId != other.availabilityZoneId) return false
if (description != other.description) return false
if (name != other.name) return false
if (siteId != other.siteId) return false
if (supportedHardwareType != other.supportedHardwareType) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.outposts.model.CreateOutpostRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Availability Zone.
*/
public var availabilityZone: kotlin.String? = null
/**
* The ID of the Availability Zone.
*/
public var availabilityZoneId: kotlin.String? = null
/**
* The description of the Outpost.
*/
public var description: kotlin.String? = null
/**
* The name of the Outpost.
*/
public var name: kotlin.String? = null
/**
* The ID or the Amazon Resource Name (ARN) of the site.
*/
public var siteId: kotlin.String? = null
/**
* The type of hardware for this Outpost.
*/
public var supportedHardwareType: aws.sdk.kotlin.services.outposts.model.SupportedHardwareType? = null
/**
* The tags to apply to the Outpost.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.outposts.model.CreateOutpostRequest) : this() {
this.availabilityZone = x.availabilityZone
this.availabilityZoneId = x.availabilityZoneId
this.description = x.description
this.name = x.name
this.siteId = x.siteId
this.supportedHardwareType = x.supportedHardwareType
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.outposts.model.CreateOutpostRequest = CreateOutpostRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy