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

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

The 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.azurenative.network.inputs;

import com.pulumi.azurenative.network.inputs.VirtualNetworkGatewayPolicyGroupMemberArgs;
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;


/**
 * Parameters for VirtualNetworkGatewayPolicyGroup.
 * 
 */
public final class VirtualNetworkGatewayPolicyGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualNetworkGatewayPolicyGroupArgs Empty = new VirtualNetworkGatewayPolicyGroupArgs();

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Shows if this is a Default VirtualNetworkGatewayPolicyGroup or not.
     * 
     */
    @Import(name="isDefault", required=true)
    private Output isDefault;

    /**
     * @return Shows if this is a Default VirtualNetworkGatewayPolicyGroup or not.
     * 
     */
    public Output isDefault() {
        return this.isDefault;
    }

    /**
     * The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Multiple PolicyMembers for VirtualNetworkGatewayPolicyGroup.
     * 
     */
    @Import(name="policyMembers", required=true)
    private Output> policyMembers;

    /**
     * @return Multiple PolicyMembers for VirtualNetworkGatewayPolicyGroup.
     * 
     */
    public Output> policyMembers() {
        return this.policyMembers;
    }

    /**
     * Priority for VirtualNetworkGatewayPolicyGroup.
     * 
     */
    @Import(name="priority", required=true)
    private Output priority;

    /**
     * @return Priority for VirtualNetworkGatewayPolicyGroup.
     * 
     */
    public Output priority() {
        return this.priority;
    }

    private VirtualNetworkGatewayPolicyGroupArgs() {}

    private VirtualNetworkGatewayPolicyGroupArgs(VirtualNetworkGatewayPolicyGroupArgs $) {
        this.id = $.id;
        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 id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param isDefault Shows if this is a Default VirtualNetworkGatewayPolicyGroup or not.
         * 
         * @return builder
         * 
         */
        public Builder isDefault(Output isDefault) {
            $.isDefault = isDefault;
            return this;
        }

        /**
         * @param isDefault Shows if this is a Default VirtualNetworkGatewayPolicyGroup or not.
         * 
         * @return builder
         * 
         */
        public Builder isDefault(Boolean isDefault) {
            return isDefault(Output.of(isDefault));
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param policyMembers Multiple PolicyMembers for VirtualNetworkGatewayPolicyGroup.
         * 
         * @return builder
         * 
         */
        public Builder policyMembers(Output> policyMembers) {
            $.policyMembers = policyMembers;
            return this;
        }

        /**
         * @param policyMembers Multiple PolicyMembers for VirtualNetworkGatewayPolicyGroup.
         * 
         * @return builder
         * 
         */
        public Builder policyMembers(List policyMembers) {
            return policyMembers(Output.of(policyMembers));
        }

        /**
         * @param policyMembers Multiple PolicyMembers for VirtualNetworkGatewayPolicyGroup.
         * 
         * @return builder
         * 
         */
        public Builder policyMembers(VirtualNetworkGatewayPolicyGroupMemberArgs... policyMembers) {
            return policyMembers(List.of(policyMembers));
        }

        /**
         * @param priority Priority for VirtualNetworkGatewayPolicyGroup.
         * 
         * @return builder
         * 
         */
        public Builder priority(Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Priority for VirtualNetworkGatewayPolicyGroup.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy