@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePollingConfiguration extends Object implements PollingConfiguration
PollingConfiguration.
Use the builder to create immutable instances:
ImmutablePollingConfiguration.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePollingConfiguration.Builder
Builds instances of type
ImmutablePollingConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePollingConfiguration.Builder |
builder()
Creates a builder for
ImmutablePollingConfiguration. |
static ImmutablePollingConfiguration |
copyOf(PollingConfiguration instance)
Creates an immutable copy of a
PollingConfiguration value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePollingConfiguration that have equal attribute values. |
String |
executionId() |
String |
flowName() |
int |
hashCode()
Computes a hash code from attributes:
maxPollTimeS, timeBetweenPollsS, executionId, flowName. |
int |
maxPollTimeS() |
int |
timeBetweenPollsS() |
String |
toString()
Prints the immutable value
PollingConfiguration with attribute values. |
ImmutablePollingConfiguration |
withExecutionId(String value)
Copy the current immutable object by setting a value for the
executionId attribute. |
ImmutablePollingConfiguration |
withFlowName(String value)
Copy the current immutable object by setting a value for the
flowName attribute. |
ImmutablePollingConfiguration |
withMaxPollTimeS(int value)
Copy the current immutable object by setting a value for the
maxPollTimeS attribute. |
ImmutablePollingConfiguration |
withTimeBetweenPollsS(int value)
Copy the current immutable object by setting a value for the
timeBetweenPollsS attribute. |
public int maxPollTimeS()
maxPollTimeS in interface PollingConfigurationmaxPollTimeS attributepublic int timeBetweenPollsS()
timeBetweenPollsS in interface PollingConfigurationtimeBetweenPollsS attributepublic String executionId()
executionId in interface PollingConfigurationexecutionId attributepublic String flowName()
flowName in interface PollingConfigurationflowName attributepublic final ImmutablePollingConfiguration withMaxPollTimeS(int value)
maxPollTimeS attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for maxPollTimeSthis objectpublic final ImmutablePollingConfiguration withTimeBetweenPollsS(int value)
timeBetweenPollsS attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for timeBetweenPollsSthis objectpublic final ImmutablePollingConfiguration withExecutionId(String value)
executionId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for executionIdthis objectpublic final ImmutablePollingConfiguration withFlowName(String value)
flowName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for flowNamethis objectpublic boolean equals(@Nullable Object another)
ImmutablePollingConfiguration that have equal attribute values.public int hashCode()
maxPollTimeS, timeBetweenPollsS, executionId, flowName.public String toString()
PollingConfiguration with attribute values.public static ImmutablePollingConfiguration copyOf(PollingConfiguration instance)
PollingConfiguration value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutablePollingConfiguration.Builder builder()
ImmutablePollingConfiguration.
ImmutablePollingConfiguration.builder()
.maxPollTimeS(int) // required maxPollTimeS
.timeBetweenPollsS(int) // required timeBetweenPollsS
.executionId(String) // required executionId
.flowName(String) // required flowName
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.