commonMain.aws.sdk.kotlin.services.deadline.model.CreateFleetRequest.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 CreateFleetRequest 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 configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 fleets are managed by Deadline Cloud.
*/
public val configuration: aws.sdk.kotlin.services.deadline.model.FleetConfiguration? = builder.configuration
/**
* The description of the fleet.
*
* 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 fleet.
*
* 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 fleet.
*/
public val farmId: kotlin.String? = builder.farmId
/**
* The maximum number of workers for the fleet.
*/
public val maxWorkerCount: kotlin.Int? = builder.maxWorkerCount
/**
* The minimum number of workers for the fleet.
*/
public val minWorkerCount: kotlin.Int? = builder.minWorkerCount
/**
* The IAM role ARN for the role that the fleet's workers will use.
*/
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.CreateFleetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateFleetRequest(")
append("clientToken=$clientToken,")
append("configuration=$configuration,")
append("description=*** Sensitive Data Redacted ***,")
append("displayName=$displayName,")
append("farmId=$farmId,")
append("maxWorkerCount=$maxWorkerCount,")
append("minWorkerCount=$minWorkerCount,")
append("roleArn=$roleArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (configuration?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (farmId?.hashCode() ?: 0)
result = 31 * result + (maxWorkerCount ?: 0)
result = 31 * result + (minWorkerCount ?: 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 CreateFleetRequest
if (clientToken != other.clientToken) return false
if (configuration != other.configuration) return false
if (description != other.description) return false
if (displayName != other.displayName) return false
if (farmId != other.farmId) return false
if (maxWorkerCount != other.maxWorkerCount) return false
if (minWorkerCount != other.minWorkerCount) 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.CreateFleetRequest = 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 configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 fleets are managed by Deadline Cloud.
*/
public var configuration: aws.sdk.kotlin.services.deadline.model.FleetConfiguration? = null
/**
* The description of the fleet.
*
* 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 fleet.
*
* 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 fleet.
*/
public var farmId: kotlin.String? = null
/**
* The maximum number of workers for the fleet.
*/
public var maxWorkerCount: kotlin.Int? = null
/**
* The minimum number of workers for the fleet.
*/
public var minWorkerCount: kotlin.Int? = null
/**
* The IAM role ARN for the role that the fleet's workers will use.
*/
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.CreateFleetRequest) : this() {
this.clientToken = x.clientToken
this.configuration = x.configuration
this.description = x.description
this.displayName = x.displayName
this.farmId = x.farmId
this.maxWorkerCount = x.maxWorkerCount
this.minWorkerCount = x.minWorkerCount
this.roleArn = x.roleArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.CreateFleetRequest = CreateFleetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}