// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.securitycenter;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.securitycenter.SubscriptionPricingArgs;
import com.pulumi.azure.securitycenter.inputs.SubscriptionPricingState;
import com.pulumi.azure.securitycenter.outputs.SubscriptionPricingExtension;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages the Pricing Tier for Azure Security Center in the current subscription.
 * 
 * &gt; **NOTE:** Deletion of this resource will reset the pricing tier to `Free`
 * 
 * ## Example Usage
 * ```java
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.securitycenter.SubscriptionPricing;
 * import com.pulumi.azure.securitycenter.SubscriptionPricingArgs;
 * 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 example = new SubscriptionPricing(&#34;example&#34;, SubscriptionPricingArgs.builder()        
 *             .resourceType(&#34;VirtualMachines&#34;)
 *             .tier(&#34;Standard&#34;)
 *             .build());
 * 
 *     }
 * }
 * ```
 * 
 * ## Import
 * 
 * The pricing tier can be imported using the `resource id`, e.g.
 * 
 * ```sh
 *  $ pulumi import azure:securitycenter/subscriptionPricing:SubscriptionPricing example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/pricings/&lt;resource_type&gt;
 * ```
 * 
 */
@ResourceType(type="azure:securitycenter/subscriptionPricing:SubscriptionPricing")
public class SubscriptionPricing extends com.pulumi.resources.CustomResource {
    /**
     * One or more `extension` blocks as defined below.
     * 
     */
    @Export(name="extensions", refs={List.class,SubscriptionPricingExtension.class}, tree="[0,1]")
    private Output</* @Nullable */ List<SubscriptionPricingExtension>> extensions;

    /**
     * @return One or more `extension` blocks as defined below.
     * 
     */
    public Output<Optional<List<SubscriptionPricingExtension>>> extensions() {
        return Codegen.optional(this.extensions);
    }
    /**
     * The resource type this setting affects. Possible values are `Api`, `AppServices`, `ContainerRegistry`, `KeyVaults`, `KubernetesService`, `SqlServers`, `SqlServerVirtualMachines`, `StorageAccounts`, `VirtualMachines`, `Arm`, `Dns`, `OpenSourceRelationalDatabases`, `Containers`, `CosmosDbs` and `CloudPosture`. Defaults to `VirtualMachines`
     * 
     */
    @Export(name="resourceType", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> resourceType;

    /**
     * @return The resource type this setting affects. Possible values are `Api`, `AppServices`, `ContainerRegistry`, `KeyVaults`, `KubernetesService`, `SqlServers`, `SqlServerVirtualMachines`, `StorageAccounts`, `VirtualMachines`, `Arm`, `Dns`, `OpenSourceRelationalDatabases`, `Containers`, `CosmosDbs` and `CloudPosture`. Defaults to `VirtualMachines`
     * 
     */
    public Output<Optional<String>> resourceType() {
        return Codegen.optional(this.resourceType);
    }
    /**
     * Resource type pricing subplan. Contact your MSFT representative for possible values.
     * 
     */
    @Export(name="subplan", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> subplan;

    /**
     * @return Resource type pricing subplan. Contact your MSFT representative for possible values.
     * 
     */
    public Output<Optional<String>> subplan() {
        return Codegen.optional(this.subplan);
    }
    /**
     * The pricing tier to use. Possible values are `Free` and `Standard`.
     * 
     */
    @Export(name="tier", refs={String.class}, tree="[0]")
    private Output<String> tier;

    /**
     * @return The pricing tier to use. Possible values are `Free` and `Standard`.
     * 
     */
    public Output<String> tier() {
        return this.tier;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public SubscriptionPricing(String name) {
        this(name, SubscriptionPricingArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public SubscriptionPricing(String name, SubscriptionPricingArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public SubscriptionPricing(String name, SubscriptionPricingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:securitycenter/subscriptionPricing:SubscriptionPricing", name, args == null ? SubscriptionPricingArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private SubscriptionPricing(String name, Output<String> id, @Nullable SubscriptionPricingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:securitycenter/subscriptionPricing:SubscriptionPricing", name, state, makeResourceOptions(options, id));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output<String> id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static SubscriptionPricing get(String name, Output<String> id, @Nullable SubscriptionPricingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new SubscriptionPricing(name, id, state, options);
    }
}
