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