Interface Subscription.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Subscription.Builder,Subscription>,SdkBuilder<Subscription.Builder,Subscription>,SdkPojo
- Enclosing class:
- Subscription
public static interface Subscription.Builder extends SdkPojo, CopyableBuilder<Subscription.Builder,Subscription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subscription.Builderid(String id)A descriptive or arbitrary ID for the subscription.Subscription.Buildersource(String source)The source of the subscription.Subscription.Buildersubject(String subject)The MQTT topic used to route the message.Subscription.Buildertarget(String target)Where the message is sent to.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
id
Subscription.Builder id(String id)
A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.- Parameters:
id- A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Subscription.Builder source(String source)
The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.- Parameters:
source- The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subject
Subscription.Builder subject(String subject)
The MQTT topic used to route the message.- Parameters:
subject- The MQTT topic used to route the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
Subscription.Builder target(String target)
Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.- Parameters:
target- Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-