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

com.pulumi.aws.appmesh.outputs.GatewayRouteSpecHttp2RouteMatchHeaderMatch 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.GatewayRouteSpecHttp2RouteMatchHeaderMatchRange;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GatewayRouteSpecHttp2RouteMatchHeaderMatch {
    /**
     * @return Header value sent by the client must match the specified value exactly.
     * 
     */
    private @Nullable String exact;
    /**
     * @return Header value sent by the client must begin with the specified characters.
     * 
     */
    private @Nullable String prefix;
    /**
     * @return Object that specifies the range of numbers that the header value sent by the client must be included in.
     * 
     */
    private @Nullable GatewayRouteSpecHttp2RouteMatchHeaderMatchRange range;
    /**
     * @return Header value sent by the client must include the specified characters.
     * 
     */
    private @Nullable String regex;
    /**
     * @return Header value sent by the client must end with the specified characters.
     * 
     */
    private @Nullable String suffix;

    private GatewayRouteSpecHttp2RouteMatchHeaderMatch() {}
    /**
     * @return Header value sent by the client must match the specified value exactly.
     * 
     */
    public Optional exact() {
        return Optional.ofNullable(this.exact);
    }
    /**
     * @return Header value sent by the client must begin with the specified characters.
     * 
     */
    public Optional prefix() {
        return Optional.ofNullable(this.prefix);
    }
    /**
     * @return Object that specifies the range of numbers that the header value sent by the client must be included in.
     * 
     */
    public Optional range() {
        return Optional.ofNullable(this.range);
    }
    /**
     * @return Header value sent by the client must include the specified characters.
     * 
     */
    public Optional regex() {
        return Optional.ofNullable(this.regex);
    }
    /**
     * @return Header value sent by the client must end with the specified characters.
     * 
     */
    public Optional suffix() {
        return Optional.ofNullable(this.suffix);
    }

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

    public static Builder builder(GatewayRouteSpecHttp2RouteMatchHeaderMatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String exact;
        private @Nullable String prefix;
        private @Nullable GatewayRouteSpecHttp2RouteMatchHeaderMatchRange range;
        private @Nullable String regex;
        private @Nullable String suffix;
        public Builder() {}
        public Builder(GatewayRouteSpecHttp2RouteMatchHeaderMatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.exact = defaults.exact;
    	      this.prefix = defaults.prefix;
    	      this.range = defaults.range;
    	      this.regex = defaults.regex;
    	      this.suffix = defaults.suffix;
        }

        @CustomType.Setter
        public Builder exact(@Nullable String exact) {

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

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

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

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

            this.suffix = suffix;
            return this;
        }
        public GatewayRouteSpecHttp2RouteMatchHeaderMatch build() {
            final var _resultValue = new GatewayRouteSpecHttp2RouteMatchHeaderMatch();
            _resultValue.exact = exact;
            _resultValue.prefix = prefix;
            _resultValue.range = range;
            _resultValue.regex = regex;
            _resultValue.suffix = suffix;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy