Class CfnSourceNetworkProps.Builder
java.lang.Object
software.amazon.awscdk.services.drs.CfnSourceNetworkProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSourceNetworkProps>
- Enclosing interface:
CfnSourceNetworkProps
@Stability(Stable)
public static final class CfnSourceNetworkProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSourceNetworkProps>
A builder for
CfnSourceNetworkProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.originAccountId(String originAccountId) Sets the value ofCfnSourceNetworkProps.getOriginAccountId()originRegion(String originRegion) Sets the value ofCfnSourceNetworkProps.getOriginRegion()Sets the value ofCfnSourceNetworkProps.getTags()Sets the value ofCfnSourceNetworkProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
originAccountId
Sets the value ofCfnSourceNetworkProps.getOriginAccountId()- Parameters:
originAccountId- The account ID containing the VPC to protect. This parameter is required.- Returns:
this
-
originRegion
Sets the value ofCfnSourceNetworkProps.getOriginRegion()- Parameters:
originRegion- The region containing the VPC to protect. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofCfnSourceNetworkProps.getVpcId()- Parameters:
vpcId- The VPC ID to protect. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnSourceNetworkProps.getTags()- Parameters:
tags- A set of tags associated with the Source Network.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSourceNetworkProps>- Returns:
- a new instance of
CfnSourceNetworkProps - Throws:
NullPointerException- if any required attribute was not provided
-