
commonMain.aws.sdk.kotlin.services.ssm.model.ResourceDataSyncDestinationDataSharing.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
/**
* Synchronize Amazon Web Services Systems Manager Inventory data from multiple Amazon Web Services accounts defined in Organizations to a centralized Amazon S3 bucket. Data is synchronized to individual key prefixes in the central bucket. Each key prefix represents a different Amazon Web Services account ID.
*/
public class ResourceDataSyncDestinationDataSharing private constructor(builder: Builder) {
/**
* The sharing data type. Only `Organization` is supported.
*/
public val destinationDataSharingType: kotlin.String? = builder.destinationDataSharingType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.ResourceDataSyncDestinationDataSharing = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourceDataSyncDestinationDataSharing(")
append("destinationDataSharingType=$destinationDataSharingType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationDataSharingType?.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 ResourceDataSyncDestinationDataSharing
if (destinationDataSharingType != other.destinationDataSharingType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.ResourceDataSyncDestinationDataSharing = Builder(this).apply(block).build()
public class Builder {
/**
* The sharing data type. Only `Organization` is supported.
*/
public var destinationDataSharingType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.ResourceDataSyncDestinationDataSharing) : this() {
this.destinationDataSharingType = x.destinationDataSharingType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.ResourceDataSyncDestinationDataSharing = ResourceDataSyncDestinationDataSharing(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy