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