@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableGatewayQualifier extends GatewayQualifier
GatewayQualifier
.
Use the builder to create immutable instances:
ImmutableGatewayQualifier.builder()
.
Use the static factory method to create immutable instances:
ImmutableGatewayQualifier.of()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableGatewayQualifier.Builder
Builds instances of type
ImmutableGatewayQualifier . |
Modifier and Type | Method and Description |
---|---|
static ImmutableGatewayQualifier.Builder |
builder()
Creates a builder for
ImmutableGatewayQualifier . |
static ImmutableGatewayQualifier |
copyOf(GatewayQualifier instance)
Creates an immutable copy of a
GatewayQualifier value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableGatewayQualifier that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
networkName , type . |
String |
networkName()
The network name.
|
static ImmutableGatewayQualifier |
of(String networkName)
Construct a new immutable
GatewayQualifier instance. |
String |
toString()
Prints the immutable value
GatewayQualifier with attribute values. |
QualifierType |
type()
The qualifier type.
|
ImmutableGatewayQualifier |
withNetworkName(String value)
Copy the current immutable object by setting a value for the
networkName attribute. |
public String networkName()
networkName
in class GatewayQualifier
public QualifierType type()
Qualifier
type
in class GatewayQualifier
type
attributepublic final ImmutableGatewayQualifier withNetworkName(String value)
networkName
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for networkNamethis
objectpublic boolean equals(@Nullable Object another)
ImmutableGatewayQualifier
that have equal attribute values.public int hashCode()
networkName
, type
.public String toString()
GatewayQualifier
with attribute values.public static ImmutableGatewayQualifier of(String networkName)
GatewayQualifier
instance.networkName
- The value for the networkName
attributepublic static ImmutableGatewayQualifier copyOf(GatewayQualifier instance)
GatewayQualifier
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 ImmutableGatewayQualifier.Builder builder()
ImmutableGatewayQualifier
.
ImmutableGatewayQualifier.builder()
.networkName(String) // required networkName
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.