Class CfnIPAMPool.SourceResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnIPAMPool.SourceResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIPAMPool.SourceResourceProperty>
- Enclosing interface:
CfnIPAMPool.SourceResourceProperty
@Stability(Stable)
public static final class CfnIPAMPool.SourceResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIPAMPool.SourceResourceProperty>
A builder for
CfnIPAMPool.SourceResourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.resourceId
(String resourceId) Sets the value ofCfnIPAMPool.SourceResourceProperty.getResourceId()
resourceOwner
(String resourceOwner) Sets the value ofCfnIPAMPool.SourceResourceProperty.getResourceOwner()
resourceRegion
(String resourceRegion) Sets the value ofCfnIPAMPool.SourceResourceProperty.getResourceRegion()
resourceType
(String resourceType) Sets the value ofCfnIPAMPool.SourceResourceProperty.getResourceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceId
Sets the value ofCfnIPAMPool.SourceResourceProperty.getResourceId()
- Parameters:
resourceId
- The source resource ID. This parameter is required.- Returns:
this
-
resourceOwner
@Stability(Stable) public CfnIPAMPool.SourceResourceProperty.Builder resourceOwner(String resourceOwner) Sets the value ofCfnIPAMPool.SourceResourceProperty.getResourceOwner()
- Parameters:
resourceOwner
- The source resource owner. This parameter is required.- Returns:
this
-
resourceRegion
@Stability(Stable) public CfnIPAMPool.SourceResourceProperty.Builder resourceRegion(String resourceRegion) Sets the value ofCfnIPAMPool.SourceResourceProperty.getResourceRegion()
- Parameters:
resourceRegion
- The source resource Region. This parameter is required.- Returns:
this
-
resourceType
@Stability(Stable) public CfnIPAMPool.SourceResourceProperty.Builder resourceType(String resourceType) Sets the value ofCfnIPAMPool.SourceResourceProperty.getResourceType()
- Parameters:
resourceType
- The source resource type. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIPAMPool.SourceResourceProperty>
- Returns:
- a new instance of
CfnIPAMPool.SourceResourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-