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

com.pulumi.azurenative.network.NspAccessRuleArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.network;

import com.pulumi.azurenative.network.enums.AccessRuleDirection;
import com.pulumi.azurenative.network.inputs.SubscriptionIdArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 NspAccessRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final NspAccessRuleArgs Empty = new NspAccessRuleArgs();

    /**
     * The name of the NSP access rule.
     * 
     */
    @Import(name="accessRuleName")
    private @Nullable Output accessRuleName;

    /**
     * @return The name of the NSP access rule.
     * 
     */
    public Optional> accessRuleName() {
        return Optional.ofNullable(this.accessRuleName);
    }

    /**
     * Inbound address prefixes (IPv4/IPv6)
     * 
     */
    @Import(name="addressPrefixes")
    private @Nullable Output> addressPrefixes;

    /**
     * @return Inbound address prefixes (IPv4/IPv6)
     * 
     */
    public Optional>> addressPrefixes() {
        return Optional.ofNullable(this.addressPrefixes);
    }

    /**
     * Direction that specifies whether the access rules is inbound/outbound.
     * 
     */
    @Import(name="direction")
    private @Nullable Output> direction;

    /**
     * @return Direction that specifies whether the access rules is inbound/outbound.
     * 
     */
    public Optional>> direction() {
        return Optional.ofNullable(this.direction);
    }

    /**
     * Outbound rules email address format.
     * 
     */
    @Import(name="emailAddresses")
    private @Nullable Output> emailAddresses;

    /**
     * @return Outbound rules email address format.
     * 
     */
    public Optional>> emailAddresses() {
        return Optional.ofNullable(this.emailAddresses);
    }

    /**
     * Outbound rules fully qualified domain name format.
     * 
     */
    @Import(name="fullyQualifiedDomainNames")
    private @Nullable Output> fullyQualifiedDomainNames;

    /**
     * @return Outbound rules fully qualified domain name format.
     * 
     */
    public Optional>> fullyQualifiedDomainNames() {
        return Optional.ofNullable(this.fullyQualifiedDomainNames);
    }

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

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

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

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

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

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

    /**
     * The name of the network security perimeter.
     * 
     */
    @Import(name="networkSecurityPerimeterName", required=true)
    private Output networkSecurityPerimeterName;

    /**
     * @return The name of the network security perimeter.
     * 
     */
    public Output networkSecurityPerimeterName() {
        return this.networkSecurityPerimeterName;
    }

    /**
     * Outbound rules phone number format.
     * 
     */
    @Import(name="phoneNumbers")
    private @Nullable Output> phoneNumbers;

    /**
     * @return Outbound rules phone number format.
     * 
     */
    public Optional>> phoneNumbers() {
        return Optional.ofNullable(this.phoneNumbers);
    }

    /**
     * The name of the NSP profile.
     * 
     */
    @Import(name="profileName", required=true)
    private Output profileName;

    /**
     * @return The name of the NSP profile.
     * 
     */
    public Output profileName() {
        return this.profileName;
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * List of subscription ids
     * 
     */
    @Import(name="subscriptions")
    private @Nullable Output> subscriptions;

    /**
     * @return List of subscription ids
     * 
     */
    public Optional>> subscriptions() {
        return Optional.ofNullable(this.subscriptions);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

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

    private NspAccessRuleArgs() {}

    private NspAccessRuleArgs(NspAccessRuleArgs $) {
        this.accessRuleName = $.accessRuleName;
        this.addressPrefixes = $.addressPrefixes;
        this.direction = $.direction;
        this.emailAddresses = $.emailAddresses;
        this.fullyQualifiedDomainNames = $.fullyQualifiedDomainNames;
        this.id = $.id;
        this.location = $.location;
        this.name = $.name;
        this.networkSecurityPerimeterName = $.networkSecurityPerimeterName;
        this.phoneNumbers = $.phoneNumbers;
        this.profileName = $.profileName;
        this.resourceGroupName = $.resourceGroupName;
        this.subscriptions = $.subscriptions;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private NspAccessRuleArgs $;

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

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

        /**
         * @param accessRuleName The name of the NSP access rule.
         * 
         * @return builder
         * 
         */
        public Builder accessRuleName(@Nullable Output accessRuleName) {
            $.accessRuleName = accessRuleName;
            return this;
        }

        /**
         * @param accessRuleName The name of the NSP access rule.
         * 
         * @return builder
         * 
         */
        public Builder accessRuleName(String accessRuleName) {
            return accessRuleName(Output.of(accessRuleName));
        }

        /**
         * @param addressPrefixes Inbound address prefixes (IPv4/IPv6)
         * 
         * @return builder
         * 
         */
        public Builder addressPrefixes(@Nullable Output> addressPrefixes) {
            $.addressPrefixes = addressPrefixes;
            return this;
        }

        /**
         * @param addressPrefixes Inbound address prefixes (IPv4/IPv6)
         * 
         * @return builder
         * 
         */
        public Builder addressPrefixes(List addressPrefixes) {
            return addressPrefixes(Output.of(addressPrefixes));
        }

        /**
         * @param addressPrefixes Inbound address prefixes (IPv4/IPv6)
         * 
         * @return builder
         * 
         */
        public Builder addressPrefixes(String... addressPrefixes) {
            return addressPrefixes(List.of(addressPrefixes));
        }

        /**
         * @param direction Direction that specifies whether the access rules is inbound/outbound.
         * 
         * @return builder
         * 
         */
        public Builder direction(@Nullable Output> direction) {
            $.direction = direction;
            return this;
        }

        /**
         * @param direction Direction that specifies whether the access rules is inbound/outbound.
         * 
         * @return builder
         * 
         */
        public Builder direction(Either direction) {
            return direction(Output.of(direction));
        }

        /**
         * @param direction Direction that specifies whether the access rules is inbound/outbound.
         * 
         * @return builder
         * 
         */
        public Builder direction(String direction) {
            return direction(Either.ofLeft(direction));
        }

        /**
         * @param direction Direction that specifies whether the access rules is inbound/outbound.
         * 
         * @return builder
         * 
         */
        public Builder direction(AccessRuleDirection direction) {
            return direction(Either.ofRight(direction));
        }

        /**
         * @param emailAddresses Outbound rules email address format.
         * 
         * @return builder
         * 
         */
        public Builder emailAddresses(@Nullable Output> emailAddresses) {
            $.emailAddresses = emailAddresses;
            return this;
        }

        /**
         * @param emailAddresses Outbound rules email address format.
         * 
         * @return builder
         * 
         */
        public Builder emailAddresses(List emailAddresses) {
            return emailAddresses(Output.of(emailAddresses));
        }

        /**
         * @param emailAddresses Outbound rules email address format.
         * 
         * @return builder
         * 
         */
        public Builder emailAddresses(String... emailAddresses) {
            return emailAddresses(List.of(emailAddresses));
        }

        /**
         * @param fullyQualifiedDomainNames Outbound rules fully qualified domain name format.
         * 
         * @return builder
         * 
         */
        public Builder fullyQualifiedDomainNames(@Nullable Output> fullyQualifiedDomainNames) {
            $.fullyQualifiedDomainNames = fullyQualifiedDomainNames;
            return this;
        }

        /**
         * @param fullyQualifiedDomainNames Outbound rules fully qualified domain name format.
         * 
         * @return builder
         * 
         */
        public Builder fullyQualifiedDomainNames(List fullyQualifiedDomainNames) {
            return fullyQualifiedDomainNames(Output.of(fullyQualifiedDomainNames));
        }

        /**
         * @param fullyQualifiedDomainNames Outbound rules fully qualified domain name format.
         * 
         * @return builder
         * 
         */
        public Builder fullyQualifiedDomainNames(String... fullyQualifiedDomainNames) {
            return fullyQualifiedDomainNames(List.of(fullyQualifiedDomainNames));
        }

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

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

        /**
         * @param name The name of the access rule that is unique within a profile. 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 access rule that is unique within a profile. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param networkSecurityPerimeterName The name of the network security perimeter.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityPerimeterName(Output networkSecurityPerimeterName) {
            $.networkSecurityPerimeterName = networkSecurityPerimeterName;
            return this;
        }

        /**
         * @param networkSecurityPerimeterName The name of the network security perimeter.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityPerimeterName(String networkSecurityPerimeterName) {
            return networkSecurityPerimeterName(Output.of(networkSecurityPerimeterName));
        }

        /**
         * @param phoneNumbers Outbound rules phone number format.
         * 
         * @return builder
         * 
         */
        public Builder phoneNumbers(@Nullable Output> phoneNumbers) {
            $.phoneNumbers = phoneNumbers;
            return this;
        }

        /**
         * @param phoneNumbers Outbound rules phone number format.
         * 
         * @return builder
         * 
         */
        public Builder phoneNumbers(List phoneNumbers) {
            return phoneNumbers(Output.of(phoneNumbers));
        }

        /**
         * @param phoneNumbers Outbound rules phone number format.
         * 
         * @return builder
         * 
         */
        public Builder phoneNumbers(String... phoneNumbers) {
            return phoneNumbers(List.of(phoneNumbers));
        }

        /**
         * @param profileName The name of the NSP profile.
         * 
         * @return builder
         * 
         */
        public Builder profileName(Output profileName) {
            $.profileName = profileName;
            return this;
        }

        /**
         * @param profileName The name of the NSP profile.
         * 
         * @return builder
         * 
         */
        public Builder profileName(String profileName) {
            return profileName(Output.of(profileName));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param subscriptions List of subscription ids
         * 
         * @return builder
         * 
         */
        public Builder subscriptions(@Nullable Output> subscriptions) {
            $.subscriptions = subscriptions;
            return this;
        }

        /**
         * @param subscriptions List of subscription ids
         * 
         * @return builder
         * 
         */
        public Builder subscriptions(List subscriptions) {
            return subscriptions(Output.of(subscriptions));
        }

        /**
         * @param subscriptions List of subscription ids
         * 
         * @return builder
         * 
         */
        public Builder subscriptions(SubscriptionIdArgs... subscriptions) {
            return subscriptions(List.of(subscriptions));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public NspAccessRuleArgs build() {
            if ($.networkSecurityPerimeterName == null) {
                throw new MissingRequiredPropertyException("NspAccessRuleArgs", "networkSecurityPerimeterName");
            }
            if ($.profileName == null) {
                throw new MissingRequiredPropertyException("NspAccessRuleArgs", "profileName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("NspAccessRuleArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy