Class CfnSubscriptionDefinition.SubscriptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnSubscriptionDefinition.SubscriptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriptionDefinition.SubscriptionProperty>
- Enclosing interface:
CfnSubscriptionDefinition.SubscriptionProperty
@Stability(Stable)
public static final class CfnSubscriptionDefinition.SubscriptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriptionDefinition.SubscriptionProperty>
A builder for
CfnSubscriptionDefinition.SubscriptionProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnSubscriptionDefinition.SubscriptionProperty.getId()
Sets the value ofCfnSubscriptionDefinition.SubscriptionProperty.getSource()
Sets the value ofCfnSubscriptionDefinition.SubscriptionProperty.getSubject()
Sets the value ofCfnSubscriptionDefinition.SubscriptionProperty.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnSubscriptionDefinition.SubscriptionProperty.getId()
- Parameters:
id
- A descriptive or arbitrary ID for the subscription. This parameter is required. 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 CfnSubscriptionDefinition.SubscriptionProperty.Builder source(String source) Sets the value ofCfnSubscriptionDefinition.SubscriptionProperty.getSource()
- Parameters:
source
- The originator of the message. This parameter is required. 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 CfnSubscriptionDefinition.SubscriptionProperty.Builder subject(String subject) Sets the value ofCfnSubscriptionDefinition.SubscriptionProperty.getSubject()
- Parameters:
subject
- The MQTT topic used to route the message. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public CfnSubscriptionDefinition.SubscriptionProperty.Builder target(String target) Sets the value ofCfnSubscriptionDefinition.SubscriptionProperty.getTarget()
- Parameters:
target
- The destination of the message. This parameter is required. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnSubscriptionDefinition.SubscriptionProperty>
- Returns:
- a new instance of
CfnSubscriptionDefinition.SubscriptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-