@Generated(value={"Immutables.generator","CatalogOptions"}) public final class ImmutableCatalogOptions extends CatalogOptions
CatalogOptions.
Use the builder to create immutable instances:
ImmutableCatalogOptions.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCatalogOptions.Builder
Builds instances of type
ImmutableCatalogOptions. |
BLANK| Modifier and Type | Method and Description |
|---|---|
static ImmutableCatalogOptions.Builder |
builder()
Creates a builder for
ImmutableCatalogOptions. |
static ImmutableCatalogOptions |
copyOf(CatalogOptions instance)
Creates an immutable copy of a
CatalogOptions value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCatalogOptions that have equal attribute values. |
com.google.common.base.Optional<String> |
getDatacenter() |
com.google.common.base.Optional<String> |
getTag() |
int |
hashCode()
Computes a hash code from attributes:
datacenter, tag. |
String |
toString()
Prints the immutable value
CatalogOptions with attribute values. |
ImmutableCatalogOptions |
withDatacenter(com.google.common.base.Optional<String> optional)
Copy the current immutable object by setting an optional value for the
datacenter attribute. |
ImmutableCatalogOptions |
withDatacenter(String value)
Copy the current immutable object by setting a present value for the optional
datacenter attribute. |
ImmutableCatalogOptions |
withTag(com.google.common.base.Optional<String> optional)
Copy the current immutable object by setting an optional value for the
tag attribute. |
ImmutableCatalogOptions |
withTag(String value)
Copy the current immutable object by setting a present value for the optional
tag attribute. |
toQuerypublic com.google.common.base.Optional<String> getDatacenter()
getDatacenter in class CatalogOptionsdatacenter attributepublic com.google.common.base.Optional<String> getTag()
getTag in class CatalogOptionstag attributepublic final ImmutableCatalogOptions withDatacenter(String value)
datacenter attribute.value - The value for datacenterthis objectpublic final ImmutableCatalogOptions withDatacenter(com.google.common.base.Optional<String> optional)
datacenter attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for datacenterthis objectpublic final ImmutableCatalogOptions withTag(String value)
tag attribute.value - The value for tagthis objectpublic final ImmutableCatalogOptions withTag(com.google.common.base.Optional<String> optional)
tag attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for tagthis objectpublic boolean equals(Object another)
ImmutableCatalogOptions that have equal attribute values.public int hashCode()
datacenter, tag.public String toString()
CatalogOptions with attribute values.public static ImmutableCatalogOptions copyOf(CatalogOptions instance)
CatalogOptions 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 ImmutableCatalogOptions.Builder builder()
ImmutableCatalogOptions.Copyright © 2016. All rights reserved.