@NotThreadSafe public static final class ImmutablePollingConfiguration.Builder extends Object
ImmutablePollingConfiguration.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutablePollingConfiguration |
build()
Builds a new
ImmutablePollingConfiguration. |
ImmutablePollingConfiguration.Builder |
executionId(String executionId)
Initializes the value for the
executionId attribute. |
ImmutablePollingConfiguration.Builder |
flowName(String flowName)
Initializes the value for the
flowName attribute. |
ImmutablePollingConfiguration.Builder |
from(PollingConfiguration instance)
Fill a builder with attribute values from the provided
PollingConfiguration instance. |
ImmutablePollingConfiguration.Builder |
maxPollTimeS(int maxPollTimeS)
Initializes the value for the
maxPollTimeS attribute. |
ImmutablePollingConfiguration.Builder |
timeBetweenPollsS(int timeBetweenPollsS)
Initializes the value for the
timeBetweenPollsS attribute. |
@CanIgnoreReturnValue public final ImmutablePollingConfiguration.Builder from(PollingConfiguration instance)
PollingConfiguration instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePollingConfiguration.Builder maxPollTimeS(int maxPollTimeS)
maxPollTimeS attribute.maxPollTimeS - The value for maxPollTimeSthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePollingConfiguration.Builder timeBetweenPollsS(int timeBetweenPollsS)
timeBetweenPollsS attribute.timeBetweenPollsS - The value for timeBetweenPollsSthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePollingConfiguration.Builder executionId(String executionId)
executionId attribute.executionId - The value for executionIdthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePollingConfiguration.Builder flowName(String flowName)
flowName attribute.flowName - The value for flowNamethis builder for use in a chained invocationpublic ImmutablePollingConfiguration build()
ImmutablePollingConfiguration.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.