commonMain.aws.sdk.kotlin.services.deadline.model.StorageProfileSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The details of a storage profile.
*/
public class StorageProfileSummary private constructor(builder: Builder) {
/**
* The display name of the storage profile summary to update.
*
* This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
*/
public val displayName: kotlin.String = requireNotNull(builder.displayName) { "A non-null value must be provided for displayName" }
/**
* The operating system (OS) family.
*/
public val osFamily: aws.sdk.kotlin.services.deadline.model.StorageProfileOperatingSystemFamily = requireNotNull(builder.osFamily) { "A non-null value must be provided for osFamily" }
/**
* The storage profile ID.
*/
public val storageProfileId: kotlin.String = requireNotNull(builder.storageProfileId) { "A non-null value must be provided for storageProfileId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.StorageProfileSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StorageProfileSummary(")
append("displayName=$displayName,")
append("osFamily=$osFamily,")
append("storageProfileId=$storageProfileId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = displayName.hashCode()
result = 31 * result + (osFamily.hashCode())
result = 31 * result + (storageProfileId.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 StorageProfileSummary
if (displayName != other.displayName) return false
if (osFamily != other.osFamily) return false
if (storageProfileId != other.storageProfileId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.StorageProfileSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The display name of the storage profile summary to update.
*
* This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
*/
public var displayName: kotlin.String? = null
/**
* The operating system (OS) family.
*/
public var osFamily: aws.sdk.kotlin.services.deadline.model.StorageProfileOperatingSystemFamily? = null
/**
* The storage profile ID.
*/
public var storageProfileId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.StorageProfileSummary) : this() {
this.displayName = x.displayName
this.osFamily = x.osFamily
this.storageProfileId = x.storageProfileId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.StorageProfileSummary = StorageProfileSummary(this)
internal fun correctErrors(): Builder {
if (displayName == null) displayName = ""
if (osFamily == null) osFamily = StorageProfileOperatingSystemFamily.SdkUnknown("no value provided")
if (storageProfileId == null) storageProfileId = ""
return this
}
}
}