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

com.pulumi.aws.ec2.outputs.NetworkInsightsAnalysisForwardPathComponentInboundHeader Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.NetworkInsightsAnalysisForwardPathComponentInboundHeaderDestinationPortRange;
import com.pulumi.aws.ec2.outputs.NetworkInsightsAnalysisForwardPathComponentInboundHeaderSourcePortRange;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NetworkInsightsAnalysisForwardPathComponentInboundHeader {
    private @Nullable List destinationAddresses;
    private @Nullable List destinationPortRanges;
    private @Nullable String protocol;
    private @Nullable List sourceAddresses;
    private @Nullable List sourcePortRanges;

    private NetworkInsightsAnalysisForwardPathComponentInboundHeader() {}
    public List destinationAddresses() {
        return this.destinationAddresses == null ? List.of() : this.destinationAddresses;
    }
    public List destinationPortRanges() {
        return this.destinationPortRanges == null ? List.of() : this.destinationPortRanges;
    }
    public Optional protocol() {
        return Optional.ofNullable(this.protocol);
    }
    public List sourceAddresses() {
        return this.sourceAddresses == null ? List.of() : this.sourceAddresses;
    }
    public List sourcePortRanges() {
        return this.sourcePortRanges == null ? List.of() : this.sourcePortRanges;
    }

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

    public static Builder builder(NetworkInsightsAnalysisForwardPathComponentInboundHeader defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List destinationAddresses;
        private @Nullable List destinationPortRanges;
        private @Nullable String protocol;
        private @Nullable List sourceAddresses;
        private @Nullable List sourcePortRanges;
        public Builder() {}
        public Builder(NetworkInsightsAnalysisForwardPathComponentInboundHeader 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(@Nullable List destinationAddresses) {

            this.destinationAddresses = destinationAddresses;
            return this;
        }
        public Builder destinationAddresses(String... destinationAddresses) {
            return destinationAddresses(List.of(destinationAddresses));
        }
        @CustomType.Setter
        public Builder destinationPortRanges(@Nullable List destinationPortRanges) {

            this.destinationPortRanges = destinationPortRanges;
            return this;
        }
        public Builder destinationPortRanges(NetworkInsightsAnalysisForwardPathComponentInboundHeaderDestinationPortRange... destinationPortRanges) {
            return destinationPortRanges(List.of(destinationPortRanges));
        }
        @CustomType.Setter
        public Builder protocol(@Nullable String protocol) {

            this.protocol = protocol;
            return this;
        }
        @CustomType.Setter
        public Builder sourceAddresses(@Nullable List sourceAddresses) {

            this.sourceAddresses = sourceAddresses;
            return this;
        }
        public Builder sourceAddresses(String... sourceAddresses) {
            return sourceAddresses(List.of(sourceAddresses));
        }
        @CustomType.Setter
        public Builder sourcePortRanges(@Nullable List sourcePortRanges) {

            this.sourcePortRanges = sourcePortRanges;
            return this;
        }
        public Builder sourcePortRanges(NetworkInsightsAnalysisForwardPathComponentInboundHeaderSourcePortRange... sourcePortRanges) {
            return sourcePortRanges(List.of(sourcePortRanges));
        }
        public NetworkInsightsAnalysisForwardPathComponentInboundHeader build() {
            final var _resultValue = new NetworkInsightsAnalysisForwardPathComponentInboundHeader();
            _resultValue.destinationAddresses = destinationAddresses;
            _resultValue.destinationPortRanges = destinationPortRanges;
            _resultValue.protocol = protocol;
            _resultValue.sourceAddresses = sourceAddresses;
            _resultValue.sourcePortRanges = sourcePortRanges;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy