Interface GetAccountActivityResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetAccountActivityResponse.Builder,
,GetAccountActivityResponse> FreeTierResponse.Builder
,SdkBuilder<GetAccountActivityResponse.Builder,
,GetAccountActivityResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetAccountActivityResponse
-
Method Summary
Modifier and TypeMethodDescriptionactivityId
(String activityId) A unique identifier that identifies the activity.completedAt
(Instant completedAt) The timestamp when the activity is completed.description
(String description) Provides detailed information about the activity and its expected outcomes.estimatedTimeToCompleteInMinutes
(Integer estimatedTimeToCompleteInMinutes) The estimated time to complete the activity.The time by which the activity must be completed to receive a reward.instructionsUrl
(String instructionsUrl) The URL resource that provides guidance on activity requirements and completion.reward
(Consumer<ActivityReward.Builder> reward) A reward granted upon activity completion.reward
(ActivityReward reward) A reward granted upon activity completion.The timestamp when the activity started.The current activity status.status
(ActivityStatus status) The current activity status.A short activity title.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.freetier.model.FreeTierResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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
A short activity title.
- Parameters:
title
- A short activity title.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Provides detailed information about the activity and its expected outcomes.
- Parameters:
description
- Provides detailed information about the activity and its expected outcomes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current activity status.
- Parameters:
status
- The current activity status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current activity status.
- Parameters:
status
- The current activity status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instructionsUrl
The URL resource that provides guidance on activity requirements and completion.
- Parameters:
instructionsUrl
- The URL resource that provides guidance on activity requirements and completion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reward
A reward granted upon activity completion.
- Parameters:
reward
- A reward granted upon activity completion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reward
A reward granted upon activity completion.
This is a convenience method that creates an instance of theActivityReward.Builder
avoiding the need to create one manually viaActivityReward.builder()
.When the
Consumer
completes,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:
-
estimatedTimeToCompleteInMinutes
GetAccountActivityResponse.Builder estimatedTimeToCompleteInMinutes(Integer estimatedTimeToCompleteInMinutes) The estimated time to complete the activity. This is the duration in minutes.
- Parameters:
estimatedTimeToCompleteInMinutes
- The estimated time to complete the activity. This is the duration in minutes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresAt
The time by which the activity must be completed to receive a reward.
- Parameters:
expiresAt
- The time by which the activity must be completed to receive a reward.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
The timestamp when the activity started. This field appears only for activities in the
IN_PROGRESS
orCOMPLETED
states.- Parameters:
startedAt
- The timestamp when the activity started. This field appears only for activities in theIN_PROGRESS
orCOMPLETED
states.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completedAt
The timestamp when the activity is completed. This field appears only for activities in the
COMPLETED
state.- Parameters:
completedAt
- The timestamp when the activity is completed. This field appears only for activities in theCOMPLETED
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-