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

com.pulumi.azurenative.managednetworkfabric.IpCommunityArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.managednetworkfabric.enums.CommunityActionTypes;
import com.pulumi.azurenative.managednetworkfabric.enums.WellKnownCommunities;
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 IpCommunityArgs extends com.pulumi.resources.ResourceArgs {

    public static final IpCommunityArgs Empty = new IpCommunityArgs();

    /**
     * Action to be taken on the configuration. Example: Permit | Deny.
     * 
     */
    @Import(name="action", required=true)
    private Output> action;

    /**
     * @return Action to be taken on the configuration. Example: Permit | Deny.
     * 
     */
    public Output> action() {
        return this.action;
    }

    /**
     * Switch configuration description.
     * 
     */
    @Import(name="annotation")
    private @Nullable Output annotation;

    /**
     * @return Switch configuration description.
     * 
     */
    public Optional> annotation() {
        return Optional.ofNullable(this.annotation);
    }

    /**
     * List the communityMembers of IP Community .
     * 
     */
    @Import(name="communityMembers", required=true)
    private Output> communityMembers;

    /**
     * @return List the communityMembers of IP Community .
     * 
     */
    public Output> communityMembers() {
        return this.communityMembers;
    }

    /**
     * Name of the IP Community
     * 
     */
    @Import(name="ipCommunityName")
    private @Nullable Output ipCommunityName;

    /**
     * @return Name of the IP Community
     * 
     */
    public Optional> ipCommunityName() {
        return Optional.ofNullable(this.ipCommunityName);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

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

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

    /**
     * Supported well known Community List.
     * 
     */
    @Import(name="wellKnownCommunities")
    private @Nullable Output>> wellKnownCommunities;

    /**
     * @return Supported well known Community List.
     * 
     */
    public Optional>>> wellKnownCommunities() {
        return Optional.ofNullable(this.wellKnownCommunities);
    }

    private IpCommunityArgs() {}

    private IpCommunityArgs(IpCommunityArgs $) {
        this.action = $.action;
        this.annotation = $.annotation;
        this.communityMembers = $.communityMembers;
        this.ipCommunityName = $.ipCommunityName;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.wellKnownCommunities = $.wellKnownCommunities;
    }

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

    public static final class Builder {
        private IpCommunityArgs $;

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

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

        /**
         * @param action Action to be taken on the configuration. Example: Permit | Deny.
         * 
         * @return builder
         * 
         */
        public Builder action(Output> action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Action to be taken on the configuration. Example: Permit | Deny.
         * 
         * @return builder
         * 
         */
        public Builder action(Either action) {
            return action(Output.of(action));
        }

        /**
         * @param action Action to be taken on the configuration. Example: Permit | Deny.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Either.ofLeft(action));
        }

        /**
         * @param action Action to be taken on the configuration. Example: Permit | Deny.
         * 
         * @return builder
         * 
         */
        public Builder action(CommunityActionTypes action) {
            return action(Either.ofRight(action));
        }

        /**
         * @param annotation Switch configuration description.
         * 
         * @return builder
         * 
         */
        public Builder annotation(@Nullable Output annotation) {
            $.annotation = annotation;
            return this;
        }

        /**
         * @param annotation Switch configuration description.
         * 
         * @return builder
         * 
         */
        public Builder annotation(String annotation) {
            return annotation(Output.of(annotation));
        }

        /**
         * @param communityMembers List the communityMembers of IP Community .
         * 
         * @return builder
         * 
         */
        public Builder communityMembers(Output> communityMembers) {
            $.communityMembers = communityMembers;
            return this;
        }

        /**
         * @param communityMembers List the communityMembers of IP Community .
         * 
         * @return builder
         * 
         */
        public Builder communityMembers(List communityMembers) {
            return communityMembers(Output.of(communityMembers));
        }

        /**
         * @param communityMembers List the communityMembers of IP Community .
         * 
         * @return builder
         * 
         */
        public Builder communityMembers(String... communityMembers) {
            return communityMembers(List.of(communityMembers));
        }

        /**
         * @param ipCommunityName Name of the IP Community
         * 
         * @return builder
         * 
         */
        public Builder ipCommunityName(@Nullable Output ipCommunityName) {
            $.ipCommunityName = ipCommunityName;
            return this;
        }

        /**
         * @param ipCommunityName Name of the IP Community
         * 
         * @return builder
         * 
         */
        public Builder ipCommunityName(String ipCommunityName) {
            return ipCommunityName(Output.of(ipCommunityName));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

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

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

        /**
         * @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));
        }

        /**
         * @param wellKnownCommunities Supported well known Community List.
         * 
         * @return builder
         * 
         */
        public Builder wellKnownCommunities(@Nullable Output>> wellKnownCommunities) {
            $.wellKnownCommunities = wellKnownCommunities;
            return this;
        }

        /**
         * @param wellKnownCommunities Supported well known Community List.
         * 
         * @return builder
         * 
         */
        public Builder wellKnownCommunities(List> wellKnownCommunities) {
            return wellKnownCommunities(Output.of(wellKnownCommunities));
        }

        /**
         * @param wellKnownCommunities Supported well known Community List.
         * 
         * @return builder
         * 
         */
        public Builder wellKnownCommunities(Either... wellKnownCommunities) {
            return wellKnownCommunities(List.of(wellKnownCommunities));
        }

        public IpCommunityArgs build() {
            if ($.action == null) {
                throw new MissingRequiredPropertyException("IpCommunityArgs", "action");
            }
            if ($.communityMembers == null) {
                throw new MissingRequiredPropertyException("IpCommunityArgs", "communityMembers");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("IpCommunityArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy