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