Class CfnRoute.UriPathRouteInputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.refactorspaces.CfnRoute.UriPathRouteInputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.UriPathRouteInputProperty>
- Enclosing interface:
- CfnRoute.UriPathRouteInputProperty
@Stability(Stable)
public static final class CfnRoute.UriPathRouteInputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.UriPathRouteInputProperty>
A builder for
CfnRoute.UriPathRouteInputProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivationState(String activationState) Sets the value ofCfnRoute.UriPathRouteInputProperty.getActivationState()appendSourcePath(Boolean appendSourcePath) Sets the value ofCfnRoute.UriPathRouteInputProperty.getAppendSourcePath()appendSourcePath(IResolvable appendSourcePath) Sets the value ofCfnRoute.UriPathRouteInputProperty.getAppendSourcePath()build()Builds the configured instance.includeChildPaths(Boolean includeChildPaths) Sets the value ofCfnRoute.UriPathRouteInputProperty.getIncludeChildPaths()includeChildPaths(IResolvable includeChildPaths) Sets the value ofCfnRoute.UriPathRouteInputProperty.getIncludeChildPaths()Sets the value ofCfnRoute.UriPathRouteInputProperty.getMethods()sourcePath(String sourcePath) Sets the value ofCfnRoute.UriPathRouteInputProperty.getSourcePath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
activationState
@Stability(Stable) public CfnRoute.UriPathRouteInputProperty.Builder activationState(String activationState) Sets the value ofCfnRoute.UriPathRouteInputProperty.getActivationState()- Parameters:
activationState- If set toACTIVE, traffic is forwarded to this route’s service after the route is created. This parameter is required.- Returns:
this
-
appendSourcePath
@Stability(Stable) public CfnRoute.UriPathRouteInputProperty.Builder appendSourcePath(Boolean appendSourcePath) Sets the value ofCfnRoute.UriPathRouteInputProperty.getAppendSourcePath()- Parameters:
appendSourcePath- If set totrue, this option appends the source path to the service URL endpoint.- Returns:
this
-
appendSourcePath
@Stability(Stable) public CfnRoute.UriPathRouteInputProperty.Builder appendSourcePath(IResolvable appendSourcePath) Sets the value ofCfnRoute.UriPathRouteInputProperty.getAppendSourcePath()- Parameters:
appendSourcePath- If set totrue, this option appends the source path to the service URL endpoint.- Returns:
this
-
includeChildPaths
@Stability(Stable) public CfnRoute.UriPathRouteInputProperty.Builder includeChildPaths(Boolean includeChildPaths) Sets the value ofCfnRoute.UriPathRouteInputProperty.getIncludeChildPaths()- Parameters:
includeChildPaths- Indicates whether to match all subpaths of the given source path. If this value isfalse, requests must match the source path exactly before they are forwarded to this route's service.- Returns:
this
-
includeChildPaths
@Stability(Stable) public CfnRoute.UriPathRouteInputProperty.Builder includeChildPaths(IResolvable includeChildPaths) Sets the value ofCfnRoute.UriPathRouteInputProperty.getIncludeChildPaths()- Parameters:
includeChildPaths- Indicates whether to match all subpaths of the given source path. If this value isfalse, requests must match the source path exactly before they are forwarded to this route's service.- Returns:
this
-
methods
Sets the value ofCfnRoute.UriPathRouteInputProperty.getMethods()- Parameters:
methods- A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.- Returns:
this
-
sourcePath
Sets the value ofCfnRoute.UriPathRouteInputProperty.getSourcePath()- Parameters:
sourcePath- This is the path that Refactor Spaces uses to match traffic. Paths must start with/and are relative to the base of the application. To use path parameters in the source path, add a variable in curly braces. For example, the resource path {user} represents a path parameter called 'user'.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoute.UriPathRouteInputProperty>- Returns:
- a new instance of
CfnRoute.UriPathRouteInputProperty - Throws:
NullPointerException- if any required attribute was not provided
-