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

com.pulumi.ns1.Dnsview Maven / Gradle / Ivy

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

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.ns1.DnsviewArgs;
import com.pulumi.ns1.Utilities;
import com.pulumi.ns1.inputs.DnsviewState;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

@ResourceType(type="ns1:index/dnsview:Dnsview")
public class Dnsview extends com.pulumi.resources.CustomResource {
    @Export(name="createdAt", refs={Integer.class}, tree="[0]")
    private Output createdAt;

    public Output createdAt() {
        return this.createdAt;
    }
    @Export(name="name", refs={String.class}, tree="[0]")
    private Output name;

    public Output name() {
        return this.name;
    }
    @Export(name="networks", refs={List.class,Integer.class}, tree="[0,1]")
    private Output> networks;

    public Output>> networks() {
        return Codegen.optional(this.networks);
    }
    @Export(name="preference", refs={Integer.class}, tree="[0]")
    private Output preference;

    public Output preference() {
        return this.preference;
    }
    @Export(name="readAcls", refs={List.class,String.class}, tree="[0,1]")
    private Output> readAcls;

    public Output>> readAcls() {
        return Codegen.optional(this.readAcls);
    }
    @Export(name="updateAcls", refs={List.class,String.class}, tree="[0,1]")
    private Output> updateAcls;

    public Output>> updateAcls() {
        return Codegen.optional(this.updateAcls);
    }
    @Export(name="updatedAt", refs={Integer.class}, tree="[0]")
    private Output updatedAt;

    public Output updatedAt() {
        return this.updatedAt;
    }
    @Export(name="zones", refs={List.class,String.class}, tree="[0,1]")
    private Output> zones;

    public Output>> zones() {
        return Codegen.optional(this.zones);
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public Dnsview(java.lang.String name) {
        this(name, DnsviewArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public Dnsview(java.lang.String name, @Nullable DnsviewArgs 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 Dnsview(java.lang.String name, @Nullable DnsviewArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("ns1:index/dnsview:Dnsview", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private Dnsview(java.lang.String name, Output id, @Nullable DnsviewState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("ns1:index/dnsview:Dnsview", name, state, makeResourceOptions(options, id), false);
    }

    private static DnsviewArgs makeArgs(@Nullable DnsviewArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? DnsviewArgs.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())
            .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 Dnsview get(java.lang.String name, Output id, @Nullable DnsviewState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new Dnsview(name, id, state, options);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy