commonMain.aws.sdk.kotlin.services.datazone.model.CreateDataSourceRequest.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
public class CreateDataSourceRequest private constructor(builder: Builder) {
/**
* The metadata forms that are to be attached to the assets that this data source works with.
*/
public val assetFormsInput: List? = builder.assetFormsInput
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* Specifies the configuration of the data source. It can be set to either `glueRunConfiguration` or `redshiftRunConfiguration`.
*/
public val configuration: aws.sdk.kotlin.services.datazone.model.DataSourceConfigurationInput? = builder.configuration
/**
* The description of the data source.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the Amazon DataZone domain where the data source is created.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* Specifies whether the data source is enabled.
*/
public val enableSetting: aws.sdk.kotlin.services.datazone.model.EnableSetting? = builder.enableSetting
/**
* The unique identifier of the Amazon DataZone environment to which the data source publishes assets.
*/
public val environmentIdentifier: kotlin.String? = builder.environmentIdentifier
/**
* The name of the data source.
*/
public val name: kotlin.String? = builder.name
/**
* The identifier of the Amazon DataZone project in which you want to add this data source.
*/
public val projectIdentifier: kotlin.String? = builder.projectIdentifier
/**
* Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.
*/
public val publishOnImport: kotlin.Boolean? = builder.publishOnImport
/**
* Specifies whether the business name generation is to be enabled for this data source.
*/
public val recommendation: aws.sdk.kotlin.services.datazone.model.RecommendationConfiguration? = builder.recommendation
/**
* The schedule of the data source runs.
*/
public val schedule: aws.sdk.kotlin.services.datazone.model.ScheduleConfiguration? = builder.schedule
/**
* The type of the data source.
*/
public val type: kotlin.String? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.CreateDataSourceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDataSourceRequest(")
append("assetFormsInput=*** Sensitive Data Redacted ***,")
append("clientToken=$clientToken,")
append("configuration=$configuration,")
append("description=*** Sensitive Data Redacted ***,")
append("domainIdentifier=$domainIdentifier,")
append("enableSetting=$enableSetting,")
append("environmentIdentifier=$environmentIdentifier,")
append("name=*** Sensitive Data Redacted ***,")
append("projectIdentifier=$projectIdentifier,")
append("publishOnImport=$publishOnImport,")
append("recommendation=$recommendation,")
append("schedule=*** Sensitive Data Redacted ***,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetFormsInput?.hashCode() ?: 0
result = 31 * result + (clientToken?.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 + (environmentIdentifier?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (projectIdentifier?.hashCode() ?: 0)
result = 31 * result + (publishOnImport?.hashCode() ?: 0)
result = 31 * result + (recommendation?.hashCode() ?: 0)
result = 31 * result + (schedule?.hashCode() ?: 0)
result = 31 * result + (type?.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 CreateDataSourceRequest
if (assetFormsInput != other.assetFormsInput) return false
if (clientToken != other.clientToken) 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 (environmentIdentifier != other.environmentIdentifier) return false
if (name != other.name) return false
if (projectIdentifier != other.projectIdentifier) return false
if (publishOnImport != other.publishOnImport) return false
if (recommendation != other.recommendation) return false
if (schedule != other.schedule) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.CreateDataSourceRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The metadata forms that are to be attached to the assets that this data source works with.
*/
public var assetFormsInput: List? = null
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public var clientToken: kotlin.String? = null
/**
* Specifies the configuration of the data source. It can be set to either `glueRunConfiguration` or `redshiftRunConfiguration`.
*/
public var configuration: aws.sdk.kotlin.services.datazone.model.DataSourceConfigurationInput? = null
/**
* The description of the data source.
*/
public var description: kotlin.String? = null
/**
* The ID of the Amazon DataZone domain where the data source is created.
*/
public var domainIdentifier: kotlin.String? = null
/**
* Specifies whether the data source is enabled.
*/
public var enableSetting: aws.sdk.kotlin.services.datazone.model.EnableSetting? = null
/**
* The unique identifier of the Amazon DataZone environment to which the data source publishes assets.
*/
public var environmentIdentifier: kotlin.String? = null
/**
* The name of the data source.
*/
public var name: kotlin.String? = null
/**
* The identifier of the Amazon DataZone project in which you want to add this data source.
*/
public var projectIdentifier: kotlin.String? = null
/**
* Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.
*/
public var publishOnImport: kotlin.Boolean? = null
/**
* Specifies whether the business name generation is to be enabled for this data source.
*/
public var recommendation: aws.sdk.kotlin.services.datazone.model.RecommendationConfiguration? = null
/**
* The schedule of the data source runs.
*/
public var schedule: aws.sdk.kotlin.services.datazone.model.ScheduleConfiguration? = null
/**
* The type of the data source.
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateDataSourceRequest) : this() {
this.assetFormsInput = x.assetFormsInput
this.clientToken = x.clientToken
this.configuration = x.configuration
this.description = x.description
this.domainIdentifier = x.domainIdentifier
this.enableSetting = x.enableSetting
this.environmentIdentifier = x.environmentIdentifier
this.name = x.name
this.projectIdentifier = x.projectIdentifier
this.publishOnImport = x.publishOnImport
this.recommendation = x.recommendation
this.schedule = x.schedule
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.CreateDataSourceRequest = CreateDataSourceRequest(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