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