@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableRawMetrics extends Object implements RawMetrics
RawMetrics.
Use the builder to create immutable instances:
new RawMetrics.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableRawMetrics.Builder
Builds instances of type
ImmutableRawMetrics. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableRawMetrics |
copyOf(RawMetrics instance)
Creates an immutable copy of a
RawMetrics value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRawMetrics that have equal attribute values. |
Long |
getErrors() |
String |
getIntegrationId() |
Optional<Date> |
getLastProcessed() |
Long |
getMessages() |
String |
getPod() |
Optional<Date> |
getResetDate() |
Optional<Date> |
getStartDate() |
String |
getVersion() |
int |
hashCode()
Computes a hash code from attributes:
integrationId, version, pod, messages, errors, startDate, resetDate, lastProcessed. |
String |
toString()
Prints the immutable value
RawMetrics with attribute values. |
ImmutableRawMetrics |
withErrors(Long value)
Copy the current immutable object by setting a value for the
errors attribute. |
ImmutableRawMetrics |
withIntegrationId(String value)
Copy the current immutable object by setting a value for the
integrationId attribute. |
ImmutableRawMetrics |
withLastProcessed(Date value)
Copy the current immutable object by setting a present value for the optional
lastProcessed attribute. |
ImmutableRawMetrics |
withLastProcessed(Optional<? extends Date> optional)
Copy the current immutable object by setting an optional value for the
lastProcessed attribute. |
ImmutableRawMetrics |
withMessages(Long value)
Copy the current immutable object by setting a value for the
messages attribute. |
ImmutableRawMetrics |
withPod(String value)
Copy the current immutable object by setting a value for the
pod attribute. |
ImmutableRawMetrics |
withResetDate(Date value)
Copy the current immutable object by setting a present value for the optional
resetDate attribute. |
ImmutableRawMetrics |
withResetDate(Optional<? extends Date> optional)
Copy the current immutable object by setting an optional value for the
resetDate attribute. |
ImmutableRawMetrics |
withStartDate(Date value)
Copy the current immutable object by setting a present value for the optional
startDate attribute. |
ImmutableRawMetrics |
withStartDate(Optional<? extends Date> optional)
Copy the current immutable object by setting an optional value for the
startDate attribute. |
ImmutableRawMetrics |
withVersion(String value)
Copy the current immutable object by setting a value for the
version attribute. |
public String getIntegrationId()
getIntegrationId in interface RawMetricsintegrationId attributepublic String getVersion()
getVersion in interface RawMetricsversion attributepublic String getPod()
getPod in interface RawMetricspod attributepublic Long getMessages()
getMessages in interface RawMetricsmessages attributepublic Long getErrors()
getErrors in interface RawMetricserrors attributepublic Optional<Date> getStartDate()
getStartDate in interface RawMetricsstartDate attributepublic Optional<Date> getResetDate()
getResetDate in interface RawMetricsresetDate attributepublic Optional<Date> getLastProcessed()
getLastProcessed in interface RawMetricslastProcessed attributepublic final ImmutableRawMetrics withIntegrationId(String value)
integrationId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for integrationIdthis objectpublic final ImmutableRawMetrics withVersion(String value)
version attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for versionthis objectpublic final ImmutableRawMetrics withPod(String value)
pod attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for podthis objectpublic final ImmutableRawMetrics withMessages(Long value)
messages attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for messagesthis objectpublic final ImmutableRawMetrics withErrors(Long value)
errors attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for errorsthis objectpublic final ImmutableRawMetrics withStartDate(Date value)
startDate attribute.value - The value for startDatethis objectpublic final ImmutableRawMetrics withStartDate(Optional<? extends Date> optional)
startDate attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for startDatethis objectpublic final ImmutableRawMetrics withResetDate(Date value)
resetDate attribute.value - The value for resetDatethis objectpublic final ImmutableRawMetrics withResetDate(Optional<? extends Date> optional)
resetDate attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for resetDatethis objectpublic final ImmutableRawMetrics withLastProcessed(Date value)
lastProcessed attribute.value - The value for lastProcessedthis objectpublic final ImmutableRawMetrics withLastProcessed(Optional<? extends Date> optional)
lastProcessed attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for lastProcessedthis objectpublic boolean equals(@Nullable Object another)
ImmutableRawMetrics that have equal attribute values.public int hashCode()
integrationId, version, pod, messages, errors, startDate, resetDate, lastProcessed.public String toString()
RawMetrics with attribute values.public static ImmutableRawMetrics copyOf(RawMetrics instance)
RawMetrics 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 copyCopyright © 2016–2019 Red Hat. All rights reserved.