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

com.pulumi.aws.wafv2.outputs.GetIpSetResult Maven / Gradle / Ivy

// *** 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.wafv2.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetIpSetResult {
    /**
     * @return An array of strings that specifies zero or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation.
     * 
     */
    private List addresses;
    /**
     * @return ARN of the entity.
     * 
     */
    private String arn;
    /**
     * @return Description of the set that helps with identification.
     * 
     */
    private String description;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return IP address version of the set.
     * 
     */
    private String ipAddressVersion;
    private String name;
    private String scope;

    private GetIpSetResult() {}
    /**
     * @return An array of strings that specifies zero or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation.
     * 
     */
    public List addresses() {
        return this.addresses;
    }
    /**
     * @return ARN of the entity.
     * 
     */
    public String arn() {
        return this.arn;
    }
    /**
     * @return Description of the set that helps with identification.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return IP address version of the set.
     * 
     */
    public String ipAddressVersion() {
        return this.ipAddressVersion;
    }
    public String name() {
        return this.name;
    }
    public String scope() {
        return this.scope;
    }

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

    public static Builder builder(GetIpSetResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List addresses;
        private String arn;
        private String description;
        private String id;
        private String ipAddressVersion;
        private String name;
        private String scope;
        public Builder() {}
        public Builder(GetIpSetResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.addresses = defaults.addresses;
    	      this.arn = defaults.arn;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.ipAddressVersion = defaults.ipAddressVersion;
    	      this.name = defaults.name;
    	      this.scope = defaults.scope;
        }

        @CustomType.Setter
        public Builder addresses(List addresses) {
            if (addresses == null) {
              throw new MissingRequiredPropertyException("GetIpSetResult", "addresses");
            }
            this.addresses = addresses;
            return this;
        }
        public Builder addresses(String... addresses) {
            return addresses(List.of(addresses));
        }
        @CustomType.Setter
        public Builder arn(String arn) {
            if (arn == null) {
              throw new MissingRequiredPropertyException("GetIpSetResult", "arn");
            }
            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetIpSetResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetIpSetResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder ipAddressVersion(String ipAddressVersion) {
            if (ipAddressVersion == null) {
              throw new MissingRequiredPropertyException("GetIpSetResult", "ipAddressVersion");
            }
            this.ipAddressVersion = ipAddressVersion;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetIpSetResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder scope(String scope) {
            if (scope == null) {
              throw new MissingRequiredPropertyException("GetIpSetResult", "scope");
            }
            this.scope = scope;
            return this;
        }
        public GetIpSetResult build() {
            final var _resultValue = new GetIpSetResult();
            _resultValue.addresses = addresses;
            _resultValue.arn = arn;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.ipAddressVersion = ipAddressVersion;
            _resultValue.name = name;
            _resultValue.scope = scope;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy