@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ScimEmail"}) @Immutable public final class ImmutableScimEmail extends ScimEmail
ScimEmail.
Use the builder to create immutable instances:
ImmutableScimEmail.builder().
Use the static factory method to create immutable instances:
ImmutableScimEmail.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableScimEmail.Builder
Builds instances of type
ImmutableScimEmail. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableScimEmail.Builder |
builder()
Creates a builder for
ImmutableScimEmail. |
static ImmutableScimEmail |
copyOf(ScimEmail instance)
Creates an immutable copy of a
ScimEmail value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableScimEmail that have equal attribute values. |
String |
getType() |
String |
getValue() |
int |
hashCode()
Computes a hash code from attributes:
value, type, primary. |
Boolean |
isPrimary() |
static ImmutableScimEmail |
of(String value,
String type,
Boolean primary)
Construct a new immutable
ScimEmail instance. |
String |
toString()
Prints the immutable value
ScimEmail with attribute values. |
ImmutableScimEmail |
withPrimary(Boolean value)
Copy the current immutable object by setting a value for the
primary attribute. |
ImmutableScimEmail |
withType(String value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableScimEmail |
withValue(String value)
Copy the current immutable object by setting a value for the
value attribute. |
public String getValue()
public final ImmutableScimEmail withValue(String value)
value attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic final ImmutableScimEmail withType(@Nullable String value)
type attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for type (can be null)this objectpublic final ImmutableScimEmail withPrimary(@Nullable Boolean value)
primary attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for primary (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableScimEmail that have equal attribute values.public int hashCode()
value, type, primary.public String toString()
ScimEmail with attribute values.public static ImmutableScimEmail of(String value, @Nullable String type, @Nullable Boolean primary)
ScimEmail instance.value - The value for the value attributetype - The value for the type attributeprimary - The value for the primary attributepublic static ImmutableScimEmail copyOf(ScimEmail instance)
ScimEmail 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 ImmutableScimEmail.Builder builder()
ImmutableScimEmail.Copyright © 2016 Atlassian. All rights reserved.