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

import com.pulumi.aws.appmesh.outputs.MeshSpecEgressFilter;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MeshSpec {
    /**
     * @return Egress filter rules for the service mesh.
     * 
     */
    private @Nullable MeshSpecEgressFilter egressFilter;

    private MeshSpec() {}
    /**
     * @return Egress filter rules for the service mesh.
     * 
     */
    public Optional<MeshSpecEgressFilter> egressFilter() {
        return Optional.ofNullable(this.egressFilter);
    }

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

    public static Builder builder(MeshSpec defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable MeshSpecEgressFilter egressFilter;
        public Builder() {}
        public Builder(MeshSpec defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.egressFilter = defaults.egressFilter;
        }

        @CustomType.Setter
        public Builder egressFilter(@Nullable MeshSpecEgressFilter egressFilter) {
            this.egressFilter = egressFilter;
            return this;
        }
        public MeshSpec build() {
            final var o = new MeshSpec();
            o.egressFilter = egressFilter;
            return o;
        }
    }
}
