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

com.pulumi.aws.ec2.inputs.GetPrefixListPlainArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.ec2.inputs;

import com.pulumi.aws.ec2.inputs.GetPrefixListFilter;
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;


public final class GetPrefixListPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetPrefixListPlainArgs Empty = new GetPrefixListPlainArgs();

    /**
     * Configuration block(s) for filtering. Detailed below.
     * 
     */
    @Import(name="filters")
    private @Nullable List filters;

    /**
     * @return Configuration block(s) for filtering. Detailed below.
     * 
     */
    public Optional> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * Name of the prefix list to select.
     * 
     */
    @Import(name="name")
    private @Nullable String name;

    /**
     * @return Name of the prefix list to select.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * ID of the prefix list to select.
     * 
     */
    @Import(name="prefixListId")
    private @Nullable String prefixListId;

    /**
     * @return ID of the prefix list to select.
     * 
     */
    public Optional prefixListId() {
        return Optional.ofNullable(this.prefixListId);
    }

    private GetPrefixListPlainArgs() {}

    private GetPrefixListPlainArgs(GetPrefixListPlainArgs $) {
        this.filters = $.filters;
        this.name = $.name;
        this.prefixListId = $.prefixListId;
    }

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

    public static final class Builder {
        private GetPrefixListPlainArgs $;

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

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

        /**
         * @param filters Configuration block(s) for filtering. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable List filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters Configuration block(s) for filtering. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(GetPrefixListFilter... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param name Name of the prefix list to select.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable String name) {
            $.name = name;
            return this;
        }

        /**
         * @param prefixListId ID of the prefix list to select.
         * 
         * @return builder
         * 
         */
        public Builder prefixListId(@Nullable String prefixListId) {
            $.prefixListId = prefixListId;
            return this;
        }

        public GetPrefixListPlainArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy