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

commonMain.aws.sdk.kotlin.services.wellarchitected.model.ShareInvitationSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.wellarchitected.model



/**
 * A share invitation summary return object.
 */
public class ShareInvitationSummary private constructor(builder: Builder) {
    /**
     * The ARN for the lens.
     */
    public val lensArn: kotlin.String? = builder.lensArn
    /**
     * The full name of the lens.
     */
    public val lensName: kotlin.String? = builder.lensName
    /**
     * Permission granted on a share request.
     */
    public val permissionType: aws.sdk.kotlin.services.wellarchitected.model.PermissionType? = builder.permissionType
    /**
     * The profile ARN.
     */
    public val profileArn: kotlin.String? = builder.profileArn
    /**
     * The profile name.
     */
    public val profileName: kotlin.String? = builder.profileName
    /**
     * The ID assigned to the share invitation.
     */
    public val shareInvitationId: kotlin.String? = builder.shareInvitationId
    /**
     * The resource type of the share invitation.
     */
    public val shareResourceType: aws.sdk.kotlin.services.wellarchitected.model.ShareResourceType? = builder.shareResourceType
    /**
     * An Amazon Web Services account ID.
     */
    public val sharedBy: kotlin.String? = builder.sharedBy
    /**
     * The Amazon Web Services account ID, IAM role, organization ID, or organizational unit (OU) ID with which the workload, lens, or profile is shared.
     */
    public val sharedWith: kotlin.String? = builder.sharedWith
    /**
     * The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
     */
    public val workloadId: kotlin.String? = builder.workloadId
    /**
     * The name of the workload.
     *
     * The name must be unique within an account within an Amazon Web Services Region. Spaces and capitalization are ignored when checking for uniqueness.
     */
    public val workloadName: kotlin.String? = builder.workloadName

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

    override fun toString(): kotlin.String = buildString {
        append("ShareInvitationSummary(")
        append("lensArn=$lensArn,")
        append("lensName=$lensName,")
        append("permissionType=$permissionType,")
        append("profileArn=$profileArn,")
        append("profileName=$profileName,")
        append("shareInvitationId=$shareInvitationId,")
        append("shareResourceType=$shareResourceType,")
        append("sharedBy=$sharedBy,")
        append("sharedWith=$sharedWith,")
        append("workloadId=$workloadId,")
        append("workloadName=$workloadName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = lensArn?.hashCode() ?: 0
        result = 31 * result + (lensName?.hashCode() ?: 0)
        result = 31 * result + (permissionType?.hashCode() ?: 0)
        result = 31 * result + (profileArn?.hashCode() ?: 0)
        result = 31 * result + (profileName?.hashCode() ?: 0)
        result = 31 * result + (shareInvitationId?.hashCode() ?: 0)
        result = 31 * result + (shareResourceType?.hashCode() ?: 0)
        result = 31 * result + (sharedBy?.hashCode() ?: 0)
        result = 31 * result + (sharedWith?.hashCode() ?: 0)
        result = 31 * result + (workloadId?.hashCode() ?: 0)
        result = 31 * result + (workloadName?.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 ShareInvitationSummary

        if (lensArn != other.lensArn) return false
        if (lensName != other.lensName) return false
        if (permissionType != other.permissionType) return false
        if (profileArn != other.profileArn) return false
        if (profileName != other.profileName) return false
        if (shareInvitationId != other.shareInvitationId) return false
        if (shareResourceType != other.shareResourceType) return false
        if (sharedBy != other.sharedBy) return false
        if (sharedWith != other.sharedWith) return false
        if (workloadId != other.workloadId) return false
        if (workloadName != other.workloadName) return false

        return true
    }

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

    public class Builder {
        /**
         * The ARN for the lens.
         */
        public var lensArn: kotlin.String? = null
        /**
         * The full name of the lens.
         */
        public var lensName: kotlin.String? = null
        /**
         * Permission granted on a share request.
         */
        public var permissionType: aws.sdk.kotlin.services.wellarchitected.model.PermissionType? = null
        /**
         * The profile ARN.
         */
        public var profileArn: kotlin.String? = null
        /**
         * The profile name.
         */
        public var profileName: kotlin.String? = null
        /**
         * The ID assigned to the share invitation.
         */
        public var shareInvitationId: kotlin.String? = null
        /**
         * The resource type of the share invitation.
         */
        public var shareResourceType: aws.sdk.kotlin.services.wellarchitected.model.ShareResourceType? = null
        /**
         * An Amazon Web Services account ID.
         */
        public var sharedBy: kotlin.String? = null
        /**
         * The Amazon Web Services account ID, IAM role, organization ID, or organizational unit (OU) ID with which the workload, lens, or profile is shared.
         */
        public var sharedWith: kotlin.String? = null
        /**
         * The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
         */
        public var workloadId: kotlin.String? = null
        /**
         * The name of the workload.
         *
         * The name must be unique within an account within an Amazon Web Services Region. Spaces and capitalization are ignored when checking for uniqueness.
         */
        public var workloadName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ShareInvitationSummary) : this() {
            this.lensArn = x.lensArn
            this.lensName = x.lensName
            this.permissionType = x.permissionType
            this.profileArn = x.profileArn
            this.profileName = x.profileName
            this.shareInvitationId = x.shareInvitationId
            this.shareResourceType = x.shareResourceType
            this.sharedBy = x.sharedBy
            this.sharedWith = x.sharedWith
            this.workloadId = x.workloadId
            this.workloadName = x.workloadName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy