commonMain.aws.sdk.kotlin.services.datazone.model.CreateSubscriptionGrantRequest.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 CreateSubscriptionGrantRequest private constructor(builder: Builder) {
/**
* The names of the assets for which the subscription grant is created.
*/
public val assetTargetNames: List? = builder.assetTargetNames
/**
* 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 the subscription grant is created.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The ID of the environment in which the subscription grant is created.
*/
public val environmentIdentifier: kotlin.String? = builder.environmentIdentifier
/**
* The entity to which the subscription is to be granted.
*/
public val grantedEntity: aws.sdk.kotlin.services.datazone.model.GrantedEntityInput? = builder.grantedEntity
/**
* The ID of the subscription target for which the subscription grant is created.
*/
public val subscriptionTargetIdentifier: kotlin.String? = builder.subscriptionTargetIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.CreateSubscriptionGrantRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSubscriptionGrantRequest(")
append("assetTargetNames=$assetTargetNames,")
append("clientToken=$clientToken,")
append("domainIdentifier=$domainIdentifier,")
append("environmentIdentifier=$environmentIdentifier,")
append("grantedEntity=$grantedEntity,")
append("subscriptionTargetIdentifier=$subscriptionTargetIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetTargetNames?.hashCode() ?: 0
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
result = 31 * result + (environmentIdentifier?.hashCode() ?: 0)
result = 31 * result + (grantedEntity?.hashCode() ?: 0)
result = 31 * result + (subscriptionTargetIdentifier?.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 CreateSubscriptionGrantRequest
if (assetTargetNames != other.assetTargetNames) return false
if (clientToken != other.clientToken) return false
if (domainIdentifier != other.domainIdentifier) return false
if (environmentIdentifier != other.environmentIdentifier) return false
if (grantedEntity != other.grantedEntity) return false
if (subscriptionTargetIdentifier != other.subscriptionTargetIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.CreateSubscriptionGrantRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The names of the assets for which the subscription grant is created.
*/
public var assetTargetNames: 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 the subscription grant is created.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The ID of the environment in which the subscription grant is created.
*/
public var environmentIdentifier: kotlin.String? = null
/**
* The entity to which the subscription is to be granted.
*/
public var grantedEntity: aws.sdk.kotlin.services.datazone.model.GrantedEntityInput? = null
/**
* The ID of the subscription target for which the subscription grant is created.
*/
public var subscriptionTargetIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateSubscriptionGrantRequest) : this() {
this.assetTargetNames = x.assetTargetNames
this.clientToken = x.clientToken
this.domainIdentifier = x.domainIdentifier
this.environmentIdentifier = x.environmentIdentifier
this.grantedEntity = x.grantedEntity
this.subscriptionTargetIdentifier = x.subscriptionTargetIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.CreateSubscriptionGrantRequest = CreateSubscriptionGrantRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy