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

com.pulumi.aws.wafregional.IpSetArgs 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.wafregional;

import com.pulumi.aws.wafregional.inputs.IpSetIpSetDescriptorArgs;
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;


public final class IpSetArgs extends com.pulumi.resources.ResourceArgs {

    public static final IpSetArgs Empty = new IpSetArgs();

    /**
     * One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) from which web requests originate.
     * 
     */
    @Import(name="ipSetDescriptors")
    private @Nullable Output> ipSetDescriptors;

    /**
     * @return One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) from which web requests originate.
     * 
     */
    public Optional>> ipSetDescriptors() {
        return Optional.ofNullable(this.ipSetDescriptors);
    }

    /**
     * The name or description of the IPSet.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name or description of the IPSet.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private IpSetArgs() {}

    private IpSetArgs(IpSetArgs $) {
        this.ipSetDescriptors = $.ipSetDescriptors;
        this.name = $.name;
    }

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

    public static final class Builder {
        private IpSetArgs $;

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

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

        /**
         * @param ipSetDescriptors One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) from which web requests originate.
         * 
         * @return builder
         * 
         */
        public Builder ipSetDescriptors(@Nullable Output> ipSetDescriptors) {
            $.ipSetDescriptors = ipSetDescriptors;
            return this;
        }

        /**
         * @param ipSetDescriptors One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) from which web requests originate.
         * 
         * @return builder
         * 
         */
        public Builder ipSetDescriptors(List ipSetDescriptors) {
            return ipSetDescriptors(Output.of(ipSetDescriptors));
        }

        /**
         * @param ipSetDescriptors One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) from which web requests originate.
         * 
         * @return builder
         * 
         */
        public Builder ipSetDescriptors(IpSetIpSetDescriptorArgs... ipSetDescriptors) {
            return ipSetDescriptors(List.of(ipSetDescriptors));
        }

        /**
         * @param name The name or description of the IPSet.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name or description of the IPSet.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public IpSetArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy