
commonMain.aws.sdk.kotlin.services.gamelift.model.DescribeEc2InstanceLimitsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class DescribeEc2InstanceLimitsRequest private constructor(builder: Builder) {
/**
* Name of an Amazon EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Do not specify a value for this parameter to retrieve limits for all instance types.
*/
public val ec2InstanceType: aws.sdk.kotlin.services.gamelift.model.Ec2InstanceType? = builder.ec2InstanceType
/**
* The name of a remote location to request instance limits for, in the form of an Amazon Web Services Region code such as `us-west-2`.
*/
public val location: kotlin.String? = builder.location
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.DescribeEc2InstanceLimitsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeEc2InstanceLimitsRequest(")
append("ec2InstanceType=$ec2InstanceType,")
append("location=$location")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ec2InstanceType?.hashCode() ?: 0
result = 31 * result + (location?.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 DescribeEc2InstanceLimitsRequest
if (ec2InstanceType != other.ec2InstanceType) return false
if (location != other.location) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.DescribeEc2InstanceLimitsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Name of an Amazon EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Do not specify a value for this parameter to retrieve limits for all instance types.
*/
public var ec2InstanceType: aws.sdk.kotlin.services.gamelift.model.Ec2InstanceType? = null
/**
* The name of a remote location to request instance limits for, in the form of an Amazon Web Services Region code such as `us-west-2`.
*/
public var location: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.DescribeEc2InstanceLimitsRequest) : this() {
this.ec2InstanceType = x.ec2InstanceType
this.location = x.location
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.DescribeEc2InstanceLimitsRequest = DescribeEc2InstanceLimitsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy