All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.gamelift.model.CreateVpcPeeringAuthorizationRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.gamelift.model



public class CreateVpcPeeringAuthorizationRequest private constructor(builder: Builder) {
    /**
     * A unique identifier for the Amazon Web Services account that you use to manage your Amazon GameLift fleet. You can find your Account ID in the Amazon Web Services Management Console under account settings.
     */
    public val gameLiftAwsAccountId: kotlin.String? = builder.gameLiftAwsAccountId
    /**
     * A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the same Region as your fleet. To look up a VPC ID, use the [VPC Dashboard](https://console.aws.amazon.com/vpc/) in the Amazon Web Services Management Console. Learn more about VPC peering in [VPC Peering with Amazon GameLift Fleets](https://docs.aws.amazon.com/gamelift/latest/developerguide/vpc-peering.html).
     */
    public val peerVpcId: kotlin.String? = builder.peerVpcId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.CreateVpcPeeringAuthorizationRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateVpcPeeringAuthorizationRequest(")
        append("gameLiftAwsAccountId=$gameLiftAwsAccountId,")
        append("peerVpcId=$peerVpcId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = gameLiftAwsAccountId?.hashCode() ?: 0
        result = 31 * result + (peerVpcId?.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 CreateVpcPeeringAuthorizationRequest

        if (gameLiftAwsAccountId != other.gameLiftAwsAccountId) return false
        if (peerVpcId != other.peerVpcId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.CreateVpcPeeringAuthorizationRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * A unique identifier for the Amazon Web Services account that you use to manage your Amazon GameLift fleet. You can find your Account ID in the Amazon Web Services Management Console under account settings.
         */
        public var gameLiftAwsAccountId: kotlin.String? = null
        /**
         * A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the same Region as your fleet. To look up a VPC ID, use the [VPC Dashboard](https://console.aws.amazon.com/vpc/) in the Amazon Web Services Management Console. Learn more about VPC peering in [VPC Peering with Amazon GameLift Fleets](https://docs.aws.amazon.com/gamelift/latest/developerguide/vpc-peering.html).
         */
        public var peerVpcId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.gamelift.model.CreateVpcPeeringAuthorizationRequest) : this() {
            this.gameLiftAwsAccountId = x.gameLiftAwsAccountId
            this.peerVpcId = x.peerVpcId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.gamelift.model.CreateVpcPeeringAuthorizationRequest = CreateVpcPeeringAuthorizationRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy