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

com.pulumi.azurenative.analysisservices.ServerDetails Maven / Gradle / Ivy

There is a newer version: 2.78.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.analysisservices;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.analysisservices.ServerDetailsArgs;
import com.pulumi.azurenative.analysisservices.outputs.GatewayDetailsResponse;
import com.pulumi.azurenative.analysisservices.outputs.IPv4FirewallSettingsResponse;
import com.pulumi.azurenative.analysisservices.outputs.ResourceSkuResponse;
import com.pulumi.azurenative.analysisservices.outputs.ServerAdministratorsResponse;
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;

/**
 * Represents an instance of an Analysis Services resource.
 * Azure REST API version: 2017-08-01. Prior API version in Azure Native 1.x: 2017-08-01.
 * 
 * Other available API versions: 2017-08-01-beta.
 * 
 * ## Example Usage
 * ### Create a server.
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.analysisservices.ServerDetails;
 * import com.pulumi.azurenative.analysisservices.ServerDetailsArgs;
 * import com.pulumi.azurenative.analysisservices.inputs.ServerAdministratorsArgs;
 * import com.pulumi.azurenative.analysisservices.inputs.ResourceSkuArgs;
 * 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 }{{@code
 *     public static void main(String[] args) }{{@code
 *         Pulumi.run(App::stack);
 *     }}{@code
 * 
 *     public static void stack(Context ctx) }{{@code
 *         var serverDetails = new ServerDetails("serverDetails", ServerDetailsArgs.builder()
 *             .asAdministrators(ServerAdministratorsArgs.builder()
 *                 .members(                
 *                     "azsdktest}{@literal @}{@code microsoft.com",
 *                     "azsdktest2}{@literal @}{@code microsoft.com")
 *                 .build())
 *             .location("West US")
 *             .resourceGroupName("TestRG")
 *             .serverName("azsdktest")
 *             .sku(ResourceSkuArgs.builder()
 *                 .capacity(1)
 *                 .name("S1")
 *                 .tier("Standard")
 *                 .build())
 *             .tags(Map.of("testKey", "testValue"))
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:analysisservices:ServerDetails azsdktest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName} * ``` * */ @ResourceType(type="azure-native:analysisservices:ServerDetails") public class ServerDetails extends com.pulumi.resources.CustomResource { /** * A collection of AS server administrators * */ @Export(name="asAdministrators", refs={ServerAdministratorsResponse.class}, tree="[0]") private Output asAdministrators; /** * @return A collection of AS server administrators * */ public Output> asAdministrators() { return Codegen.optional(this.asAdministrators); } /** * The SAS container URI to the backup container. * */ @Export(name="backupBlobContainerUri", refs={String.class}, tree="[0]") private Output backupBlobContainerUri; /** * @return The SAS container URI to the backup container. * */ public Output> backupBlobContainerUri() { return Codegen.optional(this.backupBlobContainerUri); } /** * The gateway details configured for the AS server. * */ @Export(name="gatewayDetails", refs={GatewayDetailsResponse.class}, tree="[0]") private Output gatewayDetails; /** * @return The gateway details configured for the AS server. * */ public Output> gatewayDetails() { return Codegen.optional(this.gatewayDetails); } /** * The firewall settings for the AS server. * */ @Export(name="ipV4FirewallSettings", refs={IPv4FirewallSettingsResponse.class}, tree="[0]") private Output ipV4FirewallSettings; /** * @return The firewall settings for the AS server. * */ public Output> ipV4FirewallSettings() { return Codegen.optional(this.ipV4FirewallSettings); } /** * Location of the Analysis Services resource. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Location of the Analysis Services resource. * */ public Output location() { return this.location; } /** * The managed mode of the server (0 = not managed, 1 = managed). * */ @Export(name="managedMode", refs={Integer.class}, tree="[0]") private Output managedMode; /** * @return The managed mode of the server (0 = not managed, 1 = managed). * */ public Output> managedMode() { return Codegen.optional(this.managedMode); } /** * The name of the Analysis Services resource. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the Analysis Services resource. * */ public Output name() { return this.name; } /** * The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning. * */ public Output provisioningState() { return this.provisioningState; } /** * How the read-write server's participation in the query pool is controlled.<br/>It can have the following values: <ul><li>readOnly - indicates that the read-write server is intended not to participate in query operations</li><li>all - indicates that the read-write server can participate in query operations</li></ul>Specifying readOnly when capacity is 1 results in error. * */ @Export(name="querypoolConnectionMode", refs={String.class}, tree="[0]") private Output querypoolConnectionMode; /** * @return How the read-write server's participation in the query pool is controlled.<br/>It can have the following values: <ul><li>readOnly - indicates that the read-write server is intended not to participate in query operations</li><li>all - indicates that the read-write server can participate in query operations</li></ul>Specifying readOnly when capacity is 1 results in error. * */ public Output> querypoolConnectionMode() { return Codegen.optional(this.querypoolConnectionMode); } /** * The full name of the Analysis Services resource. * */ @Export(name="serverFullName", refs={String.class}, tree="[0]") private Output serverFullName; /** * @return The full name of the Analysis Services resource. * */ public Output serverFullName() { return this.serverFullName; } /** * The server monitor mode for AS server * */ @Export(name="serverMonitorMode", refs={Integer.class}, tree="[0]") private Output serverMonitorMode; /** * @return The server monitor mode for AS server * */ public Output> serverMonitorMode() { return Codegen.optional(this.serverMonitorMode); } /** * The SKU of the Analysis Services resource. * */ @Export(name="sku", refs={ResourceSkuResponse.class}, tree="[0]") private Output sku; /** * @return The SKU of the Analysis Services resource. * */ public Output sku() { return this.sku; } /** * The current state of Analysis Services resource. The state is to indicate more states outside of resource provisioning. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return The current state of Analysis Services resource. The state is to indicate more states outside of resource provisioning. * */ public Output state() { return this.state; } /** * Key-value pairs of additional resource provisioning properties. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Key-value pairs of additional resource provisioning properties. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of the Analysis Services resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the Analysis Services resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public ServerDetails(java.lang.String name) { this(name, ServerDetailsArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ServerDetails(java.lang.String name, ServerDetailsArgs 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 ServerDetails(java.lang.String name, ServerDetailsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:analysisservices:ServerDetails", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ServerDetails(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:analysisservices:ServerDetails", name, null, makeResourceOptions(options, id), false); } private static ServerDetailsArgs makeArgs(ServerDetailsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ServerDetailsArgs.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:analysisservices/v20160516:ServerDetails").build()), Output.of(Alias.builder().type("azure-native:analysisservices/v20170714:ServerDetails").build()), Output.of(Alias.builder().type("azure-native:analysisservices/v20170801:ServerDetails").build()), Output.of(Alias.builder().type("azure-native:analysisservices/v20170801beta:ServerDetails").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 ServerDetails get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ServerDetails(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy