Package software.amazon.awscdk
Class CfnDynamicReferenceProps.Builder
java.lang.Object
software.amazon.awscdk.CfnDynamicReferenceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDynamicReferenceProps>
- Enclosing interface:
CfnDynamicReferenceProps
@Stability(Stable)
public static final class CfnDynamicReferenceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDynamicReferenceProps>
A builder for
CfnDynamicReferenceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.referenceKey
(String referenceKey) Sets the value ofCfnDynamicReferenceProps.getReferenceKey()
service
(CfnDynamicReferenceService service) Sets the value ofCfnDynamicReferenceProps.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
referenceKey
Sets the value ofCfnDynamicReferenceProps.getReferenceKey()
- Parameters:
referenceKey
- The reference key of the dynamic reference. This parameter is required.- Returns:
this
-
service
@Stability(Stable) public CfnDynamicReferenceProps.Builder service(CfnDynamicReferenceService service) Sets the value ofCfnDynamicReferenceProps.getService()
- Parameters:
service
- The service to retrieve the dynamic reference from. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDynamicReferenceProps>
- Returns:
- a new instance of
CfnDynamicReferenceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-