Class CfnPrefixList.EntryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnPrefixList.EntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrefixList.EntryProperty>
- Enclosing interface:
CfnPrefixList.EntryProperty
@Stability(Stable)
public static final class CfnPrefixList.EntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrefixList.EntryProperty>
A builder for
CfnPrefixList.EntryProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPrefixList.EntryProperty.getCidr()
description
(String description) Sets the value ofCfnPrefixList.EntryProperty.getDescription()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
Sets the value ofCfnPrefixList.EntryProperty.getCidr()
- Parameters:
cidr
- The CIDR block. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnPrefixList.EntryProperty.getDescription()
- Parameters:
description
- A description for the entry. Constraints: Up to 255 characters in length.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPrefixList.EntryProperty>
- Returns:
- a new instance of
CfnPrefixList.EntryProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-