Interface Activity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Activity.Builder,,Activity> SdkBuilder<Activity.Builder,,Activity> SdkPojo
- Enclosing class:
Activity
@Mutable
@NotThreadSafe
public static interface Activity.Builder
extends SdkPojo, CopyableBuilder<Activity.Builder,Activity>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Activity.Builderapi(Consumer<ApiCall.Builder> api) Contains information about the API call that was observed, when the activity type isAPI_CALL.Contains information about the API call that was observed, when the activity type isAPI_CALL.The type of the observed activity.type(ActivityType type) The type of the observed 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
-
type
The type of the observed activity.
- Parameters:
type- The type of the observed activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the observed activity.
- Parameters:
type- The type of the observed activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
api
Contains information about the API call that was observed, when the activity type is
API_CALL.- Parameters:
api- Contains information about the API call that was observed, when the activity type isAPI_CALL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
api
Contains information about the API call that was observed, when the activity type is
This is a convenience method that creates an instance of theAPI_CALL.ApiCall.Builderavoiding the need to create one manually viaApiCall.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toapi(ApiCall).- Parameters:
api- a consumer that will call methods onApiCall.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-