Class CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.greengrass.mixins.CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty>
- Enclosing interface:
CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty
@Stability(Stable)
public static final class CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty.getId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
@Stability(Stable) public CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty.Builder id(String id) Sets the value ofCfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty.getId()- Parameters:
id- A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription definition version. Maximum length is 128 characters with pattern[a-zA-Z0-9:_-]+.- Returns:
this
-
source
@Stability(Stable) public CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty.Builder source(String source) - Parameters:
source- The originator of the message. The value can be a thing ARN, the ARN of a Lambda function alias (recommended) or version, a connector ARN,cloud(which represents the AWS IoT cloud), orGGShadowService.- Returns:
this
-
subject
@Stability(Stable) public CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty.Builder subject(String subject) - Parameters:
subject- The MQTT topic used to route the message.- Returns:
this
-
target
@Stability(Stable) public CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty.Builder target(String target) - Parameters:
target- The destination of the message. The value can be a thing ARN, the ARN of a Lambda function alias (recommended) or version, a connector ARN,cloud(which represents the AWS IoT cloud), orGGShadowService.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty>- Returns:
- a new instance of
CfnSubscriptionDefinitionVersionPropsMixin.SubscriptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-