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