@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","EventOptions"}) @Immutable public final class ImmutableEventOptions extends EventOptions
EventOptions.
Use the builder to create immutable instances:
ImmutableEventOptions.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableEventOptions.Builder
Builds instances of type
ImmutableEventOptions. |
BLANK| Modifier and Type | Method and Description |
|---|---|
static ImmutableEventOptions.Builder |
builder()
Creates a builder for
ImmutableEventOptions. |
static ImmutableEventOptions |
copyOf(EventOptions instance)
Creates an immutable copy of a
EventOptions value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableEventOptions that have equal attribute values. |
Optional<String> |
getDatacenter() |
Optional<String> |
getNodeFilter() |
Optional<String> |
getServiceFilter() |
Optional<String> |
getTagFilter() |
int |
hashCode()
Computes a hash code from attributes:
datacenter, nodeFilter, serviceFilter, tagFilter. |
String |
toString()
Prints the immutable value
EventOptions with attribute values. |
ImmutableEventOptions |
withDatacenter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
datacenter attribute. |
ImmutableEventOptions |
withDatacenter(String value)
Copy the current immutable object by setting a present value for the optional
datacenter attribute. |
ImmutableEventOptions |
withNodeFilter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
nodeFilter attribute. |
ImmutableEventOptions |
withNodeFilter(String value)
Copy the current immutable object by setting a present value for the optional
nodeFilter attribute. |
ImmutableEventOptions |
withServiceFilter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
serviceFilter attribute. |
ImmutableEventOptions |
withServiceFilter(String value)
Copy the current immutable object by setting a present value for the optional
serviceFilter attribute. |
ImmutableEventOptions |
withTagFilter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
tagFilter attribute. |
ImmutableEventOptions |
withTagFilter(String value)
Copy the current immutable object by setting a present value for the optional
tagFilter attribute. |
toQuerypublic Optional<String> getDatacenter()
getDatacenter in class EventOptionsdatacenter attributepublic Optional<String> getNodeFilter()
getNodeFilter in class EventOptionsnodeFilter attributepublic Optional<String> getServiceFilter()
getServiceFilter in class EventOptionsserviceFilter attributepublic Optional<String> getTagFilter()
getTagFilter in class EventOptionstagFilter attributepublic final ImmutableEventOptions withDatacenter(String value)
datacenter attribute.value - The value for datacenterthis objectpublic final ImmutableEventOptions withDatacenter(Optional<String> optional)
datacenter attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for datacenterthis objectpublic final ImmutableEventOptions withNodeFilter(String value)
nodeFilter attribute.value - The value for nodeFilterthis objectpublic final ImmutableEventOptions withNodeFilter(Optional<String> optional)
nodeFilter attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for nodeFilterthis objectpublic final ImmutableEventOptions withServiceFilter(String value)
serviceFilter attribute.value - The value for serviceFilterthis objectpublic final ImmutableEventOptions withServiceFilter(Optional<String> optional)
serviceFilter attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for serviceFilterthis objectpublic final ImmutableEventOptions withTagFilter(String value)
tagFilter attribute.value - The value for tagFilterthis objectpublic final ImmutableEventOptions withTagFilter(Optional<String> optional)
tagFilter attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for tagFilterthis objectpublic boolean equals(@Nullable Object another)
ImmutableEventOptions that have equal attribute values.public int hashCode()
datacenter, nodeFilter, serviceFilter, tagFilter.public String toString()
EventOptions with attribute values.public static ImmutableEventOptions copyOf(EventOptions instance)
EventOptions 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 ImmutableEventOptions.Builder builder()
ImmutableEventOptions.Copyright © 2018. All rights reserved.