commonMain.aws.sdk.kotlin.services.datazone.model.CreateSubscriptionTargetRequest.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 CreateSubscriptionTargetRequest private constructor(builder: Builder) {
/**
* The asset types that can be included in the subscription target.
*/
public val applicableAssetTypes: List? = builder.applicableAssetTypes
/**
* The authorized principals of the subscription target.
*/
public val authorizedPrincipals: List? = builder.authorizedPrincipals
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The ID of the Amazon DataZone domain in which subscription target is created.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The ID of the environment in which subscription target is created.
*/
public val environmentIdentifier: kotlin.String? = builder.environmentIdentifier
/**
* The manage access role that is used to create the subscription target.
*/
public val manageAccessRole: kotlin.String? = builder.manageAccessRole
/**
* The name of the subscription target.
*/
public val name: kotlin.String? = builder.name
/**
* The provider of the subscription target.
*/
public val provider: kotlin.String? = builder.provider
/**
* The configuration of the subscription target.
*/
public val subscriptionTargetConfig: List? = builder.subscriptionTargetConfig
/**
* The type of the subscription target.
*/
public val type: kotlin.String? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.CreateSubscriptionTargetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSubscriptionTargetRequest(")
append("applicableAssetTypes=$applicableAssetTypes,")
append("authorizedPrincipals=$authorizedPrincipals,")
append("clientToken=$clientToken,")
append("domainIdentifier=$domainIdentifier,")
append("environmentIdentifier=$environmentIdentifier,")
append("manageAccessRole=$manageAccessRole,")
append("name=*** Sensitive Data Redacted ***,")
append("provider=$provider,")
append("subscriptionTargetConfig=$subscriptionTargetConfig,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicableAssetTypes?.hashCode() ?: 0
result = 31 * result + (authorizedPrincipals?.hashCode() ?: 0)
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
result = 31 * result + (environmentIdentifier?.hashCode() ?: 0)
result = 31 * result + (manageAccessRole?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (provider?.hashCode() ?: 0)
result = 31 * result + (subscriptionTargetConfig?.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 CreateSubscriptionTargetRequest
if (applicableAssetTypes != other.applicableAssetTypes) return false
if (authorizedPrincipals != other.authorizedPrincipals) return false
if (clientToken != other.clientToken) return false
if (domainIdentifier != other.domainIdentifier) return false
if (environmentIdentifier != other.environmentIdentifier) return false
if (manageAccessRole != other.manageAccessRole) return false
if (name != other.name) return false
if (provider != other.provider) return false
if (subscriptionTargetConfig != other.subscriptionTargetConfig) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.CreateSubscriptionTargetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The asset types that can be included in the subscription target.
*/
public var applicableAssetTypes: List? = null
/**
* The authorized principals of the subscription target.
*/
public var authorizedPrincipals: List? = null
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public var clientToken: kotlin.String? = null
/**
* The ID of the Amazon DataZone domain in which subscription target is created.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The ID of the environment in which subscription target is created.
*/
public var environmentIdentifier: kotlin.String? = null
/**
* The manage access role that is used to create the subscription target.
*/
public var manageAccessRole: kotlin.String? = null
/**
* The name of the subscription target.
*/
public var name: kotlin.String? = null
/**
* The provider of the subscription target.
*/
public var provider: kotlin.String? = null
/**
* The configuration of the subscription target.
*/
public var subscriptionTargetConfig: List? = null
/**
* The type of the subscription target.
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateSubscriptionTargetRequest) : this() {
this.applicableAssetTypes = x.applicableAssetTypes
this.authorizedPrincipals = x.authorizedPrincipals
this.clientToken = x.clientToken
this.domainIdentifier = x.domainIdentifier
this.environmentIdentifier = x.environmentIdentifier
this.manageAccessRole = x.manageAccessRole
this.name = x.name
this.provider = x.provider
this.subscriptionTargetConfig = x.subscriptionTargetConfig
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.CreateSubscriptionTargetRequest = CreateSubscriptionTargetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy