Class CfnPolicy.IcmpTypeCodeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fms.CfnPolicy.IcmpTypeCodeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicy.IcmpTypeCodeProperty>
- Enclosing interface:
CfnPolicy.IcmpTypeCodeProperty
@Stability(Stable)
public static final class CfnPolicy.IcmpTypeCodeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicy.IcmpTypeCodeProperty>
A builder for
CfnPolicy.IcmpTypeCodeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPolicy.IcmpTypeCodeProperty.getCode()Sets the value ofCfnPolicy.IcmpTypeCodeProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofCfnPolicy.IcmpTypeCodeProperty.getCode()- Parameters:
code- ICMP code. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnPolicy.IcmpTypeCodeProperty.getType()- Parameters:
type- ICMP type. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicy.IcmpTypeCodeProperty>- Returns:
- a new instance of
CfnPolicy.IcmpTypeCodeProperty - Throws:
NullPointerException- if any required attribute was not provided
-