commonMain.aws.sdk.kotlin.services.nimble.model.ActiveDirectoryConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration for a Directory Service for Microsoft Active Directory studio resource.
*/
public class ActiveDirectoryConfiguration private constructor(builder: Builder) {
/**
* A collection of custom attributes for an Active Directory computer.
*/
public val computerAttributes: List? = builder.computerAttributes
/**
* The directory ID of the Directory Service for Microsoft Active Directory to access using this studio component.
*/
public val directoryId: kotlin.String? = builder.directoryId
/**
* The distinguished name (DN) and organizational unit (OU) of an Active Directory computer.
*/
public val organizationalUnitDistinguishedName: kotlin.String? = builder.organizationalUnitDistinguishedName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.ActiveDirectoryConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActiveDirectoryConfiguration(")
append("computerAttributes=*** Sensitive Data Redacted ***,")
append("directoryId=$directoryId,")
append("organizationalUnitDistinguishedName=$organizationalUnitDistinguishedName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = computerAttributes?.hashCode() ?: 0
result = 31 * result + (directoryId?.hashCode() ?: 0)
result = 31 * result + (organizationalUnitDistinguishedName?.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 ActiveDirectoryConfiguration
if (computerAttributes != other.computerAttributes) return false
if (directoryId != other.directoryId) return false
if (organizationalUnitDistinguishedName != other.organizationalUnitDistinguishedName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.ActiveDirectoryConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A collection of custom attributes for an Active Directory computer.
*/
public var computerAttributes: List? = null
/**
* The directory ID of the Directory Service for Microsoft Active Directory to access using this studio component.
*/
public var directoryId: kotlin.String? = null
/**
* The distinguished name (DN) and organizational unit (OU) of an Active Directory computer.
*/
public var organizationalUnitDistinguishedName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.ActiveDirectoryConfiguration) : this() {
this.computerAttributes = x.computerAttributes
this.directoryId = x.directoryId
this.organizationalUnitDistinguishedName = x.organizationalUnitDistinguishedName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.ActiveDirectoryConfiguration = ActiveDirectoryConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}