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

com.pulumi.aws.appmesh.outputs.GetRouteSpecHttpRouteMatch 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.GetRouteSpecHttpRouteMatchHeader;
import com.pulumi.aws.appmesh.outputs.GetRouteSpecHttpRouteMatchPath;
import com.pulumi.aws.appmesh.outputs.GetRouteSpecHttpRouteMatchQueryParameter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetRouteSpecHttpRouteMatch {
    private List headers;
    private String method;
    private List paths;
    private Integer port;
    private String prefix;
    private List queryParameters;
    private String scheme;

    private GetRouteSpecHttpRouteMatch() {}
    public List headers() {
        return this.headers;
    }
    public String method() {
        return this.method;
    }
    public List paths() {
        return this.paths;
    }
    public Integer port() {
        return this.port;
    }
    public String prefix() {
        return this.prefix;
    }
    public List queryParameters() {
        return this.queryParameters;
    }
    public String scheme() {
        return this.scheme;
    }

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

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

        @CustomType.Setter
        public Builder headers(List headers) {
            if (headers == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteMatch", "headers");
            }
            this.headers = headers;
            return this;
        }
        public Builder headers(GetRouteSpecHttpRouteMatchHeader... headers) {
            return headers(List.of(headers));
        }
        @CustomType.Setter
        public Builder method(String method) {
            if (method == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteMatch", "method");
            }
            this.method = method;
            return this;
        }
        @CustomType.Setter
        public Builder paths(List paths) {
            if (paths == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteMatch", "paths");
            }
            this.paths = paths;
            return this;
        }
        public Builder paths(GetRouteSpecHttpRouteMatchPath... paths) {
            return paths(List.of(paths));
        }
        @CustomType.Setter
        public Builder port(Integer port) {
            if (port == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteMatch", "port");
            }
            this.port = port;
            return this;
        }
        @CustomType.Setter
        public Builder prefix(String prefix) {
            if (prefix == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteMatch", "prefix");
            }
            this.prefix = prefix;
            return this;
        }
        @CustomType.Setter
        public Builder queryParameters(List queryParameters) {
            if (queryParameters == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteMatch", "queryParameters");
            }
            this.queryParameters = queryParameters;
            return this;
        }
        public Builder queryParameters(GetRouteSpecHttpRouteMatchQueryParameter... queryParameters) {
            return queryParameters(List.of(queryParameters));
        }
        @CustomType.Setter
        public Builder scheme(String scheme) {
            if (scheme == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteMatch", "scheme");
            }
            this.scheme = scheme;
            return this;
        }
        public GetRouteSpecHttpRouteMatch build() {
            final var _resultValue = new GetRouteSpecHttpRouteMatch();
            _resultValue.headers = headers;
            _resultValue.method = method;
            _resultValue.paths = paths;
            _resultValue.port = port;
            _resultValue.prefix = prefix;
            _resultValue.queryParameters = queryParameters;
            _resultValue.scheme = scheme;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy