
commonMain.aws.sdk.kotlin.services.kafka.model.Provisioned.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafka.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provisioned cluster.
*/
public class Provisioned private constructor(builder: Builder) {
/**
* Information about the brokers.
*/
public val brokerNodeGroupInfo: aws.sdk.kotlin.services.kafka.model.BrokerNodeGroupInfo? = builder.brokerNodeGroupInfo
/**
* Includes all client authentication information.
*/
public val clientAuthentication: aws.sdk.kotlin.services.kafka.model.ClientAuthentication? = builder.clientAuthentication
/**
* Information about the Apache Kafka version deployed on the brokers.
*/
public val currentBrokerSoftwareInfo: aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo? = builder.currentBrokerSoftwareInfo
/**
* Determines if there is an action required from the customer.
*/
public val customerActionStatus: aws.sdk.kotlin.services.kafka.model.CustomerActionStatus? = builder.customerActionStatus
/**
* Includes all encryption-related information.
*/
public val encryptionInfo: aws.sdk.kotlin.services.kafka.model.EncryptionInfo? = builder.encryptionInfo
/**
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*/
public val enhancedMonitoring: aws.sdk.kotlin.services.kafka.model.EnhancedMonitoring? = builder.enhancedMonitoring
/**
* Log delivery information for the cluster.
*/
public val loggingInfo: aws.sdk.kotlin.services.kafka.model.LoggingInfo? = builder.loggingInfo
/**
* The number of broker nodes in the cluster.
*/
public val numberOfBrokerNodes: kotlin.Int? = builder.numberOfBrokerNodes
/**
* The settings for open monitoring.
*/
public val openMonitoring: aws.sdk.kotlin.services.kafka.model.OpenMonitoringInfo? = builder.openMonitoring
/**
* This controls storage mode for supported storage tiers.
*/
public val storageMode: aws.sdk.kotlin.services.kafka.model.StorageMode? = builder.storageMode
/**
* The connection string to use to connect to the Apache ZooKeeper cluster.
*/
public val zookeeperConnectString: kotlin.String? = builder.zookeeperConnectString
/**
* The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.
*/
public val zookeeperConnectStringTls: kotlin.String? = builder.zookeeperConnectStringTls
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.Provisioned = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Provisioned(")
append("brokerNodeGroupInfo=$brokerNodeGroupInfo,")
append("clientAuthentication=$clientAuthentication,")
append("currentBrokerSoftwareInfo=$currentBrokerSoftwareInfo,")
append("customerActionStatus=$customerActionStatus,")
append("encryptionInfo=$encryptionInfo,")
append("enhancedMonitoring=$enhancedMonitoring,")
append("loggingInfo=$loggingInfo,")
append("numberOfBrokerNodes=$numberOfBrokerNodes,")
append("openMonitoring=$openMonitoring,")
append("storageMode=$storageMode,")
append("zookeeperConnectString=$zookeeperConnectString,")
append("zookeeperConnectStringTls=$zookeeperConnectStringTls")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = brokerNodeGroupInfo?.hashCode() ?: 0
result = 31 * result + (clientAuthentication?.hashCode() ?: 0)
result = 31 * result + (currentBrokerSoftwareInfo?.hashCode() ?: 0)
result = 31 * result + (customerActionStatus?.hashCode() ?: 0)
result = 31 * result + (encryptionInfo?.hashCode() ?: 0)
result = 31 * result + (enhancedMonitoring?.hashCode() ?: 0)
result = 31 * result + (loggingInfo?.hashCode() ?: 0)
result = 31 * result + (numberOfBrokerNodes ?: 0)
result = 31 * result + (openMonitoring?.hashCode() ?: 0)
result = 31 * result + (storageMode?.hashCode() ?: 0)
result = 31 * result + (zookeeperConnectString?.hashCode() ?: 0)
result = 31 * result + (zookeeperConnectStringTls?.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 Provisioned
if (brokerNodeGroupInfo != other.brokerNodeGroupInfo) return false
if (clientAuthentication != other.clientAuthentication) return false
if (currentBrokerSoftwareInfo != other.currentBrokerSoftwareInfo) return false
if (customerActionStatus != other.customerActionStatus) return false
if (encryptionInfo != other.encryptionInfo) return false
if (enhancedMonitoring != other.enhancedMonitoring) return false
if (loggingInfo != other.loggingInfo) return false
if (numberOfBrokerNodes != other.numberOfBrokerNodes) return false
if (openMonitoring != other.openMonitoring) return false
if (storageMode != other.storageMode) return false
if (zookeeperConnectString != other.zookeeperConnectString) return false
if (zookeeperConnectStringTls != other.zookeeperConnectStringTls) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.Provisioned = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the brokers.
*/
public var brokerNodeGroupInfo: aws.sdk.kotlin.services.kafka.model.BrokerNodeGroupInfo? = null
/**
* Includes all client authentication information.
*/
public var clientAuthentication: aws.sdk.kotlin.services.kafka.model.ClientAuthentication? = null
/**
* Information about the Apache Kafka version deployed on the brokers.
*/
public var currentBrokerSoftwareInfo: aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo? = null
/**
* Determines if there is an action required from the customer.
*/
public var customerActionStatus: aws.sdk.kotlin.services.kafka.model.CustomerActionStatus? = null
/**
* Includes all encryption-related information.
*/
public var encryptionInfo: aws.sdk.kotlin.services.kafka.model.EncryptionInfo? = null
/**
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*/
public var enhancedMonitoring: aws.sdk.kotlin.services.kafka.model.EnhancedMonitoring? = null
/**
* Log delivery information for the cluster.
*/
public var loggingInfo: aws.sdk.kotlin.services.kafka.model.LoggingInfo? = null
/**
* The number of broker nodes in the cluster.
*/
public var numberOfBrokerNodes: kotlin.Int? = null
/**
* The settings for open monitoring.
*/
public var openMonitoring: aws.sdk.kotlin.services.kafka.model.OpenMonitoringInfo? = null
/**
* This controls storage mode for supported storage tiers.
*/
public var storageMode: aws.sdk.kotlin.services.kafka.model.StorageMode? = null
/**
* The connection string to use to connect to the Apache ZooKeeper cluster.
*/
public var zookeeperConnectString: kotlin.String? = null
/**
* The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.
*/
public var zookeeperConnectStringTls: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.Provisioned) : this() {
this.brokerNodeGroupInfo = x.brokerNodeGroupInfo
this.clientAuthentication = x.clientAuthentication
this.currentBrokerSoftwareInfo = x.currentBrokerSoftwareInfo
this.customerActionStatus = x.customerActionStatus
this.encryptionInfo = x.encryptionInfo
this.enhancedMonitoring = x.enhancedMonitoring
this.loggingInfo = x.loggingInfo
this.numberOfBrokerNodes = x.numberOfBrokerNodes
this.openMonitoring = x.openMonitoring
this.storageMode = x.storageMode
this.zookeeperConnectString = x.zookeeperConnectString
this.zookeeperConnectStringTls = x.zookeeperConnectStringTls
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.Provisioned = Provisioned(this)
/**
* construct an [aws.sdk.kotlin.services.kafka.model.BrokerNodeGroupInfo] inside the given [block]
*/
public fun brokerNodeGroupInfo(block: aws.sdk.kotlin.services.kafka.model.BrokerNodeGroupInfo.Builder.() -> kotlin.Unit) {
this.brokerNodeGroupInfo = aws.sdk.kotlin.services.kafka.model.BrokerNodeGroupInfo.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.kafka.model.ClientAuthentication] inside the given [block]
*/
public fun clientAuthentication(block: aws.sdk.kotlin.services.kafka.model.ClientAuthentication.Builder.() -> kotlin.Unit) {
this.clientAuthentication = aws.sdk.kotlin.services.kafka.model.ClientAuthentication.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo] inside the given [block]
*/
public fun currentBrokerSoftwareInfo(block: aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo.Builder.() -> kotlin.Unit) {
this.currentBrokerSoftwareInfo = aws.sdk.kotlin.services.kafka.model.BrokerSoftwareInfo.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.kafka.model.EncryptionInfo] inside the given [block]
*/
public fun encryptionInfo(block: aws.sdk.kotlin.services.kafka.model.EncryptionInfo.Builder.() -> kotlin.Unit) {
this.encryptionInfo = aws.sdk.kotlin.services.kafka.model.EncryptionInfo.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.kafka.model.LoggingInfo] inside the given [block]
*/
public fun loggingInfo(block: aws.sdk.kotlin.services.kafka.model.LoggingInfo.Builder.() -> kotlin.Unit) {
this.loggingInfo = aws.sdk.kotlin.services.kafka.model.LoggingInfo.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.kafka.model.OpenMonitoringInfo] inside the given [block]
*/
public fun openMonitoring(block: aws.sdk.kotlin.services.kafka.model.OpenMonitoringInfo.Builder.() -> kotlin.Unit) {
this.openMonitoring = aws.sdk.kotlin.services.kafka.model.OpenMonitoringInfo.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy