Class CfnRoute.HttpRouteProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.HttpRouteProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.HttpRouteProperty>
- Enclosing interface:
- CfnRoute.HttpRouteProperty
@Stability(Stable)
public static final class CfnRoute.HttpRouteProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.HttpRouteProperty>
A builder for
CfnRoute.HttpRouteProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction
(IResolvable action) Sets the value ofCfnRoute.HttpRouteProperty.getAction()
Sets the value ofCfnRoute.HttpRouteProperty.getAction()
build()
Builds the configured instance.match
(IResolvable match) Sets the value ofCfnRoute.HttpRouteProperty.getMatch()
Sets the value ofCfnRoute.HttpRouteProperty.getMatch()
retryPolicy
(IResolvable retryPolicy) Sets the value ofCfnRoute.HttpRouteProperty.getRetryPolicy()
retryPolicy
(CfnRoute.HttpRetryPolicyProperty retryPolicy) Sets the value ofCfnRoute.HttpRouteProperty.getRetryPolicy()
timeout
(IResolvable timeout) Sets the value ofCfnRoute.HttpRouteProperty.getTimeout()
timeout
(CfnRoute.HttpTimeoutProperty timeout) Sets the value ofCfnRoute.HttpRouteProperty.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnRoute.HttpRouteProperty.getAction()
- Parameters:
action
- An object that represents the action to take if a match is determined. This parameter is required.- Returns:
this
-
action
@Stability(Stable) public CfnRoute.HttpRouteProperty.Builder action(CfnRoute.HttpRouteActionProperty action) Sets the value ofCfnRoute.HttpRouteProperty.getAction()
- Parameters:
action
- An object that represents the action to take if a match is determined. This parameter is required.- Returns:
this
-
match
Sets the value ofCfnRoute.HttpRouteProperty.getMatch()
- Parameters:
match
- An object that represents the criteria for determining a request match. This parameter is required.- Returns:
this
-
match
@Stability(Stable) public CfnRoute.HttpRouteProperty.Builder match(CfnRoute.HttpRouteMatchProperty match) Sets the value ofCfnRoute.HttpRouteProperty.getMatch()
- Parameters:
match
- An object that represents the criteria for determining a request match. This parameter is required.- Returns:
this
-
retryPolicy
Sets the value ofCfnRoute.HttpRouteProperty.getRetryPolicy()
- Parameters:
retryPolicy
- An object that represents a retry policy.- Returns:
this
-
retryPolicy
@Stability(Stable) public CfnRoute.HttpRouteProperty.Builder retryPolicy(CfnRoute.HttpRetryPolicyProperty retryPolicy) Sets the value ofCfnRoute.HttpRouteProperty.getRetryPolicy()
- Parameters:
retryPolicy
- An object that represents a retry policy.- Returns:
this
-
timeout
Sets the value ofCfnRoute.HttpRouteProperty.getTimeout()
- Parameters:
timeout
- An object that represents types of timeouts.- Returns:
this
-
timeout
@Stability(Stable) public CfnRoute.HttpRouteProperty.Builder timeout(CfnRoute.HttpTimeoutProperty timeout) Sets the value ofCfnRoute.HttpRouteProperty.getTimeout()
- Parameters:
timeout
- An object that represents types of timeouts.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRoute.HttpRouteProperty>
- Returns:
- a new instance of
CfnRoute.HttpRouteProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-