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

com.pulumi.azure.network.inputs.VirtualNetworkGatewayPolicyGroupArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network.inputs;

import com.pulumi.azure.network.inputs.VirtualNetworkGatewayPolicyGroupPolicyMemberArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualNetworkGatewayPolicyGroupArgs Empty = new VirtualNetworkGatewayPolicyGroupArgs();

    /**
     * Is this a Default Virtual Network Gateway Policy Group? Defaults to `false`.
     * 
     */
    @Import(name="isDefault")
    private @Nullable Output isDefault;

    /**
     * @return Is this a Default Virtual Network Gateway Policy Group? Defaults to `false`.
     * 
     */
    public Optional> isDefault() {
        return Optional.ofNullable(this.isDefault);
    }

    /**
     * The name of the Virtual Network Gateway Policy Group.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the Virtual Network Gateway Policy Group.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * One or more `policy_member` blocks as defined below.
     * 
     */
    @Import(name="policyMembers", required=true)
    private Output> policyMembers;

    /**
     * @return One or more `policy_member` blocks as defined below.
     * 
     */
    public Output> policyMembers() {
        return this.policyMembers;
    }

    /**
     * The priority for the Virtual Network Gateway Policy Group. Defaults to `0`.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return The priority for the Virtual Network Gateway Policy Group. Defaults to `0`.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    private VirtualNetworkGatewayPolicyGroupArgs() {}

    private VirtualNetworkGatewayPolicyGroupArgs(VirtualNetworkGatewayPolicyGroupArgs $) {
        this.isDefault = $.isDefault;
        this.name = $.name;
        this.policyMembers = $.policyMembers;
        this.priority = $.priority;
    }

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

    public static final class Builder {
        private VirtualNetworkGatewayPolicyGroupArgs $;

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

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

        /**
         * @param isDefault Is this a Default Virtual Network Gateway Policy Group? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder isDefault(@Nullable Output isDefault) {
            $.isDefault = isDefault;
            return this;
        }

        /**
         * @param isDefault Is this a Default Virtual Network Gateway Policy Group? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder isDefault(Boolean isDefault) {
            return isDefault(Output.of(isDefault));
        }

        /**
         * @param name The name of the Virtual Network Gateway Policy Group.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Virtual Network Gateway Policy Group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param policyMembers One or more `policy_member` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder policyMembers(Output> policyMembers) {
            $.policyMembers = policyMembers;
            return this;
        }

        /**
         * @param policyMembers One or more `policy_member` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder policyMembers(List policyMembers) {
            return policyMembers(Output.of(policyMembers));
        }

        /**
         * @param policyMembers One or more `policy_member` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder policyMembers(VirtualNetworkGatewayPolicyGroupPolicyMemberArgs... policyMembers) {
            return policyMembers(List.of(policyMembers));
        }

        /**
         * @param priority The priority for the Virtual Network Gateway Policy Group. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority The priority for the Virtual Network Gateway Policy Group. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        public VirtualNetworkGatewayPolicyGroupArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayPolicyGroupArgs", "name");
            }
            if ($.policyMembers == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayPolicyGroupArgs", "policyMembers");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy