sdk/java/src/main/java/com/pulumi/ovh/Ip/Reverse.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.Ip;

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.Ip.ReverseArgs;
import com.pulumi.ovh.Ip.inputs.ReverseState;
import com.pulumi.ovh.Utilities;
import java.lang.String;
import javax.annotation.Nullable;

/**
 * Provides a OVHcloud IP reverse.
 * 
 * ## Example Usage
 * ```java
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.ovh.Ip.Reverse;
 * import com.pulumi.ovh.Ip.ReverseArgs;
 * 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 test = new Reverse(&#34;test&#34;, ReverseArgs.builder()        
 *             .ip(&#34;192.0.2.0/24&#34;)
 *             .ReverseIp(&#34;192.0.2.1&#34;)
 *             .ReverseValue(&#34;example.com&#34;)
 *             .build());
 * 
 *     }
 * }
 * ```
 * 
 * ## Import
 * 
 * The resource can be imported using the `ip`, `ip_reverse` of the address, separated by &#34;|&#34; E.g., bash
 * 
 * ```sh
 *  $ pulumi import ovh:Ip/reverse:Reverse my_reverse &#39;2001:0db8:c0ff:ee::/64|2001:0db8:c0ff:ee::42&#39;
 * ```
 * 
 */
@ResourceType(type="ovh:Ip/reverse:Reverse")
public class Reverse extends com.pulumi.resources.CustomResource {
    /**
     * The IP to set the reverse of
     * 
     */
    @Export(name="ReverseIp", refs={String.class}, tree="[0]")
    private Output<String> ReverseIp;

    /**
     * @return The IP to set the reverse of
     * 
     */
    public Output<String> ReverseIp() {
        return this.ReverseIp;
    }
    /**
     * The value of the reverse
     * 
     */
    @Export(name="ReverseValue", refs={String.class}, tree="[0]")
    private Output<String> ReverseValue;

    /**
     * @return The value of the reverse
     * 
     */
    public Output<String> ReverseValue() {
        return this.ReverseValue;
    }
    /**
     * The IP block to which the IP belongs
     * 
     */
    @Export(name="ip", refs={String.class}, tree="[0]")
    private Output<String> ip;

    /**
     * @return The IP block to which the IP belongs
     * 
     */
    public Output<String> ip() {
        return this.ip;
    }

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

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