com.pulumi.azure.marketplace.kotlin.AgreementArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.marketplace.kotlin
import com.pulumi.azure.marketplace.AgreementArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Allows accepting the Legal Terms for a Marketplace Image.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const barracuda = new azure.marketplace.Agreement("barracuda", {
* publisher: "barracudanetworks",
* offer: "waf",
* plan: "hourly",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* barracuda = azure.marketplace.Agreement("barracuda",
* publisher="barracudanetworks",
* offer="waf",
* plan="hourly")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var barracuda = new Azure.Marketplace.Agreement("barracuda", new()
* {
* Publisher = "barracudanetworks",
* Offer = "waf",
* Plan = "hourly",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/marketplace"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := marketplace.NewAgreement(ctx, "barracuda", &marketplace.AgreementArgs{
* Publisher: pulumi.String("barracudanetworks"),
* Offer: pulumi.String("waf"),
* Plan: pulumi.String("hourly"),
* })
* 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.azure.marketplace.Agreement;
* import com.pulumi.azure.marketplace.AgreementArgs;
* 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 barracuda = new Agreement("barracuda", AgreementArgs.builder()
* .publisher("barracudanetworks")
* .offer("waf")
* .plan("hourly")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* barracuda:
* type: azure:marketplace:Agreement
* properties:
* publisher: barracudanetworks
* offer: waf
* plan: hourly
* ```
*
* ## Import
* Marketplace Agreement can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:marketplace/agreement:Agreement example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MarketplaceOrdering/agreements/publisher1/offers/offer1/plans/plan1
* ```
* @property offer The Offer of the Marketplace Image. Changing this forces a new resource to be created.
* @property plan The Plan of the Marketplace Image. Changing this forces a new resource to be created.
* @property publisher The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
*/
public data class AgreementArgs(
public val offer: Output? = null,
public val plan: Output? = null,
public val publisher: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.marketplace.AgreementArgs =
com.pulumi.azure.marketplace.AgreementArgs.builder()
.offer(offer?.applyValue({ args0 -> args0 }))
.plan(plan?.applyValue({ args0 -> args0 }))
.publisher(publisher?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AgreementArgs].
*/
@PulumiTagMarker
public class AgreementArgsBuilder internal constructor() {
private var offer: Output? = null
private var plan: Output? = null
private var publisher: Output? = null
/**
* @param value The Offer of the Marketplace Image. Changing this forces a new resource to be created.
*/
@JvmName("ngqhihflmvqiwyls")
public suspend fun offer(`value`: Output) {
this.offer = value
}
/**
* @param value The Plan of the Marketplace Image. Changing this forces a new resource to be created.
*/
@JvmName("rahkeojpdfnbwbfd")
public suspend fun plan(`value`: Output) {
this.plan = value
}
/**
* @param value The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
*/
@JvmName("idvinpogxnxdtldk")
public suspend fun publisher(`value`: Output) {
this.publisher = value
}
/**
* @param value The Offer of the Marketplace Image. Changing this forces a new resource to be created.
*/
@JvmName("bgalbkuenetxwgrl")
public suspend fun offer(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.offer = mapped
}
/**
* @param value The Plan of the Marketplace Image. Changing this forces a new resource to be created.
*/
@JvmName("dgxcpuhphaacvomb")
public suspend fun plan(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.plan = mapped
}
/**
* @param value The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
*/
@JvmName("maolctupqopyyrbt")
public suspend fun publisher(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publisher = mapped
}
internal fun build(): AgreementArgs = AgreementArgs(
offer = offer,
plan = plan,
publisher = publisher,
)
}