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

com.pulumi.awsnative.networkmanager.kotlin.outputs.GetConnectAttachmentResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.networkmanager.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property attachmentId The ID of the attachment.
 * @property attachmentPolicyRuleNumber The policy rule number associated with the attachment.
 * @property attachmentType The type of attachment.
 * @property coreNetworkArn The ARN of a core network.
 * @property createdAt Creation time of the attachment.
 * @property ownerAccountId The ID of the attachment account owner.
 * @property proposedSegmentChange The attachment to move from one segment to another.
 * @property resourceArn The attachment resource ARN.
 * @property segmentName The name of the segment attachment.
 * @property state State of the attachment.
 * @property tags Tags for the attachment.
 * @property updatedAt Last update time of the attachment.
 */
public data class GetConnectAttachmentResult(
    public val attachmentId: String? = null,
    public val attachmentPolicyRuleNumber: Int? = null,
    public val attachmentType: String? = null,
    public val coreNetworkArn: String? = null,
    public val createdAt: String? = null,
    public val ownerAccountId: String? = null,
    public val proposedSegmentChange: ConnectAttachmentProposedSegmentChange? = null,
    public val resourceArn: String? = null,
    public val segmentName: String? = null,
    public val state: String? = null,
    public val tags: List? = null,
    public val updatedAt: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.networkmanager.outputs.GetConnectAttachmentResult): GetConnectAttachmentResult = GetConnectAttachmentResult(
            attachmentId = javaType.attachmentId().map({ args0 -> args0 }).orElse(null),
            attachmentPolicyRuleNumber = javaType.attachmentPolicyRuleNumber().map({ args0 ->
                args0
            }).orElse(null),
            attachmentType = javaType.attachmentType().map({ args0 -> args0 }).orElse(null),
            coreNetworkArn = javaType.coreNetworkArn().map({ args0 -> args0 }).orElse(null),
            createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
            ownerAccountId = javaType.ownerAccountId().map({ args0 -> args0 }).orElse(null),
            proposedSegmentChange = javaType.proposedSegmentChange().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.networkmanager.kotlin.outputs.ConnectAttachmentProposedSegmentChange.Companion.toKotlin(args0)
                })
            }).orElse(null),
            resourceArn = javaType.resourceArn().map({ args0 -> args0 }).orElse(null),
            segmentName = javaType.segmentName().map({ args0 -> args0 }).orElse(null),
            state = javaType.state().map({ args0 -> args0 }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            updatedAt = javaType.updatedAt().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy