Interface ActivitySummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ActivitySummary.Builder,,ActivitySummary> SdkBuilder<ActivitySummary.Builder,,ActivitySummary> SdkPojo
- Enclosing class:
ActivitySummary
@Mutable
@NotThreadSafe
public static interface ActivitySummary.Builder
extends SdkPojo, CopyableBuilder<ActivitySummary.Builder,ActivitySummary>
-
Method Summary
Modifier and TypeMethodDescriptionactivityId(String activityId) A unique identifier that identifies the activity.default ActivitySummary.Builderreward(Consumer<ActivityReward.Builder> reward) The reward for the activity.reward(ActivityReward reward) The reward for the activity.The current status of the activity.status(ActivityStatus status) The current status of the activity.The title of the activity.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
activityId
A unique identifier that identifies the activity.
- Parameters:
activityId- A unique identifier that identifies the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
The title of the activity.
- Parameters:
title- The title of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reward
The reward for the activity.
- Parameters:
reward- The reward for the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reward
The reward for the activity.
This is a convenience method that creates an instance of theActivityReward.Builderavoiding the need to create one manually viaActivityReward.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreward(ActivityReward).- Parameters:
reward- a consumer that will call methods onActivityReward.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the activity.
- Parameters:
status- The current status of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the activity.
- Parameters:
status- The current status of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-