All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.datazone.model.UpdateSubscriptionTargetRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateSubscriptionTargetRequest private constructor(builder: Builder) {
    /**
     * The applicable asset types to be updated as part of the `UpdateSubscriptionTarget` action.
     */
    public val applicableAssetTypes: List? = builder.applicableAssetTypes
    /**
     * The authorized principals to be updated as part of the `UpdateSubscriptionTarget` action.
     */
    public val authorizedPrincipals: List? = builder.authorizedPrincipals
    /**
     * The identifier of the Amazon DataZone domain in which a subscription target is to be updated.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The identifier of the environment in which a subscription target is to be updated.
     */
    public val environmentIdentifier: kotlin.String? = builder.environmentIdentifier
    /**
     * Identifier of the subscription target that is to be updated.
     */
    public val identifier: kotlin.String? = builder.identifier
    /**
     * The manage access role to be updated as part of the `UpdateSubscriptionTarget` action.
     */
    public val manageAccessRole: kotlin.String? = builder.manageAccessRole
    /**
     * The name to be updated as part of the `UpdateSubscriptionTarget` action.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The provider to be updated as part of the `UpdateSubscriptionTarget` action.
     */
    public val provider: kotlin.String? = builder.provider
    /**
     * The configuration to be updated as part of the `UpdateSubscriptionTarget` action.
     */
    public val subscriptionTargetConfig: List? = builder.subscriptionTargetConfig

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.UpdateSubscriptionTargetRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateSubscriptionTargetRequest(")
        append("applicableAssetTypes=$applicableAssetTypes,")
        append("authorizedPrincipals=$authorizedPrincipals,")
        append("domainIdentifier=$domainIdentifier,")
        append("environmentIdentifier=$environmentIdentifier,")
        append("identifier=$identifier,")
        append("manageAccessRole=$manageAccessRole,")
        append("name=*** Sensitive Data Redacted ***,")
        append("provider=$provider,")
        append("subscriptionTargetConfig=$subscriptionTargetConfig")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicableAssetTypes?.hashCode() ?: 0
        result = 31 * result + (authorizedPrincipals?.hashCode() ?: 0)
        result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
        result = 31 * result + (environmentIdentifier?.hashCode() ?: 0)
        result = 31 * result + (identifier?.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)
        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 UpdateSubscriptionTargetRequest

        if (applicableAssetTypes != other.applicableAssetTypes) return false
        if (authorizedPrincipals != other.authorizedPrincipals) return false
        if (domainIdentifier != other.domainIdentifier) return false
        if (environmentIdentifier != other.environmentIdentifier) return false
        if (identifier != other.identifier) 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

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.UpdateSubscriptionTargetRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The applicable asset types to be updated as part of the `UpdateSubscriptionTarget` action.
         */
        public var applicableAssetTypes: List? = null
        /**
         * The authorized principals to be updated as part of the `UpdateSubscriptionTarget` action.
         */
        public var authorizedPrincipals: List? = null
        /**
         * The identifier of the Amazon DataZone domain in which a subscription target is to be updated.
         */
        public var domainIdentifier: kotlin.String? = null
        /**
         * The identifier of the environment in which a subscription target is to be updated.
         */
        public var environmentIdentifier: kotlin.String? = null
        /**
         * Identifier of the subscription target that is to be updated.
         */
        public var identifier: kotlin.String? = null
        /**
         * The manage access role to be updated as part of the `UpdateSubscriptionTarget` action.
         */
        public var manageAccessRole: kotlin.String? = null
        /**
         * The name to be updated as part of the `UpdateSubscriptionTarget` action.
         */
        public var name: kotlin.String? = null
        /**
         * The provider to be updated as part of the `UpdateSubscriptionTarget` action.
         */
        public var provider: kotlin.String? = null
        /**
         * The configuration to be updated as part of the `UpdateSubscriptionTarget` action.
         */
        public var subscriptionTargetConfig: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.UpdateSubscriptionTargetRequest) : this() {
            this.applicableAssetTypes = x.applicableAssetTypes
            this.authorizedPrincipals = x.authorizedPrincipals
            this.domainIdentifier = x.domainIdentifier
            this.environmentIdentifier = x.environmentIdentifier
            this.identifier = x.identifier
            this.manageAccessRole = x.manageAccessRole
            this.name = x.name
            this.provider = x.provider
            this.subscriptionTargetConfig = x.subscriptionTargetConfig
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.datazone.model.UpdateSubscriptionTargetRequest = UpdateSubscriptionTargetRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy