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

com.pulumi.azurenative.orbital.kotlin.SpacecraftArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.orbital.kotlin

import com.pulumi.azurenative.orbital.SpacecraftArgs.builder
import com.pulumi.azurenative.orbital.kotlin.inputs.SpacecraftLinkArgs
import com.pulumi.azurenative.orbital.kotlin.inputs.SpacecraftLinkArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Customer creates a spacecraft resource to schedule a contact.
 * Azure REST API version: 2022-11-01.
 * Other available API versions: 2022-03-01.
 * ## Example Usage
 * ### Create a spacecraft
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var spacecraft = new AzureNative.Orbital.Spacecraft("spacecraft", new()
 *     {
 *         Links = new[]
 *         {
 *             new AzureNative.Orbital.Inputs.SpacecraftLinkArgs
 *             {
 *                 BandwidthMHz = 2,
 *                 CenterFrequencyMHz = 2250,
 *                 Direction = AzureNative.Orbital.Direction.Uplink,
 *                 Name = "uplink_lhcp1",
 *                 Polarization = AzureNative.Orbital.Polarization.LHCP,
 *             },
 *             new AzureNative.Orbital.Inputs.SpacecraftLinkArgs
 *             {
 *                 BandwidthMHz = 15,
 *                 CenterFrequencyMHz = 8160,
 *                 Direction = AzureNative.Orbital.Direction.Downlink,
 *                 Name = "downlink_rhcp1",
 *                 Polarization = AzureNative.Orbital.Polarization.RHCP,
 *             },
 *         },
 *         Location = "eastus2",
 *         NoradId = "36411",
 *         ResourceGroupName = "contoso-Rgp",
 *         SpacecraftName = "CONTOSO_SAT",
 *         TitleLine = "CONTOSO_SAT",
 *         TleLine1 = "1 27424U 02022A   22167.05119303  .00000638  00000+0  15103-3 0  9994",
 *         TleLine2 = "2 27424  98.2477 108.9546 0000928  92.9194 327.0802 14.57300770 69982",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	orbital "github.com/pulumi/pulumi-azure-native-sdk/orbital/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := orbital.NewSpacecraft(ctx, "spacecraft", &orbital.SpacecraftArgs{
 * 			Links: orbital.SpacecraftLinkArray{
 * 				&orbital.SpacecraftLinkArgs{
 * 					BandwidthMHz:       pulumi.Float64(2),
 * 					CenterFrequencyMHz: pulumi.Float64(2250),
 * 					Direction:          pulumi.String(orbital.DirectionUplink),
 * 					Name:               pulumi.String("uplink_lhcp1"),
 * 					Polarization:       pulumi.String(orbital.PolarizationLHCP),
 * 				},
 * 				&orbital.SpacecraftLinkArgs{
 * 					BandwidthMHz:       pulumi.Float64(15),
 * 					CenterFrequencyMHz: pulumi.Float64(8160),
 * 					Direction:          pulumi.String(orbital.DirectionDownlink),
 * 					Name:               pulumi.String("downlink_rhcp1"),
 * 					Polarization:       pulumi.String(orbital.PolarizationRHCP),
 * 				},
 * 			},
 * 			Location:          pulumi.String("eastus2"),
 * 			NoradId:           pulumi.String("36411"),
 * 			ResourceGroupName: pulumi.String("contoso-Rgp"),
 * 			SpacecraftName:    pulumi.String("CONTOSO_SAT"),
 * 			TitleLine:         pulumi.String("CONTOSO_SAT"),
 * 			TleLine1:          pulumi.String("1 27424U 02022A   22167.05119303  .00000638  00000+0  15103-3 0  9994"),
 * 			TleLine2:          pulumi.String("2 27424  98.2477 108.9546 0000928  92.9194 327.0802 14.57300770 69982"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.orbital.Spacecraft;
 * import com.pulumi.azurenative.orbital.SpacecraftArgs;
 * import com.pulumi.azurenative.orbital.inputs.SpacecraftLinkArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var spacecraft = new Spacecraft("spacecraft", SpacecraftArgs.builder()
 *             .links(
 *                 SpacecraftLinkArgs.builder()
 *                     .bandwidthMHz(2)
 *                     .centerFrequencyMHz(2250)
 *                     .direction("Uplink")
 *                     .name("uplink_lhcp1")
 *                     .polarization("LHCP")
 *                     .build(),
 *                 SpacecraftLinkArgs.builder()
 *                     .bandwidthMHz(15)
 *                     .centerFrequencyMHz(8160)
 *                     .direction("Downlink")
 *                     .name("downlink_rhcp1")
 *                     .polarization("RHCP")
 *                     .build())
 *             .location("eastus2")
 *             .noradId("36411")
 *             .resourceGroupName("contoso-Rgp")
 *             .spacecraftName("CONTOSO_SAT")
 *             .titleLine("CONTOSO_SAT")
 *             .tleLine1("1 27424U 02022A   22167.05119303  .00000638  00000+0  15103-3 0  9994")
 *             .tleLine2("2 27424  98.2477 108.9546 0000928  92.9194 327.0802 14.57300770 69982")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:orbital:Spacecraft CONTOSO_SAT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Orbital/spacecrafts/{spacecraftName}
 * ```
 * @property links Immutable list of Spacecraft links.
 * @property location The geo-location where the resource lives
 * @property noradId NORAD ID of the spacecraft.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property spacecraftName Spacecraft ID.
 * @property tags Resource tags.
 * @property titleLine Title line of the two-line element set (TLE).
 * @property tleLine1 Line 1 of the two-line element set (TLE).
 * @property tleLine2 Line 2 of the two-line element set (TLE).
 */
public data class SpacecraftArgs(
    public val links: Output>? = null,
    public val location: Output? = null,
    public val noradId: Output? = null,
    public val resourceGroupName: Output? = null,
    public val spacecraftName: Output? = null,
    public val tags: Output>? = null,
    public val titleLine: Output? = null,
    public val tleLine1: Output? = null,
    public val tleLine2: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.orbital.SpacecraftArgs =
        com.pulumi.azurenative.orbital.SpacecraftArgs.builder()
            .links(links?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .noradId(noradId?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .spacecraftName(spacecraftName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .titleLine(titleLine?.applyValue({ args0 -> args0 }))
            .tleLine1(tleLine1?.applyValue({ args0 -> args0 }))
            .tleLine2(tleLine2?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SpacecraftArgs].
 */
@PulumiTagMarker
public class SpacecraftArgsBuilder internal constructor() {
    private var links: Output>? = null

    private var location: Output? = null

    private var noradId: Output? = null

    private var resourceGroupName: Output? = null

    private var spacecraftName: Output? = null

    private var tags: Output>? = null

    private var titleLine: Output? = null

    private var tleLine1: Output? = null

    private var tleLine2: Output? = null

    /**
     * @param value Immutable list of Spacecraft links.
     */
    @JvmName("hgtdvgfncaxcccvq")
    public suspend fun links(`value`: Output>) {
        this.links = value
    }

    @JvmName("qibqmwqsysgimdhs")
    public suspend fun links(vararg values: Output) {
        this.links = Output.all(values.asList())
    }

    /**
     * @param values Immutable list of Spacecraft links.
     */
    @JvmName("lcmgirsaocwqxkei")
    public suspend fun links(values: List>) {
        this.links = Output.all(values)
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("ejkowhbpcwpovjbd")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value NORAD ID of the spacecraft.
     */
    @JvmName("wqhsglsqrmuiplly")
    public suspend fun noradId(`value`: Output) {
        this.noradId = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("ntpkcspkgnqsgdal")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Spacecraft ID.
     */
    @JvmName("eodkgwnbvglgiuli")
    public suspend fun spacecraftName(`value`: Output) {
        this.spacecraftName = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("thsjtdgmaimrgtys")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Title line of the two-line element set (TLE).
     */
    @JvmName("rwtajlmacbysrokt")
    public suspend fun titleLine(`value`: Output) {
        this.titleLine = value
    }

    /**
     * @param value Line 1 of the two-line element set (TLE).
     */
    @JvmName("lugysrffhkmnfcuf")
    public suspend fun tleLine1(`value`: Output) {
        this.tleLine1 = value
    }

    /**
     * @param value Line 2 of the two-line element set (TLE).
     */
    @JvmName("qarjtteeltavxgem")
    public suspend fun tleLine2(`value`: Output) {
        this.tleLine2 = value
    }

    /**
     * @param value Immutable list of Spacecraft links.
     */
    @JvmName("maayidlkitxgdtqs")
    public suspend fun links(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.links = mapped
    }

    /**
     * @param argument Immutable list of Spacecraft links.
     */
    @JvmName("bxrihncweuvijwbb")
    public suspend fun links(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SpacecraftLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param argument Immutable list of Spacecraft links.
     */
    @JvmName("eksaxyepjhlalhqy")
    public suspend fun links(vararg argument: suspend SpacecraftLinkArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SpacecraftLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param argument Immutable list of Spacecraft links.
     */
    @JvmName("bjxsebhcklxgojxn")
    public suspend fun links(argument: suspend SpacecraftLinkArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SpacecraftLinkArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param values Immutable list of Spacecraft links.
     */
    @JvmName("ykoyepctqhluueyu")
    public suspend fun links(vararg values: SpacecraftLinkArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.links = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("fexsisjdikbqcgak")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value NORAD ID of the spacecraft.
     */
    @JvmName("xusyjrcaapfykopm")
    public suspend fun noradId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.noradId = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("gmgidosiixppypvl")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Spacecraft ID.
     */
    @JvmName("ysgrtfbryhxxtuko")
    public suspend fun spacecraftName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.spacecraftName = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("hctxquroyobdyldu")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("xynmgdfoaaevpsyj")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Title line of the two-line element set (TLE).
     */
    @JvmName("ytniqfswcyhfvyio")
    public suspend fun titleLine(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.titleLine = mapped
    }

    /**
     * @param value Line 1 of the two-line element set (TLE).
     */
    @JvmName("iurcbxgehprfmwgf")
    public suspend fun tleLine1(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tleLine1 = mapped
    }

    /**
     * @param value Line 2 of the two-line element set (TLE).
     */
    @JvmName("iwdxidtpkvovxmim")
    public suspend fun tleLine2(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tleLine2 = mapped
    }

    internal fun build(): SpacecraftArgs = SpacecraftArgs(
        links = links,
        location = location,
        noradId = noradId,
        resourceGroupName = resourceGroupName,
        spacecraftName = spacecraftName,
        tags = tags,
        titleLine = titleLine,
        tleLine1 = tleLine1,
        tleLine2 = tleLine2,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy