
com.pulumi.aws.appmesh.outputs.RouteSpecHttp2RouteMatchHeader 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.RouteSpecHttp2RouteMatchHeaderMatch;
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 RouteSpecHttp2RouteMatchHeader {
/**
* @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 RouteSpecHttp2RouteMatchHeaderMatch match;
/**
* @return Name for the HTTP header in the client request that will be matched on.
*
*/
private String name;
private RouteSpecHttp2RouteMatchHeader() {}
/**
* @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(RouteSpecHttp2RouteMatchHeader defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean invert;
private @Nullable RouteSpecHttp2RouteMatchHeaderMatch match;
private String name;
public Builder() {}
public Builder(RouteSpecHttp2RouteMatchHeader 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 RouteSpecHttp2RouteMatchHeaderMatch match) {
this.match = match;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("RouteSpecHttp2RouteMatchHeader", "name");
}
this.name = name;
return this;
}
public RouteSpecHttp2RouteMatchHeader build() {
final var _resultValue = new RouteSpecHttp2RouteMatchHeader();
_resultValue.invert = invert;
_resultValue.match = match;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy