Class CfnCanary.RetryConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.synthetics.CfnCanary.RetryConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanary.RetryConfigProperty>
- Enclosing interface:
CfnCanary.RetryConfigProperty
@Stability(Stable)
public static final class CfnCanary.RetryConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanary.RetryConfigProperty>
A builder for
CfnCanary.RetryConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxRetries
(Number maxRetries) Sets the value ofCfnCanary.RetryConfigProperty.getMaxRetries()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxRetries
Sets the value ofCfnCanary.RetryConfigProperty.getMaxRetries()
- Parameters:
maxRetries
- The maximum number of retries. This parameter is required. The value must be less than or equal to two.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCanary.RetryConfigProperty>
- Returns:
- a new instance of
CfnCanary.RetryConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-