commonMain.aws.sdk.kotlin.services.datazone.model.UpdateDataSourceRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateDataSourceRequest private constructor(builder: Builder) {
/**
* The asset forms to be updated as part of the `UpdateDataSource` action.
*/
public val assetFormsInput: List? = builder.assetFormsInput
/**
* The configuration to be updated as part of the `UpdateDataSource` action.
*/
public val configuration: aws.sdk.kotlin.services.datazone.model.DataSourceConfigurationInput? = builder.configuration
/**
* The description to be updated as part of the `UpdateDataSource` action.
*/
public val description: kotlin.String? = builder.description
/**
* The identifier of the domain in which to update a data source.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The enable setting to be updated as part of the `UpdateDataSource` action.
*/
public val enableSetting: aws.sdk.kotlin.services.datazone.model.EnableSetting? = builder.enableSetting
/**
* The identifier of the data source to be updated.
*/
public val identifier: kotlin.String? = builder.identifier
/**
* The name to be updated as part of the `UpdateDataSource` action.
*/
public val name: kotlin.String? = builder.name
/**
* The publish on import setting to be updated as part of the `UpdateDataSource` action.
*/
public val publishOnImport: kotlin.Boolean? = builder.publishOnImport
/**
* The recommendation to be updated as part of the `UpdateDataSource` action.
*/
public val recommendation: aws.sdk.kotlin.services.datazone.model.RecommendationConfiguration? = builder.recommendation
/**
* Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data source.
*/
public val retainPermissionsOnRevokeFailure: kotlin.Boolean? = builder.retainPermissionsOnRevokeFailure
/**
* The schedule to be updated as part of the `UpdateDataSource` action.
*/
public val schedule: aws.sdk.kotlin.services.datazone.model.ScheduleConfiguration? = builder.schedule
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.UpdateDataSourceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDataSourceRequest(")
append("assetFormsInput=*** Sensitive Data Redacted ***,")
append("configuration=$configuration,")
append("description=*** Sensitive Data Redacted ***,")
append("domainIdentifier=$domainIdentifier,")
append("enableSetting=$enableSetting,")
append("identifier=$identifier,")
append("name=*** Sensitive Data Redacted ***,")
append("publishOnImport=$publishOnImport,")
append("recommendation=$recommendation,")
append("retainPermissionsOnRevokeFailure=$retainPermissionsOnRevokeFailure,")
append("schedule=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetFormsInput?.hashCode() ?: 0
result = 31 * result + (configuration?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
result = 31 * result + (enableSetting?.hashCode() ?: 0)
result = 31 * result + (identifier?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (publishOnImport?.hashCode() ?: 0)
result = 31 * result + (recommendation?.hashCode() ?: 0)
result = 31 * result + (retainPermissionsOnRevokeFailure?.hashCode() ?: 0)
result = 31 * result + (schedule?.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 UpdateDataSourceRequest
if (assetFormsInput != other.assetFormsInput) return false
if (configuration != other.configuration) return false
if (description != other.description) return false
if (domainIdentifier != other.domainIdentifier) return false
if (enableSetting != other.enableSetting) return false
if (identifier != other.identifier) return false
if (name != other.name) return false
if (publishOnImport != other.publishOnImport) return false
if (recommendation != other.recommendation) return false
if (retainPermissionsOnRevokeFailure != other.retainPermissionsOnRevokeFailure) return false
if (schedule != other.schedule) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.UpdateDataSourceRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The asset forms to be updated as part of the `UpdateDataSource` action.
*/
public var assetFormsInput: List? = null
/**
* The configuration to be updated as part of the `UpdateDataSource` action.
*/
public var configuration: aws.sdk.kotlin.services.datazone.model.DataSourceConfigurationInput? = null
/**
* The description to be updated as part of the `UpdateDataSource` action.
*/
public var description: kotlin.String? = null
/**
* The identifier of the domain in which to update a data source.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The enable setting to be updated as part of the `UpdateDataSource` action.
*/
public var enableSetting: aws.sdk.kotlin.services.datazone.model.EnableSetting? = null
/**
* The identifier of the data source to be updated.
*/
public var identifier: kotlin.String? = null
/**
* The name to be updated as part of the `UpdateDataSource` action.
*/
public var name: kotlin.String? = null
/**
* The publish on import setting to be updated as part of the `UpdateDataSource` action.
*/
public var publishOnImport: kotlin.Boolean? = null
/**
* The recommendation to be updated as part of the `UpdateDataSource` action.
*/
public var recommendation: aws.sdk.kotlin.services.datazone.model.RecommendationConfiguration? = null
/**
* Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data source.
*/
public var retainPermissionsOnRevokeFailure: kotlin.Boolean? = null
/**
* The schedule to be updated as part of the `UpdateDataSource` action.
*/
public var schedule: aws.sdk.kotlin.services.datazone.model.ScheduleConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.UpdateDataSourceRequest) : this() {
this.assetFormsInput = x.assetFormsInput
this.configuration = x.configuration
this.description = x.description
this.domainIdentifier = x.domainIdentifier
this.enableSetting = x.enableSetting
this.identifier = x.identifier
this.name = x.name
this.publishOnImport = x.publishOnImport
this.recommendation = x.recommendation
this.retainPermissionsOnRevokeFailure = x.retainPermissionsOnRevokeFailure
this.schedule = x.schedule
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.UpdateDataSourceRequest = UpdateDataSourceRequest(this)
/**
* construct an [aws.sdk.kotlin.services.datazone.model.RecommendationConfiguration] inside the given [block]
*/
public fun recommendation(block: aws.sdk.kotlin.services.datazone.model.RecommendationConfiguration.Builder.() -> kotlin.Unit) {
this.recommendation = aws.sdk.kotlin.services.datazone.model.RecommendationConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.datazone.model.ScheduleConfiguration] inside the given [block]
*/
public fun schedule(block: aws.sdk.kotlin.services.datazone.model.ScheduleConfiguration.Builder.() -> kotlin.Unit) {
this.schedule = aws.sdk.kotlin.services.datazone.model.ScheduleConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy