sdk/java/src/main/java/com/pulumi/ovh/Dedicated/ServerNetworking.java
// *** 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.ovh.Dedicated;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.ovh.Dedicated.ServerNetworkingArgs;
import com.pulumi.ovh.Dedicated.inputs.ServerNetworkingState;
import com.pulumi.ovh.Dedicated.outputs.ServerNetworkingInterface;
import com.pulumi.ovh.Utilities;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;

/**
 * Manage dedicated server networking interface on SCALE and HIGH-GRADE range.
 * 
 * ## Import
 * 
 * A dedicated server networking configuration can be imported using the `service_name`. bash
 * 
 * ```sh
 *  $ pulumi import ovh:Dedicated/serverNetworking:ServerNetworking server service_name
 * ```
 * 
 */
@ResourceType(type="ovh:Dedicated/serverNetworking:ServerNetworking")
public class ServerNetworking extends com.pulumi.resources.CustomResource {
    /**
     * Operation description.
     * 
     */
    @Export(name="description", refs={String.class}, tree="[0]")
    private Output<String> description;

    /**
     * @return Operation description.
     * 
     */
    public Output<String> description() {
        return this.description;
    }
    /**
     * Interface or interfaces aggregation.
     * 
     */
    @Export(name="interfaces", refs={List.class,ServerNetworkingInterface.class}, tree="[0,1]")
    private Output<List<ServerNetworkingInterface>> interfaces;

    /**
     * @return Interface or interfaces aggregation.
     * 
     */
    public Output<List<ServerNetworkingInterface>> interfaces() {
        return this.interfaces;
    }
    /**
     * The service_name of your dedicated server. The full list of available dedicated servers can be found using the `ovh.getServers` datasource.
     * 
     */
    @Export(name="serviceName", refs={String.class}, tree="[0]")
    private Output<String> serviceName;

    /**
     * @return The service_name of your dedicated server. The full list of available dedicated servers can be found using the `ovh.getServers` datasource.
     * 
     */
    public Output<String> serviceName() {
        return this.serviceName;
    }
    /**
     * status of the networking configuration (should be `active`).
     * 
     */
    @Export(name="status", refs={String.class}, tree="[0]")
    private Output<String> status;

    /**
     * @return status of the networking configuration (should be `active`).
     * 
     */
    public Output<String> status() {
        return this.status;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public ServerNetworking(String name) {
        this(name, ServerNetworkingArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public ServerNetworking(String name, ServerNetworkingArgs 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 ServerNetworking(String name, ServerNetworkingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("ovh:Dedicated/serverNetworking:ServerNetworking", name, args == null ? ServerNetworkingArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private ServerNetworking(String name, Output<String> id, @Nullable ServerNetworkingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("ovh:Dedicated/serverNetworking:ServerNetworking", 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 ServerNetworking get(String name, Output<String> id, @Nullable ServerNetworkingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new ServerNetworking(name, id, state, options);
    }
}
