// *** 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.azure.network.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class IPGroupState extends com.pulumi.resources.ResourceArgs {

    public static final IPGroupState Empty = new IPGroupState();

    @Import(name="cidrs")
    private @Nullable Output<List<String>> cidrs;

    public Optional<Output<List<String>>> cidrs() {
        return Optional.ofNullable(this.cidrs);
    }

    /**
     * A `firewall_ids` block as defined below.
     * 
     */
    @Import(name="firewallIds")
    private @Nullable Output<List<String>> firewallIds;

    /**
     * @return A `firewall_ids` block as defined below.
     * 
     */
    public Optional<Output<List<String>>> firewallIds() {
        return Optional.ofNullable(this.firewallIds);
    }

    /**
     * A `firewall_policy_ids` block as defined below.
     * 
     */
    @Import(name="firewallPolicyIds")
    private @Nullable Output<List<String>> firewallPolicyIds;

    /**
     * @return A `firewall_policy_ids` block as defined below.
     * 
     */
    public Optional<Output<List<String>>> firewallPolicyIds() {
        return Optional.ofNullable(this.firewallPolicyIds);
    }

    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output<String> location;

    /**
     * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies the name of the IP group. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return Specifies the name of the IP group. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the resource group in which to create the IP group. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output<String> resourceGroupName;

    /**
     * @return The name of the resource group in which to create the IP group. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output<Map<String,String>> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional<Output<Map<String,String>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private IPGroupState() {}

    private IPGroupState(IPGroupState $) {
        this.cidrs = $.cidrs;
        this.firewallIds = $.firewallIds;
        this.firewallPolicyIds = $.firewallPolicyIds;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(IPGroupState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private IPGroupState $;

        public Builder() {
            $ = new IPGroupState();
        }

        public Builder(IPGroupState defaults) {
            $ = new IPGroupState(Objects.requireNonNull(defaults));
        }

        public Builder cidrs(@Nullable Output<List<String>> cidrs) {
            $.cidrs = cidrs;
            return this;
        }

        public Builder cidrs(List<String> cidrs) {
            return cidrs(Output.of(cidrs));
        }

        public Builder cidrs(String... cidrs) {
            return cidrs(List.of(cidrs));
        }

        /**
         * @param firewallIds A `firewall_ids` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder firewallIds(@Nullable Output<List<String>> firewallIds) {
            $.firewallIds = firewallIds;
            return this;
        }

        /**
         * @param firewallIds A `firewall_ids` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder firewallIds(List<String> firewallIds) {
            return firewallIds(Output.of(firewallIds));
        }

        /**
         * @param firewallIds A `firewall_ids` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder firewallIds(String... firewallIds) {
            return firewallIds(List.of(firewallIds));
        }

        /**
         * @param firewallPolicyIds A `firewall_policy_ids` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder firewallPolicyIds(@Nullable Output<List<String>> firewallPolicyIds) {
            $.firewallPolicyIds = firewallPolicyIds;
            return this;
        }

        /**
         * @param firewallPolicyIds A `firewall_policy_ids` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder firewallPolicyIds(List<String> firewallPolicyIds) {
            return firewallPolicyIds(Output.of(firewallPolicyIds));
        }

        /**
         * @param firewallPolicyIds A `firewall_policy_ids` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder firewallPolicyIds(String... firewallPolicyIds) {
            return firewallPolicyIds(List.of(firewallPolicyIds));
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output<String> location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name Specifies the name of the IP group. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the IP group. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the IP group. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output<String> resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the IP group. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output<Map<String,String>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map<String,String> tags) {
            return tags(Output.of(tags));
        }

        public IPGroupState build() {
            return $;
        }
    }

}
