// *** 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.GetGatewayRouteSpecHttp2RouteAction;
import com.pulumi.aws.appmesh.outputs.GetGatewayRouteSpecHttp2RouteMatch;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetGatewayRouteSpecHttp2Route {
    private List<GetGatewayRouteSpecHttp2RouteAction> actions;
    private List<GetGatewayRouteSpecHttp2RouteMatch> matches;

    private GetGatewayRouteSpecHttp2Route() {}
    public List<GetGatewayRouteSpecHttp2RouteAction> actions() {
        return this.actions;
    }
    public List<GetGatewayRouteSpecHttp2RouteMatch> matches() {
        return this.matches;
    }

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

    public static Builder builder(GetGatewayRouteSpecHttp2Route defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetGatewayRouteSpecHttp2RouteAction> actions;
        private List<GetGatewayRouteSpecHttp2RouteMatch> matches;
        public Builder() {}
        public Builder(GetGatewayRouteSpecHttp2Route defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actions = defaults.actions;
    	      this.matches = defaults.matches;
        }

        @CustomType.Setter
        public Builder actions(List<GetGatewayRouteSpecHttp2RouteAction> actions) {
            this.actions = Objects.requireNonNull(actions);
            return this;
        }
        public Builder actions(GetGatewayRouteSpecHttp2RouteAction... actions) {
            return actions(List.of(actions));
        }
        @CustomType.Setter
        public Builder matches(List<GetGatewayRouteSpecHttp2RouteMatch> matches) {
            this.matches = Objects.requireNonNull(matches);
            return this;
        }
        public Builder matches(GetGatewayRouteSpecHttp2RouteMatch... matches) {
            return matches(List.of(matches));
        }
        public GetGatewayRouteSpecHttp2Route build() {
            final var o = new GetGatewayRouteSpecHttp2Route();
            o.actions = actions;
            o.matches = matches;
            return o;
        }
    }
}
