Interface PutSegmentSubscriptionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutSegmentSubscriptionResponse.Builder,,PutSegmentSubscriptionResponse> CustomerProfilesResponse.Builder,SdkBuilder<PutSegmentSubscriptionResponse.Builder,,PutSegmentSubscriptionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutSegmentSubscriptionResponse
-
Method Summary
Modifier and TypeMethodDescriptionscheduleConfiguration(Consumer<ScheduleConfiguration.Builder> scheduleConfiguration) The schedule configuration for the subscription, if configured.scheduleConfiguration(ScheduleConfiguration scheduleConfiguration) The schedule configuration for the subscription, if configured.The timestamp of when the subscription was started.The current lifecycle status of the subscription.status(SegmentSubscriptionStatus status) The current lifecycle status of the subscription.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.customerprofiles.model.CustomerProfilesResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
status
The current lifecycle status of the subscription. The following are valid values:
-
STARTING: Initial snapshot is in progress.
-
RUNNING: Notifications are active and running.
-
STOPPED: Notifications have been stopped.
-
FAILED: Notifications failed (for example, the Amazon Kinesis data stream became inaccessible).
- Parameters:
status- The current lifecycle status of the subscription. The following are valid values:-
STARTING: Initial snapshot is in progress.
-
RUNNING: Notifications are active and running.
-
STOPPED: Notifications have been stopped.
-
FAILED: Notifications failed (for example, the Amazon Kinesis data stream became inaccessible).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
status
The current lifecycle status of the subscription. The following are valid values:
-
STARTING: Initial snapshot is in progress.
-
RUNNING: Notifications are active and running.
-
STOPPED: Notifications have been stopped.
-
FAILED: Notifications failed (for example, the Amazon Kinesis data stream became inaccessible).
- Parameters:
status- The current lifecycle status of the subscription. The following are valid values:-
STARTING: Initial snapshot is in progress.
-
RUNNING: Notifications are active and running.
-
STOPPED: Notifications have been stopped.
-
FAILED: Notifications failed (for example, the Amazon Kinesis data stream became inaccessible).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
scheduleConfiguration
PutSegmentSubscriptionResponse.Builder scheduleConfiguration(ScheduleConfiguration scheduleConfiguration) The schedule configuration for the subscription, if configured.
- Parameters:
scheduleConfiguration- The schedule configuration for the subscription, if configured.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleConfiguration
default PutSegmentSubscriptionResponse.Builder scheduleConfiguration(Consumer<ScheduleConfiguration.Builder> scheduleConfiguration) The schedule configuration for the subscription, if configured.
This is a convenience method that creates an instance of theScheduleConfiguration.Builderavoiding the need to create one manually viaScheduleConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscheduleConfiguration(ScheduleConfiguration).- Parameters:
scheduleConfiguration- a consumer that will call methods onScheduleConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startedAt
The timestamp of when the subscription was started.
- Parameters:
startedAt- The timestamp of when the subscription was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-