// *** 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.GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderDestinationPortRange;
import com.pulumi.aws.ec2.outputs.GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderSourcePortRange;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetNetworkInsightsAnalysisForwardPathComponentOutboundHeader {
    private List<String> destinationAddresses;
    private List<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderDestinationPortRange> destinationPortRanges;
    private String protocol;
    private List<String> sourceAddresses;
    private List<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderSourcePortRange> sourcePortRanges;

    private GetNetworkInsightsAnalysisForwardPathComponentOutboundHeader() {}
    public List<String> destinationAddresses() {
        return this.destinationAddresses;
    }
    public List<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderDestinationPortRange> destinationPortRanges() {
        return this.destinationPortRanges;
    }
    public String protocol() {
        return this.protocol;
    }
    public List<String> sourceAddresses() {
        return this.sourceAddresses;
    }
    public List<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderSourcePortRange> sourcePortRanges() {
        return this.sourcePortRanges;
    }

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

    public static Builder builder(GetNetworkInsightsAnalysisForwardPathComponentOutboundHeader defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<String> destinationAddresses;
        private List<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderDestinationPortRange> destinationPortRanges;
        private String protocol;
        private List<String> sourceAddresses;
        private List<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderSourcePortRange> sourcePortRanges;
        public Builder() {}
        public Builder(GetNetworkInsightsAnalysisForwardPathComponentOutboundHeader defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.destinationAddresses = defaults.destinationAddresses;
    	      this.destinationPortRanges = defaults.destinationPortRanges;
    	      this.protocol = defaults.protocol;
    	      this.sourceAddresses = defaults.sourceAddresses;
    	      this.sourcePortRanges = defaults.sourcePortRanges;
        }

        @CustomType.Setter
        public Builder destinationAddresses(List<String> destinationAddresses) {
            this.destinationAddresses = Objects.requireNonNull(destinationAddresses);
            return this;
        }
        public Builder destinationAddresses(String... destinationAddresses) {
            return destinationAddresses(List.of(destinationAddresses));
        }
        @CustomType.Setter
        public Builder destinationPortRanges(List<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderDestinationPortRange> destinationPortRanges) {
            this.destinationPortRanges = Objects.requireNonNull(destinationPortRanges);
            return this;
        }
        public Builder destinationPortRanges(GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderDestinationPortRange... destinationPortRanges) {
            return destinationPortRanges(List.of(destinationPortRanges));
        }
        @CustomType.Setter
        public Builder protocol(String protocol) {
            this.protocol = Objects.requireNonNull(protocol);
            return this;
        }
        @CustomType.Setter
        public Builder sourceAddresses(List<String> sourceAddresses) {
            this.sourceAddresses = Objects.requireNonNull(sourceAddresses);
            return this;
        }
        public Builder sourceAddresses(String... sourceAddresses) {
            return sourceAddresses(List.of(sourceAddresses));
        }
        @CustomType.Setter
        public Builder sourcePortRanges(List<GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderSourcePortRange> sourcePortRanges) {
            this.sourcePortRanges = Objects.requireNonNull(sourcePortRanges);
            return this;
        }
        public Builder sourcePortRanges(GetNetworkInsightsAnalysisForwardPathComponentOutboundHeaderSourcePortRange... sourcePortRanges) {
            return sourcePortRanges(List.of(sourcePortRanges));
        }
        public GetNetworkInsightsAnalysisForwardPathComponentOutboundHeader build() {
            final var o = new GetNetworkInsightsAnalysisForwardPathComponentOutboundHeader();
            o.destinationAddresses = destinationAddresses;
            o.destinationPortRanges = destinationPortRanges;
            o.protocol = protocol;
            o.sourceAddresses = sourceAddresses;
            o.sourcePortRanges = sourcePortRanges;
            return o;
        }
    }
}
