Class PhoneNumber
- java.lang.Object
-
- software.amazon.awssdk.services.identitystore.model.PhoneNumber
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PhoneNumber.Builder,PhoneNumber>
@Generated("software.amazon.awssdk:codegen") public final class PhoneNumber extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PhoneNumber.Builder,PhoneNumber>
The phone number associated with the user.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePhoneNumber.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhoneNumber.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Booleanprimary()A Boolean value representing whether this is the primary phone number for the associated resource.List<SdkField<?>>sdkFields()static Class<? extends PhoneNumber.Builder>serializableBuilderClass()PhoneNumber.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()A string representing the type of a phone number.Stringvalue()A string containing a phone number.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
value
public final String value()
A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567".
- Returns:
- A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567".
-
type
public final String type()
A string representing the type of a phone number. For example, "Mobile."
- Returns:
- A string representing the type of a phone number. For example, "Mobile."
-
primary
public final Boolean primary()
A Boolean value representing whether this is the primary phone number for the associated resource.
- Returns:
- A Boolean value representing whether this is the primary phone number for the associated resource.
-
toBuilder
public PhoneNumber.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PhoneNumber.Builder,PhoneNumber>
-
builder
public static PhoneNumber.Builder builder()
-
serializableBuilderClass
public static Class<? extends PhoneNumber.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-