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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.compute.outputs.PacketMirroringMirroredResourcesInstance;
import com.pulumi.gcp.compute.outputs.PacketMirroringMirroredResourcesSubnetwork;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class PacketMirroringMirroredResources {
    /**
     * @return All the listed instances will be mirrored.  Specify at most 50.
     * Structure is documented below.
     * 
     */
    private @Nullable List<PacketMirroringMirroredResourcesInstance> instances;
    /**
     * @return All instances in one of these subnetworks will be mirrored.
     * Structure is documented below.
     * 
     */
    private @Nullable List<PacketMirroringMirroredResourcesSubnetwork> subnetworks;
    /**
     * @return All instances with these tags will be mirrored.
     * 
     */
    private @Nullable List<String> tags;

    private PacketMirroringMirroredResources() {}
    /**
     * @return All the listed instances will be mirrored.  Specify at most 50.
     * Structure is documented below.
     * 
     */
    public List<PacketMirroringMirroredResourcesInstance> instances() {
        return this.instances == null ? List.of() : this.instances;
    }
    /**
     * @return All instances in one of these subnetworks will be mirrored.
     * Structure is documented below.
     * 
     */
    public List<PacketMirroringMirroredResourcesSubnetwork> subnetworks() {
        return this.subnetworks == null ? List.of() : this.subnetworks;
    }
    /**
     * @return All instances with these tags will be mirrored.
     * 
     */
    public List<String> tags() {
        return this.tags == null ? List.of() : this.tags;
    }

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

    public static Builder builder(PacketMirroringMirroredResources defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<PacketMirroringMirroredResourcesInstance> instances;
        private @Nullable List<PacketMirroringMirroredResourcesSubnetwork> subnetworks;
        private @Nullable List<String> tags;
        public Builder() {}
        public Builder(PacketMirroringMirroredResources defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.instances = defaults.instances;
    	      this.subnetworks = defaults.subnetworks;
    	      this.tags = defaults.tags;
        }

        @CustomType.Setter
        public Builder instances(@Nullable List<PacketMirroringMirroredResourcesInstance> instances) {
            this.instances = instances;
            return this;
        }
        public Builder instances(PacketMirroringMirroredResourcesInstance... instances) {
            return instances(List.of(instances));
        }
        @CustomType.Setter
        public Builder subnetworks(@Nullable List<PacketMirroringMirroredResourcesSubnetwork> subnetworks) {
            this.subnetworks = subnetworks;
            return this;
        }
        public Builder subnetworks(PacketMirroringMirroredResourcesSubnetwork... subnetworks) {
            return subnetworks(List.of(subnetworks));
        }
        @CustomType.Setter
        public Builder tags(@Nullable List<String> tags) {
            this.tags = tags;
            return this;
        }
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }
        public PacketMirroringMirroredResources build() {
            final var o = new PacketMirroringMirroredResources();
            o.instances = instances;
            o.subnetworks = subnetworks;
            o.tags = tags;
            return o;
        }
    }
}
