
commonMain.aws.sdk.kotlin.services.wellarchitected.model.CreateProfileRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
public class CreateProfileRequest private constructor(builder: Builder) {
/**
* A unique case-sensitive string used to ensure that this request is idempotent (executes only once).
*
* You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.
*
* This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The profile description.
*/
public val profileDescription: kotlin.String? = builder.profileDescription
/**
* Name of the profile.
*/
public val profileName: kotlin.String? = builder.profileName
/**
* The profile questions.
*/
public val profileQuestions: List? = builder.profileQuestions
/**
* The tags assigned to the profile.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.CreateProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateProfileRequest(")
append("clientRequestToken=$clientRequestToken,")
append("profileDescription=$profileDescription,")
append("profileName=$profileName,")
append("profileQuestions=$profileQuestions,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (profileDescription?.hashCode() ?: 0)
result = 31 * result + (profileName?.hashCode() ?: 0)
result = 31 * result + (profileQuestions?.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 CreateProfileRequest
if (clientRequestToken != other.clientRequestToken) return false
if (profileDescription != other.profileDescription) return false
if (profileName != other.profileName) return false
if (profileQuestions != other.profileQuestions) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.CreateProfileRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique case-sensitive string used to ensure that this request is idempotent (executes only once).
*
* You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.
*
* This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The profile description.
*/
public var profileDescription: kotlin.String? = null
/**
* Name of the profile.
*/
public var profileName: kotlin.String? = null
/**
* The profile questions.
*/
public var profileQuestions: List? = null
/**
* The tags assigned to the profile.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.CreateProfileRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.profileDescription = x.profileDescription
this.profileName = x.profileName
this.profileQuestions = x.profileQuestions
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.CreateProfileRequest = CreateProfileRequest(this)
internal fun correctErrors(): Builder {
if (clientRequestToken == null) clientRequestToken = ""
if (profileDescription == null) profileDescription = ""
if (profileName == null) profileName = ""
if (profileQuestions == null) profileQuestions = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy