Interface CfnRoute.HeaderMatchMethodProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRoute.HeaderMatchMethodProperty.Jsii$Proxy
Enclosing class:
CfnRoute

@Stability(Stable) public static interface CfnRoute.HeaderMatchMethodProperty extends software.amazon.jsii.JsiiSerializable
An object that represents the method and value to match with the header value sent in a request.

Specify one match method.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.appmesh.*;
 HeaderMatchMethodProperty headerMatchMethodProperty = HeaderMatchMethodProperty.builder()
         .exact("exact")
         .prefix("prefix")
         .range(MatchRangeProperty.builder()
                 .end(123)
                 .start(123)
                 .build())
         .regex("regex")
         .suffix("suffix")
         .build();
 
  • Method Details

    • getExact

      @Stability(Stable) @Nullable default String getExact()
      The value sent by the client must match the specified value exactly.
    • getPrefix

      @Stability(Stable) @Nullable default String getPrefix()
      The value sent by the client must begin with the specified characters.
    • getRange

      @Stability(Stable) @Nullable default Object getRange()
      An object that represents the range of values to match on.
    • getRegex

      @Stability(Stable) @Nullable default String getRegex()
      The value sent by the client must include the specified characters.
    • getSuffix

      @Stability(Stable) @Nullable default String getSuffix()
      The value sent by the client must end with the specified characters.
    • builder

      @Stability(Stable) static CfnRoute.HeaderMatchMethodProperty.Builder builder()
      Returns:
      a CfnRoute.HeaderMatchMethodProperty.Builder of CfnRoute.HeaderMatchMethodProperty