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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.networkconnectivity.outputs.SpokeLinkedRouterApplianceInstancesInstance;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;

@CustomType
public final class SpokeLinkedRouterApplianceInstances {
    /**
     * @return The list of router appliance instances
     * 
     */
    private List<SpokeLinkedRouterApplianceInstancesInstance> instances;
    /**
     * @return A value that controls whether site-to-site data transfer is enabled for these resources. Note that data transfer is available only in supported locations.
     * 
     */
    private Boolean siteToSiteDataTransfer;

    private SpokeLinkedRouterApplianceInstances() {}
    /**
     * @return The list of router appliance instances
     * 
     */
    public List<SpokeLinkedRouterApplianceInstancesInstance> instances() {
        return this.instances;
    }
    /**
     * @return A value that controls whether site-to-site data transfer is enabled for these resources. Note that data transfer is available only in supported locations.
     * 
     */
    public Boolean siteToSiteDataTransfer() {
        return this.siteToSiteDataTransfer;
    }

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

    public static Builder builder(SpokeLinkedRouterApplianceInstances defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<SpokeLinkedRouterApplianceInstancesInstance> instances;
        private Boolean siteToSiteDataTransfer;
        public Builder() {}
        public Builder(SpokeLinkedRouterApplianceInstances defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.instances = defaults.instances;
    	      this.siteToSiteDataTransfer = defaults.siteToSiteDataTransfer;
        }

        @CustomType.Setter
        public Builder instances(List<SpokeLinkedRouterApplianceInstancesInstance> instances) {
            this.instances = Objects.requireNonNull(instances);
            return this;
        }
        public Builder instances(SpokeLinkedRouterApplianceInstancesInstance... instances) {
            return instances(List.of(instances));
        }
        @CustomType.Setter
        public Builder siteToSiteDataTransfer(Boolean siteToSiteDataTransfer) {
            this.siteToSiteDataTransfer = Objects.requireNonNull(siteToSiteDataTransfer);
            return this;
        }
        public SpokeLinkedRouterApplianceInstances build() {
            final var o = new SpokeLinkedRouterApplianceInstances();
            o.instances = instances;
            o.siteToSiteDataTransfer = siteToSiteDataTransfer;
            return o;
        }
    }
}
