commonMain.aws.sdk.kotlin.services.deadline.model.GetStorageProfileResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetStorageProfileResponse private constructor(builder: Builder) {
/**
* The date and time the resource was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createdAt) { "A non-null value must be provided for createdAt" }
/**
* The user or system that created this resource.
*/
public val createdBy: kotlin.String = requireNotNull(builder.createdBy) { "A non-null value must be provided for createdBy" }
/**
* The display name of the storage profile.
*
* 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 location of the files for the storage profile.
*/
public val fileSystemLocations: List? = builder.fileSystemLocations
/**
* The operating system (OS) for the storage profile.
*/
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" }
/**
* The date and time the resource was updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
/**
* The user or system that updated this resource.
*/
public val updatedBy: kotlin.String? = builder.updatedBy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.GetStorageProfileResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetStorageProfileResponse(")
append("createdAt=$createdAt,")
append("createdBy=$createdBy,")
append("displayName=$displayName,")
append("fileSystemLocations=*** Sensitive Data Redacted ***,")
append("osFamily=$osFamily,")
append("storageProfileId=$storageProfileId,")
append("updatedAt=$updatedAt,")
append("updatedBy=$updatedBy")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt.hashCode()
result = 31 * result + (createdBy.hashCode())
result = 31 * result + (displayName.hashCode())
result = 31 * result + (fileSystemLocations?.hashCode() ?: 0)
result = 31 * result + (osFamily.hashCode())
result = 31 * result + (storageProfileId.hashCode())
result = 31 * result + (updatedAt?.hashCode() ?: 0)
result = 31 * result + (updatedBy?.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 GetStorageProfileResponse
if (createdAt != other.createdAt) return false
if (createdBy != other.createdBy) return false
if (displayName != other.displayName) return false
if (fileSystemLocations != other.fileSystemLocations) return false
if (osFamily != other.osFamily) return false
if (storageProfileId != other.storageProfileId) return false
if (updatedAt != other.updatedAt) return false
if (updatedBy != other.updatedBy) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.GetStorageProfileResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time the resource was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The user or system that created this resource.
*/
public var createdBy: kotlin.String? = null
/**
* The display name of the storage profile.
*
* 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 location of the files for the storage profile.
*/
public var fileSystemLocations: List? = null
/**
* The operating system (OS) for the storage profile.
*/
public var osFamily: aws.sdk.kotlin.services.deadline.model.StorageProfileOperatingSystemFamily? = null
/**
* The storage profile ID.
*/
public var storageProfileId: kotlin.String? = null
/**
* The date and time the resource was updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The user or system that updated this resource.
*/
public var updatedBy: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.GetStorageProfileResponse) : this() {
this.createdAt = x.createdAt
this.createdBy = x.createdBy
this.displayName = x.displayName
this.fileSystemLocations = x.fileSystemLocations
this.osFamily = x.osFamily
this.storageProfileId = x.storageProfileId
this.updatedAt = x.updatedAt
this.updatedBy = x.updatedBy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.GetStorageProfileResponse = GetStorageProfileResponse(this)
internal fun correctErrors(): Builder {
if (createdAt == null) createdAt = Instant.fromEpochSeconds(0)
if (createdBy == null) createdBy = ""
if (displayName == null) displayName = ""
if (osFamily == null) osFamily = StorageProfileOperatingSystemFamily.SdkUnknown("no value provided")
if (storageProfileId == null) storageProfileId = ""
return this
}
}
}