commonMain.aws.sdk.kotlin.services.deadline.model.CreateQueueRequest.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 CreateQueueRequest private constructor(builder: Builder) {
/**
* The storage profile IDs to include in the queue.
*/
public val allowedStorageProfileIds: List? = builder.allowedStorageProfileIds
/**
* The unique token which the server uses to recognize retries of the same request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The default action to take on a queue if a budget isn't configured.
*/
public val defaultBudgetAction: aws.sdk.kotlin.services.deadline.model.DefaultQueueBudgetAction? = builder.defaultBudgetAction
/**
* The description of the queue.
*
* 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 description: kotlin.String? = builder.description
/**
* The display name of the queue.
*
* 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 queue.
*/
public val farmId: kotlin.String? = builder.farmId
/**
* The job attachment settings for the queue. These are the Amazon S3 bucket name and the Amazon S3 prefix.
*/
public val jobAttachmentSettings: aws.sdk.kotlin.services.deadline.model.JobAttachmentSettings? = builder.jobAttachmentSettings
/**
* The jobs in the queue run as the specified POSIX user.
*/
public val jobRunAsUser: aws.sdk.kotlin.services.deadline.model.JobRunAsUser? = builder.jobRunAsUser
/**
* The file system location name to include in the queue.
*/
public val requiredFileSystemLocationNames: List? = builder.requiredFileSystemLocationNames
/**
* The IAM role ARN that workers will use while running jobs for this queue.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.CreateQueueRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateQueueRequest(")
append("allowedStorageProfileIds=$allowedStorageProfileIds,")
append("clientToken=$clientToken,")
append("defaultBudgetAction=$defaultBudgetAction,")
append("description=*** Sensitive Data Redacted ***,")
append("displayName=$displayName,")
append("farmId=$farmId,")
append("jobAttachmentSettings=$jobAttachmentSettings,")
append("jobRunAsUser=$jobRunAsUser,")
append("requiredFileSystemLocationNames=*** Sensitive Data Redacted ***,")
append("roleArn=$roleArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = allowedStorageProfileIds?.hashCode() ?: 0
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (defaultBudgetAction?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (farmId?.hashCode() ?: 0)
result = 31 * result + (jobAttachmentSettings?.hashCode() ?: 0)
result = 31 * result + (jobRunAsUser?.hashCode() ?: 0)
result = 31 * result + (requiredFileSystemLocationNames?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 CreateQueueRequest
if (allowedStorageProfileIds != other.allowedStorageProfileIds) return false
if (clientToken != other.clientToken) return false
if (defaultBudgetAction != other.defaultBudgetAction) return false
if (description != other.description) return false
if (displayName != other.displayName) return false
if (farmId != other.farmId) return false
if (jobAttachmentSettings != other.jobAttachmentSettings) return false
if (jobRunAsUser != other.jobRunAsUser) return false
if (requiredFileSystemLocationNames != other.requiredFileSystemLocationNames) return false
if (roleArn != other.roleArn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.CreateQueueRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The storage profile IDs to include in the queue.
*/
public var allowedStorageProfileIds: List? = null
/**
* The unique token which the server uses to recognize retries of the same request.
*/
public var clientToken: kotlin.String? = null
/**
* The default action to take on a queue if a budget isn't configured.
*/
public var defaultBudgetAction: aws.sdk.kotlin.services.deadline.model.DefaultQueueBudgetAction? = null
/**
* The description of the queue.
*
* 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 description: kotlin.String? = null
/**
* The display name of the queue.
*
* 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 queue.
*/
public var farmId: kotlin.String? = null
/**
* The job attachment settings for the queue. These are the Amazon S3 bucket name and the Amazon S3 prefix.
*/
public var jobAttachmentSettings: aws.sdk.kotlin.services.deadline.model.JobAttachmentSettings? = null
/**
* The jobs in the queue run as the specified POSIX user.
*/
public var jobRunAsUser: aws.sdk.kotlin.services.deadline.model.JobRunAsUser? = null
/**
* The file system location name to include in the queue.
*/
public var requiredFileSystemLocationNames: List? = null
/**
* The IAM role ARN that workers will use while running jobs for this queue.
*/
public var roleArn: kotlin.String? = null
/**
* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.CreateQueueRequest) : this() {
this.allowedStorageProfileIds = x.allowedStorageProfileIds
this.clientToken = x.clientToken
this.defaultBudgetAction = x.defaultBudgetAction
this.description = x.description
this.displayName = x.displayName
this.farmId = x.farmId
this.jobAttachmentSettings = x.jobAttachmentSettings
this.jobRunAsUser = x.jobRunAsUser
this.requiredFileSystemLocationNames = x.requiredFileSystemLocationNames
this.roleArn = x.roleArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.CreateQueueRequest = CreateQueueRequest(this)
/**
* construct an [aws.sdk.kotlin.services.deadline.model.JobAttachmentSettings] inside the given [block]
*/
public fun jobAttachmentSettings(block: aws.sdk.kotlin.services.deadline.model.JobAttachmentSettings.Builder.() -> kotlin.Unit) {
this.jobAttachmentSettings = aws.sdk.kotlin.services.deadline.model.JobAttachmentSettings.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.deadline.model.JobRunAsUser] inside the given [block]
*/
public fun jobRunAsUser(block: aws.sdk.kotlin.services.deadline.model.JobRunAsUser.Builder.() -> kotlin.Unit) {
this.jobRunAsUser = aws.sdk.kotlin.services.deadline.model.JobRunAsUser.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}