
commonMain.aws.sdk.kotlin.services.rolesanywhere.model.CreateTrustAnchorRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rolesanywhere.model
public class CreateTrustAnchorRequest private constructor(builder: Builder) {
/**
* Specifies whether the trust anchor is enabled.
*/
public val enabled: kotlin.Boolean? = builder.enabled
/**
* The name of the trust anchor.
*/
public val name: kotlin.String? = builder.name
/**
* A list of notification settings to be associated to the trust anchor.
*/
public val notificationSettings: List? = builder.notificationSettings
/**
* The trust anchor type and its related certificate data.
*/
public val source: aws.sdk.kotlin.services.rolesanywhere.model.Source? = builder.source
/**
* The tags to attach to the trust anchor.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rolesanywhere.model.CreateTrustAnchorRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateTrustAnchorRequest(")
append("enabled=$enabled,")
append("name=$name,")
append("notificationSettings=$notificationSettings,")
append("source=$source,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enabled?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (notificationSettings?.hashCode() ?: 0)
result = 31 * result + (source?.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 CreateTrustAnchorRequest
if (enabled != other.enabled) return false
if (name != other.name) return false
if (notificationSettings != other.notificationSettings) return false
if (source != other.source) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rolesanywhere.model.CreateTrustAnchorRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies whether the trust anchor is enabled.
*/
public var enabled: kotlin.Boolean? = null
/**
* The name of the trust anchor.
*/
public var name: kotlin.String? = null
/**
* A list of notification settings to be associated to the trust anchor.
*/
public var notificationSettings: List? = null
/**
* The trust anchor type and its related certificate data.
*/
public var source: aws.sdk.kotlin.services.rolesanywhere.model.Source? = null
/**
* The tags to attach to the trust anchor.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rolesanywhere.model.CreateTrustAnchorRequest) : this() {
this.enabled = x.enabled
this.name = x.name
this.notificationSettings = x.notificationSettings
this.source = x.source
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rolesanywhere.model.CreateTrustAnchorRequest = CreateTrustAnchorRequest(this)
/**
* construct an [aws.sdk.kotlin.services.rolesanywhere.model.Source] inside the given [block]
*/
public fun source(block: aws.sdk.kotlin.services.rolesanywhere.model.Source.Builder.() -> kotlin.Unit) {
this.source = aws.sdk.kotlin.services.rolesanywhere.model.Source.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy