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

com.pulumi.aws.appmesh.outputs.RouteSpecHttpRouteMatch 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.appmesh.outputs;

import com.pulumi.aws.appmesh.outputs.RouteSpecHttpRouteMatchHeader;
import com.pulumi.aws.appmesh.outputs.RouteSpecHttpRouteMatchPath;
import com.pulumi.aws.appmesh.outputs.RouteSpecHttpRouteMatchQueryParameter;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RouteSpecHttpRouteMatch {
    /**
     * @return Client request headers to match on.
     * 
     */
    private @Nullable List headers;
    /**
     * @return Client request header method to match on. Valid values: `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH`.
     * 
     */
    private @Nullable String method;
    /**
     * @return Client request path to match on.
     * 
     */
    private @Nullable RouteSpecHttpRouteMatchPath path;
    /**
     * @return The port number to match from the request.
     * 
     */
    private @Nullable Integer port;
    /**
     * @return Path with which to match requests.
     * This parameter must always start with /, which by itself matches all requests to the virtual router service name.
     * 
     */
    private @Nullable String prefix;
    /**
     * @return Client request query parameters to match on.
     * 
     */
    private @Nullable List queryParameters;
    /**
     * @return Client request header scheme to match on. Valid values: `http`, `https`.
     * 
     */
    private @Nullable String scheme;

    private RouteSpecHttpRouteMatch() {}
    /**
     * @return Client request headers to match on.
     * 
     */
    public List headers() {
        return this.headers == null ? List.of() : this.headers;
    }
    /**
     * @return Client request header method to match on. Valid values: `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH`.
     * 
     */
    public Optional method() {
        return Optional.ofNullable(this.method);
    }
    /**
     * @return Client request path to match on.
     * 
     */
    public Optional path() {
        return Optional.ofNullable(this.path);
    }
    /**
     * @return The port number to match from the request.
     * 
     */
    public Optional port() {
        return Optional.ofNullable(this.port);
    }
    /**
     * @return Path with which to match requests.
     * This parameter must always start with /, which by itself matches all requests to the virtual router service name.
     * 
     */
    public Optional prefix() {
        return Optional.ofNullable(this.prefix);
    }
    /**
     * @return Client request query parameters to match on.
     * 
     */
    public List queryParameters() {
        return this.queryParameters == null ? List.of() : this.queryParameters;
    }
    /**
     * @return Client request header scheme to match on. Valid values: `http`, `https`.
     * 
     */
    public Optional scheme() {
        return Optional.ofNullable(this.scheme);
    }

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

    public static Builder builder(RouteSpecHttpRouteMatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List headers;
        private @Nullable String method;
        private @Nullable RouteSpecHttpRouteMatchPath path;
        private @Nullable Integer port;
        private @Nullable String prefix;
        private @Nullable List queryParameters;
        private @Nullable String scheme;
        public Builder() {}
        public Builder(RouteSpecHttpRouteMatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.headers = defaults.headers;
    	      this.method = defaults.method;
    	      this.path = defaults.path;
    	      this.port = defaults.port;
    	      this.prefix = defaults.prefix;
    	      this.queryParameters = defaults.queryParameters;
    	      this.scheme = defaults.scheme;
        }

        @CustomType.Setter
        public Builder headers(@Nullable List headers) {

            this.headers = headers;
            return this;
        }
        public Builder headers(RouteSpecHttpRouteMatchHeader... headers) {
            return headers(List.of(headers));
        }
        @CustomType.Setter
        public Builder method(@Nullable String method) {

            this.method = method;
            return this;
        }
        @CustomType.Setter
        public Builder path(@Nullable RouteSpecHttpRouteMatchPath path) {

            this.path = path;
            return this;
        }
        @CustomType.Setter
        public Builder port(@Nullable Integer port) {

            this.port = port;
            return this;
        }
        @CustomType.Setter
        public Builder prefix(@Nullable String prefix) {

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

            this.queryParameters = queryParameters;
            return this;
        }
        public Builder queryParameters(RouteSpecHttpRouteMatchQueryParameter... queryParameters) {
            return queryParameters(List.of(queryParameters));
        }
        @CustomType.Setter
        public Builder scheme(@Nullable String scheme) {

            this.scheme = scheme;
            return this;
        }
        public RouteSpecHttpRouteMatch build() {
            final var _resultValue = new RouteSpecHttpRouteMatch();
            _resultValue.headers = headers;
            _resultValue.method = method;
            _resultValue.path = path;
            _resultValue.port = port;
            _resultValue.prefix = prefix;
            _resultValue.queryParameters = queryParameters;
            _resultValue.scheme = scheme;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy