Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteMatchArgs Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.inputs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteMatchHeaderArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteMatchPathArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteMatchQueryParameterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class RouteSpecHttpRouteMatchArgs extends com.pulumi.resources.ResourceArgs {
public static final RouteSpecHttpRouteMatchArgs Empty = new RouteSpecHttpRouteMatchArgs();
/**
* Client request headers to match on.
*
*/
@Import(name="headers")
private @Nullable Output> headers;
/**
* @return Client request headers to match on.
*
*/
public Optional>> headers() {
return Optional.ofNullable(this.headers);
}
/**
* Client request header method to match on. Valid values: `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH`.
*
*/
@Import(name="method")
private @Nullable Output method;
/**
* @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);
}
/**
* Client request path to match on.
*
*/
@Import(name="path")
private @Nullable Output path;
/**
* @return Client request path to match on.
*
*/
public Optional> path() {
return Optional.ofNullable(this.path);
}
/**
* The port number to match from the request.
*
*/
@Import(name="port")
private @Nullable Output port;
/**
* @return The port number to match from the request.
*
*/
public Optional> port() {
return Optional.ofNullable(this.port);
}
/**
* Path with which to match requests.
* This parameter must always start with /, which by itself matches all requests to the virtual router service name.
*
*/
@Import(name="prefix")
private @Nullable Output prefix;
/**
* @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);
}
/**
* Client request query parameters to match on.
*
*/
@Import(name="queryParameters")
private @Nullable Output> queryParameters;
/**
* @return Client request query parameters to match on.
*
*/
public Optional>> queryParameters() {
return Optional.ofNullable(this.queryParameters);
}
/**
* Client request header scheme to match on. Valid values: `http`, `https`.
*
*/
@Import(name="scheme")
private @Nullable Output scheme;
/**
* @return Client request header scheme to match on. Valid values: `http`, `https`.
*
*/
public Optional> scheme() {
return Optional.ofNullable(this.scheme);
}
private RouteSpecHttpRouteMatchArgs() {}
private RouteSpecHttpRouteMatchArgs(RouteSpecHttpRouteMatchArgs $) {
this.headers = $.headers;
this.method = $.method;
this.path = $.path;
this.port = $.port;
this.prefix = $.prefix;
this.queryParameters = $.queryParameters;
this.scheme = $.scheme;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RouteSpecHttpRouteMatchArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RouteSpecHttpRouteMatchArgs $;
public Builder() {
$ = new RouteSpecHttpRouteMatchArgs();
}
public Builder(RouteSpecHttpRouteMatchArgs defaults) {
$ = new RouteSpecHttpRouteMatchArgs(Objects.requireNonNull(defaults));
}
/**
* @param headers Client request headers to match on.
*
* @return builder
*
*/
public Builder headers(@Nullable Output> headers) {
$.headers = headers;
return this;
}
/**
* @param headers Client request headers to match on.
*
* @return builder
*
*/
public Builder headers(List headers) {
return headers(Output.of(headers));
}
/**
* @param headers Client request headers to match on.
*
* @return builder
*
*/
public Builder headers(RouteSpecHttpRouteMatchHeaderArgs... headers) {
return headers(List.of(headers));
}
/**
* @param method Client request header method to match on. Valid values: `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH`.
*
* @return builder
*
*/
public Builder method(@Nullable Output method) {
$.method = method;
return this;
}
/**
* @param method Client request header method to match on. Valid values: `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH`.
*
* @return builder
*
*/
public Builder method(String method) {
return method(Output.of(method));
}
/**
* @param path Client request path to match on.
*
* @return builder
*
*/
public Builder path(@Nullable Output path) {
$.path = path;
return this;
}
/**
* @param path Client request path to match on.
*
* @return builder
*
*/
public Builder path(RouteSpecHttpRouteMatchPathArgs path) {
return path(Output.of(path));
}
/**
* @param port The port number to match from the request.
*
* @return builder
*
*/
public Builder port(@Nullable Output port) {
$.port = port;
return this;
}
/**
* @param port The port number to match from the request.
*
* @return builder
*
*/
public Builder port(Integer port) {
return port(Output.of(port));
}
/**
* @param prefix Path with which to match requests.
* This parameter must always start with /, which by itself matches all requests to the virtual router service name.
*
* @return builder
*
*/
public Builder prefix(@Nullable Output prefix) {
$.prefix = prefix;
return this;
}
/**
* @param prefix Path with which to match requests.
* This parameter must always start with /, which by itself matches all requests to the virtual router service name.
*
* @return builder
*
*/
public Builder prefix(String prefix) {
return prefix(Output.of(prefix));
}
/**
* @param queryParameters Client request query parameters to match on.
*
* @return builder
*
*/
public Builder queryParameters(@Nullable Output> queryParameters) {
$.queryParameters = queryParameters;
return this;
}
/**
* @param queryParameters Client request query parameters to match on.
*
* @return builder
*
*/
public Builder queryParameters(List queryParameters) {
return queryParameters(Output.of(queryParameters));
}
/**
* @param queryParameters Client request query parameters to match on.
*
* @return builder
*
*/
public Builder queryParameters(RouteSpecHttpRouteMatchQueryParameterArgs... queryParameters) {
return queryParameters(List.of(queryParameters));
}
/**
* @param scheme Client request header scheme to match on. Valid values: `http`, `https`.
*
* @return builder
*
*/
public Builder scheme(@Nullable Output scheme) {
$.scheme = scheme;
return this;
}
/**
* @param scheme Client request header scheme to match on. Valid values: `http`, `https`.
*
* @return builder
*
*/
public Builder scheme(String scheme) {
return scheme(Output.of(scheme));
}
public RouteSpecHttpRouteMatchArgs build() {
return $;
}
}
}