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

commonMain.aws.sdk.kotlin.services.devicefarm.model.CreateVpceConfigurationRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.devicefarm.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateVpceConfigurationRequest private constructor(builder: Builder) {
    /**
     * The DNS name of the service running in your VPC that you want Device Farm to test.
     */
    public val serviceDnsName: kotlin.String? = builder.serviceDnsName
    /**
     * An optional description that provides details about your VPC endpoint configuration.
     */
    public val vpceConfigurationDescription: kotlin.String? = builder.vpceConfigurationDescription
    /**
     * The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.
     */
    public val vpceConfigurationName: kotlin.String? = builder.vpceConfigurationName
    /**
     * The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
     */
    public val vpceServiceName: kotlin.String? = builder.vpceServiceName

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

    override fun toString(): kotlin.String = buildString {
        append("CreateVpceConfigurationRequest(")
        append("serviceDnsName=$serviceDnsName,")
        append("vpceConfigurationDescription=$vpceConfigurationDescription,")
        append("vpceConfigurationName=$vpceConfigurationName,")
        append("vpceServiceName=$vpceServiceName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = serviceDnsName?.hashCode() ?: 0
        result = 31 * result + (vpceConfigurationDescription?.hashCode() ?: 0)
        result = 31 * result + (vpceConfigurationName?.hashCode() ?: 0)
        result = 31 * result + (vpceServiceName?.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 CreateVpceConfigurationRequest

        if (serviceDnsName != other.serviceDnsName) return false
        if (vpceConfigurationDescription != other.vpceConfigurationDescription) return false
        if (vpceConfigurationName != other.vpceConfigurationName) return false
        if (vpceServiceName != other.vpceServiceName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The DNS name of the service running in your VPC that you want Device Farm to test.
         */
        public var serviceDnsName: kotlin.String? = null
        /**
         * An optional description that provides details about your VPC endpoint configuration.
         */
        public var vpceConfigurationDescription: kotlin.String? = null
        /**
         * The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.
         */
        public var vpceConfigurationName: kotlin.String? = null
        /**
         * The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
         */
        public var vpceServiceName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.CreateVpceConfigurationRequest) : this() {
            this.serviceDnsName = x.serviceDnsName
            this.vpceConfigurationDescription = x.vpceConfigurationDescription
            this.vpceConfigurationName = x.vpceConfigurationName
            this.vpceServiceName = x.vpceServiceName
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy