
commonMain.aws.sdk.kotlin.services.efs.model.CreateReplicationConfigurationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.efs.model
public class CreateReplicationConfigurationRequest private constructor(builder: Builder) {
/**
* An array of destination configuration objects. Only one destination configuration object is supported.
*/
public val destinations: List? = builder.destinations
/**
* Specifies the Amazon EFS file system that you want to replicate. This file system cannot already be a source or destination file system in another replication configuration.
*/
public val sourceFileSystemId: kotlin.String? = requireNotNull(builder.sourceFileSystemId) { "A non-null value must be provided for sourceFileSystemId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.efs.model.CreateReplicationConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateReplicationConfigurationRequest(")
append("destinations=$destinations,")
append("sourceFileSystemId=$sourceFileSystemId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinations?.hashCode() ?: 0
result = 31 * result + (sourceFileSystemId?.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 CreateReplicationConfigurationRequest
if (destinations != other.destinations) return false
if (sourceFileSystemId != other.sourceFileSystemId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.efs.model.CreateReplicationConfigurationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* An array of destination configuration objects. Only one destination configuration object is supported.
*/
public var destinations: List? = null
/**
* Specifies the Amazon EFS file system that you want to replicate. This file system cannot already be a source or destination file system in another replication configuration.
*/
public var sourceFileSystemId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.efs.model.CreateReplicationConfigurationRequest) : this() {
this.destinations = x.destinations
this.sourceFileSystemId = x.sourceFileSystemId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.efs.model.CreateReplicationConfigurationRequest = CreateReplicationConfigurationRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy