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