
commonMain.aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apptest.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateTestConfigurationRequest private constructor(builder: Builder) {
/**
* The client token of the test configuration.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The description of the test configuration.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the test configuration.
*/
public val name: kotlin.String? = builder.name
/**
* The properties of the test configuration.
*/
public val properties: Map? = builder.properties
/**
* The defined resources of the test configuration.
*/
public val resources: List? = builder.resources
/**
* The service settings of the test configuration.
*/
public val serviceSettings: aws.sdk.kotlin.services.apptest.model.ServiceSettings? = builder.serviceSettings
/**
* The tags of the test configuration.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateTestConfigurationRequest(")
append("clientToken=$clientToken,")
append("description=$description,")
append("name=$name,")
append("properties=$properties,")
append("resources=$resources,")
append("serviceSettings=$serviceSettings,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (properties?.hashCode() ?: 0)
result = 31 * result + (resources?.hashCode() ?: 0)
result = 31 * result + (serviceSettings?.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 CreateTestConfigurationRequest
if (clientToken != other.clientToken) return false
if (description != other.description) return false
if (name != other.name) return false
if (properties != other.properties) return false
if (resources != other.resources) return false
if (serviceSettings != other.serviceSettings) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The client token of the test configuration.
*/
public var clientToken: kotlin.String? = null
/**
* The description of the test configuration.
*/
public var description: kotlin.String? = null
/**
* The name of the test configuration.
*/
public var name: kotlin.String? = null
/**
* The properties of the test configuration.
*/
public var properties: Map? = null
/**
* The defined resources of the test configuration.
*/
public var resources: List? = null
/**
* The service settings of the test configuration.
*/
public var serviceSettings: aws.sdk.kotlin.services.apptest.model.ServiceSettings? = null
/**
* The tags of the test configuration.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationRequest) : this() {
this.clientToken = x.clientToken
this.description = x.description
this.name = x.name
this.properties = x.properties
this.resources = x.resources
this.serviceSettings = x.serviceSettings
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationRequest = CreateTestConfigurationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.apptest.model.ServiceSettings] inside the given [block]
*/
public fun serviceSettings(block: aws.sdk.kotlin.services.apptest.model.ServiceSettings.Builder.() -> kotlin.Unit) {
this.serviceSettings = aws.sdk.kotlin.services.apptest.model.ServiceSettings.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy