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

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

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


/**
 * Parameters for an Action.
 * 
 */
public final class ParameterArgs extends com.pulumi.resources.ResourceArgs {

    public static final ParameterArgs Empty = new ParameterArgs();

    /**
     * List of AS paths.
     * 
     */
    @Import(name="asPath")
    private @Nullable Output> asPath;

    /**
     * @return List of AS paths.
     * 
     */
    public Optional>> asPath() {
        return Optional.ofNullable(this.asPath);
    }

    /**
     * List of BGP communities.
     * 
     */
    @Import(name="community")
    private @Nullable Output> community;

    /**
     * @return List of BGP communities.
     * 
     */
    public Optional>> community() {
        return Optional.ofNullable(this.community);
    }

    /**
     * List of route prefixes.
     * 
     */
    @Import(name="routePrefix")
    private @Nullable Output> routePrefix;

    /**
     * @return List of route prefixes.
     * 
     */
    public Optional>> routePrefix() {
        return Optional.ofNullable(this.routePrefix);
    }

    private ParameterArgs() {}

    private ParameterArgs(ParameterArgs $) {
        this.asPath = $.asPath;
        this.community = $.community;
        this.routePrefix = $.routePrefix;
    }

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

    public static final class Builder {
        private ParameterArgs $;

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

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

        /**
         * @param asPath List of AS paths.
         * 
         * @return builder
         * 
         */
        public Builder asPath(@Nullable Output> asPath) {
            $.asPath = asPath;
            return this;
        }

        /**
         * @param asPath List of AS paths.
         * 
         * @return builder
         * 
         */
        public Builder asPath(List asPath) {
            return asPath(Output.of(asPath));
        }

        /**
         * @param asPath List of AS paths.
         * 
         * @return builder
         * 
         */
        public Builder asPath(String... asPath) {
            return asPath(List.of(asPath));
        }

        /**
         * @param community List of BGP communities.
         * 
         * @return builder
         * 
         */
        public Builder community(@Nullable Output> community) {
            $.community = community;
            return this;
        }

        /**
         * @param community List of BGP communities.
         * 
         * @return builder
         * 
         */
        public Builder community(List community) {
            return community(Output.of(community));
        }

        /**
         * @param community List of BGP communities.
         * 
         * @return builder
         * 
         */
        public Builder community(String... community) {
            return community(List.of(community));
        }

        /**
         * @param routePrefix List of route prefixes.
         * 
         * @return builder
         * 
         */
        public Builder routePrefix(@Nullable Output> routePrefix) {
            $.routePrefix = routePrefix;
            return this;
        }

        /**
         * @param routePrefix List of route prefixes.
         * 
         * @return builder
         * 
         */
        public Builder routePrefix(List routePrefix) {
            return routePrefix(Output.of(routePrefix));
        }

        /**
         * @param routePrefix List of route prefixes.
         * 
         * @return builder
         * 
         */
        public Builder routePrefix(String... routePrefix) {
            return routePrefix(List.of(routePrefix));
        }

        public ParameterArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy