// *** 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.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NetworkInsightsAnalysisExplanationClassicLoadBalancerListener {
    private @Nullable Integer instancePort;
    private @Nullable Integer loadBalancerPort;

    private NetworkInsightsAnalysisExplanationClassicLoadBalancerListener() {}
    public Optional<Integer> instancePort() {
        return Optional.ofNullable(this.instancePort);
    }
    public Optional<Integer> loadBalancerPort() {
        return Optional.ofNullable(this.loadBalancerPort);
    }

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

    public static Builder builder(NetworkInsightsAnalysisExplanationClassicLoadBalancerListener defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer instancePort;
        private @Nullable Integer loadBalancerPort;
        public Builder() {}
        public Builder(NetworkInsightsAnalysisExplanationClassicLoadBalancerListener defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.instancePort = defaults.instancePort;
    	      this.loadBalancerPort = defaults.loadBalancerPort;
        }

        @CustomType.Setter
        public Builder instancePort(@Nullable Integer instancePort) {
            this.instancePort = instancePort;
            return this;
        }
        @CustomType.Setter
        public Builder loadBalancerPort(@Nullable Integer loadBalancerPort) {
            this.loadBalancerPort = loadBalancerPort;
            return this;
        }
        public NetworkInsightsAnalysisExplanationClassicLoadBalancerListener build() {
            final var o = new NetworkInsightsAnalysisExplanationClassicLoadBalancerListener();
            o.instancePort = instancePort;
            o.loadBalancerPort = loadBalancerPort;
            return o;
        }
    }
}
