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

com.pulumi.azurenative.customerinsights.Hub Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.azurenative.customerinsights;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.customerinsights.HubArgs;
import com.pulumi.azurenative.customerinsights.outputs.HubBillingInfoFormatResponse;
import com.pulumi.core.Alias;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Hub resource.
 * Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.
 * 
 * ## Example Usage
 * ### Hubs_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.customerinsights.Hub;
 * import com.pulumi.azurenative.customerinsights.HubArgs;
 * import com.pulumi.azurenative.customerinsights.inputs.HubBillingInfoFormatArgs;
 * 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 hub = new Hub("hub", HubArgs.builder()
 *             .hubBillingInfo(HubBillingInfoFormatArgs.builder()
 *                 .maxUnits(5)
 *                 .minUnits(1)
 *                 .skuName("B0")
 *                 .build())
 *             .hubName("sdkTestHub")
 *             .location("West US")
 *             .resourceGroupName("TestHubRG")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:customerinsights:Hub testHub2839 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName} * ``` * */ @ResourceType(type="azure-native:customerinsights:Hub") public class Hub extends com.pulumi.resources.CustomResource { /** * API endpoint URL of the hub. * */ @Export(name="apiEndpoint", refs={String.class}, tree="[0]") private Output apiEndpoint; /** * @return API endpoint URL of the hub. * */ public Output apiEndpoint() { return this.apiEndpoint; } /** * Billing settings of the hub. * */ @Export(name="hubBillingInfo", refs={HubBillingInfoFormatResponse.class}, tree="[0]") private Output hubBillingInfo; /** * @return Billing settings of the hub. * */ public Output> hubBillingInfo() { return Codegen.optional(this.hubBillingInfo); } /** * Resource location. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource location. * */ public Output> location() { return Codegen.optional(this.location); } /** * Resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name. * */ public Output name() { return this.name; } /** * Provisioning state of the hub. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state of the hub. * */ public Output provisioningState() { return this.provisioningState; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0. * */ @Export(name="tenantFeatures", refs={Integer.class}, tree="[0]") private Output tenantFeatures; /** * @return The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0. * */ public Output> tenantFeatures() { return Codegen.optional(this.tenantFeatures); } /** * Resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type. * */ public Output type() { return this.type; } /** * Web endpoint URL of the hub. * */ @Export(name="webEndpoint", refs={String.class}, tree="[0]") private Output webEndpoint; /** * @return Web endpoint URL of the hub. * */ public Output webEndpoint() { return this.webEndpoint; } /** * * @param name The _unique_ name of the resulting resource. */ public Hub(java.lang.String name) { this(name, HubArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Hub(java.lang.String name, HubArgs 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 Hub(java.lang.String name, HubArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:Hub", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Hub(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:Hub", name, null, makeResourceOptions(options, id), false); } private static HubArgs makeArgs(HubArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? HubArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:customerinsights/v20170101:Hub").build()), Output.of(Alias.builder().type("azure-native:customerinsights/v20170426:Hub").build()) )) .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 options Optional settings to control the behavior of the CustomResource. */ public static Hub get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Hub(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy