commonMain.aws.sdk.kotlin.services.deadline.model.CreateStorageProfileRequest.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
public class CreateStorageProfileRequest private constructor(builder: Builder) {
/**
* The unique token which the server uses to recognize retries of the same request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* 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? = builder.displayName
/**
* The farm ID of the farm to connect to the storage profile.
*/
public val farmId: kotlin.String? = builder.farmId
/**
* File system paths to include in the storage profile.
*/
public val fileSystemLocations: List? = builder.fileSystemLocations
/**
* The type of operating system (OS) for the storage profile.
*/
public val osFamily: aws.sdk.kotlin.services.deadline.model.StorageProfileOperatingSystemFamily? = builder.osFamily
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.CreateStorageProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateStorageProfileRequest(")
append("clientToken=$clientToken,")
append("displayName=$displayName,")
append("farmId=$farmId,")
append("fileSystemLocations=*** Sensitive Data Redacted ***,")
append("osFamily=$osFamily")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (farmId?.hashCode() ?: 0)
result = 31 * result + (fileSystemLocations?.hashCode() ?: 0)
result = 31 * result + (osFamily?.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 CreateStorageProfileRequest
if (clientToken != other.clientToken) return false
if (displayName != other.displayName) return false
if (farmId != other.farmId) return false
if (fileSystemLocations != other.fileSystemLocations) return false
if (osFamily != other.osFamily) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.CreateStorageProfileRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique token which the server uses to recognize retries of the same request.
*/
public var clientToken: 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 farm ID of the farm to connect to the storage profile.
*/
public var farmId: kotlin.String? = null
/**
* File system paths to include in the storage profile.
*/
public var fileSystemLocations: List? = null
/**
* The type of operating system (OS) for the storage profile.
*/
public var osFamily: aws.sdk.kotlin.services.deadline.model.StorageProfileOperatingSystemFamily? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.CreateStorageProfileRequest) : this() {
this.clientToken = x.clientToken
this.displayName = x.displayName
this.farmId = x.farmId
this.fileSystemLocations = x.fileSystemLocations
this.osFamily = x.osFamily
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.CreateStorageProfileRequest = CreateStorageProfileRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}