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

com.pulumi.alicloud.ecs.kotlin.outputs.GetEipAddressesResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.ecs.kotlin.outputs

import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * A collection of values returned by getEipAddresses.
 * @property addressName
 * @property addresses
 * @property associatedInstanceId
 * @property associatedInstanceType
 * @property dryRun
 * @property eips
 * @property enableDetails
 * @property id The provider-assigned unique ID for this managed resource.
 * @property ids
 * @property includeReservationData
 * @property ipAddress
 * @property ipAddresses
 * @property isp
 * @property lockReason
 * @property nameRegex
 * @property names
 * @property outputFile
 * @property paymentType
 * @property resourceGroupId
 * @property segmentInstanceId
 * @property status
 * @property tags
 */
public data class GetEipAddressesResult(
    public val addressName: String? = null,
    public val addresses: List,
    public val associatedInstanceId: String? = null,
    public val associatedInstanceType: String? = null,
    public val dryRun: Boolean? = null,
    @Deprecated(
        message = """
  Field 'eips' has been deprecated from provider version 1.126.0 and it will be removed in the
      future version. Please use the new attribute 'addresses' instead.
  """,
    )
    public val eips: List,
    public val enableDetails: Boolean? = null,
    public val id: String,
    public val ids: List,
    public val includeReservationData: Boolean? = null,
    public val ipAddress: String? = null,
    @Deprecated(
        message = """
  Field 'ip_addresses' has been deprecated from provider version 1.126.0 and it will be removed in
      the future version. Please use the new attribute 'ip_address' instead.
  """,
    )
    public val ipAddresses: List? = null,
    public val isp: String? = null,
    public val lockReason: String? = null,
    public val nameRegex: String? = null,
    public val names: List,
    public val outputFile: String? = null,
    public val paymentType: String? = null,
    public val resourceGroupId: String? = null,
    public val segmentInstanceId: String? = null,
    public val status: String? = null,
    public val tags: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.alicloud.ecs.outputs.GetEipAddressesResult): GetEipAddressesResult = GetEipAddressesResult(
            addressName = javaType.addressName().map({ args0 -> args0 }).orElse(null),
            addresses = javaType.addresses().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.alicloud.ecs.kotlin.outputs.GetEipAddressesAddress.Companion.toKotlin(args0)
                })
            }),
            associatedInstanceId = javaType.associatedInstanceId().map({ args0 -> args0 }).orElse(null),
            associatedInstanceType = javaType.associatedInstanceType().map({ args0 -> args0 }).orElse(null),
            dryRun = javaType.dryRun().map({ args0 -> args0 }).orElse(null),
            eips = javaType.eips().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.alicloud.ecs.kotlin.outputs.GetEipAddressesEip.Companion.toKotlin(args0)
                })
            }),
            enableDetails = javaType.enableDetails().map({ args0 -> args0 }).orElse(null),
            id = javaType.id(),
            ids = javaType.ids().map({ args0 -> args0 }),
            includeReservationData = javaType.includeReservationData().map({ args0 -> args0 }).orElse(null),
            ipAddress = javaType.ipAddress().map({ args0 -> args0 }).orElse(null),
            ipAddresses = javaType.ipAddresses().map({ args0 -> args0 }),
            isp = javaType.isp().map({ args0 -> args0 }).orElse(null),
            lockReason = javaType.lockReason().map({ args0 -> args0 }).orElse(null),
            nameRegex = javaType.nameRegex().map({ args0 -> args0 }).orElse(null),
            names = javaType.names().map({ args0 -> args0 }),
            outputFile = javaType.outputFile().map({ args0 -> args0 }).orElse(null),
            paymentType = javaType.paymentType().map({ args0 -> args0 }).orElse(null),
            resourceGroupId = javaType.resourceGroupId().map({ args0 -> args0 }).orElse(null),
            segmentInstanceId = javaType.segmentInstanceId().map({ args0 -> args0 }).orElse(null),
            status = javaType.status().map({ args0 -> args0 }).orElse(null),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy