com.pulumi.aws.appmesh.outputs.RouteSpecHttpRouteMatchHeader Maven / Gradle / Ivy
// *** 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.RouteSpecHttpRouteMatchHeaderMatch;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RouteSpecHttpRouteMatchHeader {
/**
* @return If `true`, the match is on the opposite of the `match` method and value. Default is `false`.
*
*/
private @Nullable Boolean invert;
/**
* @return Method and value to match the header value sent with a request. Specify one match method.
*
*/
private @Nullable RouteSpecHttpRouteMatchHeaderMatch match;
/**
* @return Name for the HTTP header in the client request that will be matched on.
*
*/
private String name;
private RouteSpecHttpRouteMatchHeader() {}
/**
* @return If `true`, the match is on the opposite of the `match` method and value. Default is `false`.
*
*/
public Optional invert() {
return Optional.ofNullable(this.invert);
}
/**
* @return Method and value to match the header value sent with a request. Specify one match method.
*
*/
public Optional match() {
return Optional.ofNullable(this.match);
}
/**
* @return Name for the HTTP header in the client request that will be matched on.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RouteSpecHttpRouteMatchHeader defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean invert;
private @Nullable RouteSpecHttpRouteMatchHeaderMatch match;
private String name;
public Builder() {}
public Builder(RouteSpecHttpRouteMatchHeader defaults) {
Objects.requireNonNull(defaults);
this.invert = defaults.invert;
this.match = defaults.match;
this.name = defaults.name;
}
@CustomType.Setter
public Builder invert(@Nullable Boolean invert) {
this.invert = invert;
return this;
}
@CustomType.Setter
public Builder match(@Nullable RouteSpecHttpRouteMatchHeaderMatch match) {
this.match = match;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("RouteSpecHttpRouteMatchHeader", "name");
}
this.name = name;
return this;
}
public RouteSpecHttpRouteMatchHeader build() {
final var _resultValue = new RouteSpecHttpRouteMatchHeader();
_resultValue.invert = invert;
_resultValue.match = match;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy