
commonMain.aws.sdk.kotlin.services.rolesanywhere.model.Source.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rolesanywhere.model
/**
* The trust anchor type and its related certificate data.
*/
public class Source private constructor(builder: Builder) {
/**
* The data field of the trust anchor depending on its type.
*/
public val sourceData: aws.sdk.kotlin.services.rolesanywhere.model.SourceData? = builder.sourceData
/**
* The type of the trust anchor.
*/
public val sourceType: aws.sdk.kotlin.services.rolesanywhere.model.TrustAnchorType? = builder.sourceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rolesanywhere.model.Source = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Source(")
append("sourceData=$sourceData,")
append("sourceType=$sourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sourceData?.hashCode() ?: 0
result = 31 * result + (sourceType?.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 Source
if (sourceData != other.sourceData) return false
if (sourceType != other.sourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rolesanywhere.model.Source = Builder(this).apply(block).build()
public class Builder {
/**
* The data field of the trust anchor depending on its type.
*/
public var sourceData: aws.sdk.kotlin.services.rolesanywhere.model.SourceData? = null
/**
* The type of the trust anchor.
*/
public var sourceType: aws.sdk.kotlin.services.rolesanywhere.model.TrustAnchorType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rolesanywhere.model.Source) : this() {
this.sourceData = x.sourceData
this.sourceType = x.sourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rolesanywhere.model.Source = Source(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy