Class PrefixListReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.ec2.PrefixListReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrefixListReference>
- Enclosing interface:
PrefixListReference
@Stability(Stable)
public static final class PrefixListReference.Builder
extends Object
implements software.amazon.jsii.Builder<PrefixListReference>
A builder for
PrefixListReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.prefixListArn(String prefixListArn) Sets the value ofPrefixListReference.getPrefixListArn()prefixListId(String prefixListId) Sets the value ofPrefixListReference.getPrefixListId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prefixListArn
Sets the value ofPrefixListReference.getPrefixListArn()- Parameters:
prefixListArn- The ARN of the PrefixList resource. This parameter is required.- Returns:
this
-
prefixListId
Sets the value ofPrefixListReference.getPrefixListId()- Parameters:
prefixListId- The PrefixListId of the PrefixList resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrefixListReference>- Returns:
- a new instance of
PrefixListReference - Throws:
NullPointerException- if any required attribute was not provided
-