Class CfnSubscriptionDefinitionVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnSubscriptionDefinitionVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriptionDefinitionVersionProps>
- Enclosing interface:
CfnSubscriptionDefinitionVersionProps
@Stability(Stable)
public static final class CfnSubscriptionDefinitionVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriptionDefinitionVersionProps>
A builder for
CfnSubscriptionDefinitionVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.subscriptionDefinitionId
(String subscriptionDefinitionId) Sets the value ofCfnSubscriptionDefinitionVersionProps.getSubscriptionDefinitionId()
subscriptions
(List<? extends Object> subscriptions) Sets the value ofCfnSubscriptionDefinitionVersionProps.getSubscriptions()
subscriptions
(IResolvable subscriptions) Sets the value ofCfnSubscriptionDefinitionVersionProps.getSubscriptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subscriptionDefinitionId
@Stability(Stable) public CfnSubscriptionDefinitionVersionProps.Builder subscriptionDefinitionId(String subscriptionDefinitionId) Sets the value ofCfnSubscriptionDefinitionVersionProps.getSubscriptionDefinitionId()
- Parameters:
subscriptionDefinitionId
- The ID of the subscription definition associated with this version. This parameter is required. This value is a GUID.- Returns:
this
-
subscriptions
@Stability(Stable) public CfnSubscriptionDefinitionVersionProps.Builder subscriptions(IResolvable subscriptions) Sets the value ofCfnSubscriptionDefinitionVersionProps.getSubscriptions()
- Parameters:
subscriptions
- The subscriptions in this version. This parameter is required.- Returns:
this
-
subscriptions
@Stability(Stable) public CfnSubscriptionDefinitionVersionProps.Builder subscriptions(List<? extends Object> subscriptions) Sets the value ofCfnSubscriptionDefinitionVersionProps.getSubscriptions()
- Parameters:
subscriptions
- The subscriptions in this version. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSubscriptionDefinitionVersionProps>
- Returns:
- a new instance of
CfnSubscriptionDefinitionVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-