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

com.pulumi.aws.ec2.outputs.GetSecurityGroupsResult 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.ec2.outputs;

import com.pulumi.aws.ec2.outputs.GetSecurityGroupsFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetSecurityGroupsResult {
    /**
     * @return ARNs of the matched security groups.
     * 
     */
    private List arns;
    private @Nullable List filters;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return IDs of the matches security groups.
     * 
     */
    private List ids;
    private Map tags;
    /**
     * @return VPC IDs of the matched security groups. The data source's tag or filter *will span VPCs* unless the `vpc-id` filter is also used.
     * 
     */
    private List vpcIds;

    private GetSecurityGroupsResult() {}
    /**
     * @return ARNs of the matched security groups.
     * 
     */
    public List arns() {
        return this.arns;
    }
    public List filters() {
        return this.filters == null ? List.of() : this.filters;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return IDs of the matches security groups.
     * 
     */
    public List ids() {
        return this.ids;
    }
    public Map tags() {
        return this.tags;
    }
    /**
     * @return VPC IDs of the matched security groups. The data source's tag or filter *will span VPCs* unless the `vpc-id` filter is also used.
     * 
     */
    public List vpcIds() {
        return this.vpcIds;
    }

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

    public static Builder builder(GetSecurityGroupsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List arns;
        private @Nullable List filters;
        private String id;
        private List ids;
        private Map tags;
        private List vpcIds;
        public Builder() {}
        public Builder(GetSecurityGroupsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arns = defaults.arns;
    	      this.filters = defaults.filters;
    	      this.id = defaults.id;
    	      this.ids = defaults.ids;
    	      this.tags = defaults.tags;
    	      this.vpcIds = defaults.vpcIds;
        }

        @CustomType.Setter
        public Builder arns(List arns) {
            if (arns == null) {
              throw new MissingRequiredPropertyException("GetSecurityGroupsResult", "arns");
            }
            this.arns = arns;
            return this;
        }
        public Builder arns(String... arns) {
            return arns(List.of(arns));
        }
        @CustomType.Setter
        public Builder filters(@Nullable List filters) {

            this.filters = filters;
            return this;
        }
        public Builder filters(GetSecurityGroupsFilter... filters) {
            return filters(List.of(filters));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSecurityGroupsResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder ids(List ids) {
            if (ids == null) {
              throw new MissingRequiredPropertyException("GetSecurityGroupsResult", "ids");
            }
            this.ids = ids;
            return this;
        }
        public Builder ids(String... ids) {
            return ids(List.of(ids));
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetSecurityGroupsResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder vpcIds(List vpcIds) {
            if (vpcIds == null) {
              throw new MissingRequiredPropertyException("GetSecurityGroupsResult", "vpcIds");
            }
            this.vpcIds = vpcIds;
            return this;
        }
        public Builder vpcIds(String... vpcIds) {
            return vpcIds(List.of(vpcIds));
        }
        public GetSecurityGroupsResult build() {
            final var _resultValue = new GetSecurityGroupsResult();
            _resultValue.arns = arns;
            _resultValue.filters = filters;
            _resultValue.id = id;
            _resultValue.ids = ids;
            _resultValue.tags = tags;
            _resultValue.vpcIds = vpcIds;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy