
commonMain.aws.sdk.kotlin.services.ssm.model.UpdateResourceDataSyncRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class UpdateResourceDataSyncRequest private constructor(builder: Builder) {
/**
* The name of the resource data sync you want to update.
*/
public val syncName: kotlin.String? = builder.syncName
/**
* Specify information about the data sources to synchronize.
*/
public val syncSource: aws.sdk.kotlin.services.ssm.model.ResourceDataSyncSource? = builder.syncSource
/**
* The type of resource data sync. The supported `SyncType` is SyncFromSource.
*/
public val syncType: kotlin.String? = builder.syncType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.UpdateResourceDataSyncRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateResourceDataSyncRequest(")
append("syncName=$syncName,")
append("syncSource=$syncSource,")
append("syncType=$syncType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = syncName?.hashCode() ?: 0
result = 31 * result + (syncSource?.hashCode() ?: 0)
result = 31 * result + (syncType?.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 UpdateResourceDataSyncRequest
if (syncName != other.syncName) return false
if (syncSource != other.syncSource) return false
if (syncType != other.syncType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.UpdateResourceDataSyncRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the resource data sync you want to update.
*/
public var syncName: kotlin.String? = null
/**
* Specify information about the data sources to synchronize.
*/
public var syncSource: aws.sdk.kotlin.services.ssm.model.ResourceDataSyncSource? = null
/**
* The type of resource data sync. The supported `SyncType` is SyncFromSource.
*/
public var syncType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.UpdateResourceDataSyncRequest) : this() {
this.syncName = x.syncName
this.syncSource = x.syncSource
this.syncType = x.syncType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.UpdateResourceDataSyncRequest = UpdateResourceDataSyncRequest(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.ResourceDataSyncSource] inside the given [block]
*/
public fun syncSource(block: aws.sdk.kotlin.services.ssm.model.ResourceDataSyncSource.Builder.() -> kotlin.Unit) {
this.syncSource = aws.sdk.kotlin.services.ssm.model.ResourceDataSyncSource.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy