Class Phone
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.container.user.data.Phone
-
@ApiType("SoftLayer_Container_User_Data_Phone") public class Phone extends Entity
This container holds user's phone information.- See Also:
- SoftLayer_Container_User_Data_Phone
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Phone.Mask
-
Field Summary
Fields Modifier and Type Field Description protected Long
countryCode
Country code number for the phone number Default: 1 (United States & Canada +1)protected boolean
countryCodeSpecified
protected String
extension
Phone extension code.protected boolean
extensionSpecified
protected String
phone
Phone number can be a mobile phone number, desk phone number, or some other option.protected boolean
phoneSpecified
protected String
phoneType
Type of phone number such as "primary", "office" or "home"protected boolean
phoneTypeSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Phone()
-
Method Summary
Modifier and Type Method Description Long
getCountryCode()
String
getExtension()
String
getPhone()
String
getPhoneType()
boolean
isCountryCodeSpecified()
boolean
isExtensionSpecified()
boolean
isPhoneSpecified()
boolean
isPhoneTypeSpecified()
void
setCountryCode(Long countryCode)
void
setExtension(String extension)
void
setPhone(String phone)
void
setPhoneType(String phoneType)
void
unsetCountryCode()
void
unsetExtension()
void
unsetPhone()
void
unsetPhoneType()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
countryCode
@ApiProperty(canBeNullOrNotSet=true) protected Long countryCode
Country code number for the phone number Default: 1 (United States & Canada +1)
-
countryCodeSpecified
protected boolean countryCodeSpecified
-
extension
@ApiProperty(canBeNullOrNotSet=true) protected String extension
Phone extension code. It can be digits, commas, *, and # are allowed.
-
extensionSpecified
protected boolean extensionSpecified
-
phone
@ApiProperty(canBeNullOrNotSet=true) protected String phone
Phone number can be a mobile phone number, desk phone number, or some other option. The phone number format must match the format selected in the country code.
-
phoneSpecified
protected boolean phoneSpecified
-
phoneType
@ApiProperty(canBeNullOrNotSet=true) protected String phoneType
Type of phone number such as "primary", "office" or "home"
-
phoneTypeSpecified
protected boolean phoneTypeSpecified
-
-
Method Detail
-
getCountryCode
public Long getCountryCode()
-
setCountryCode
public void setCountryCode(Long countryCode)
-
isCountryCodeSpecified
public boolean isCountryCodeSpecified()
-
unsetCountryCode
public void unsetCountryCode()
-
getExtension
public String getExtension()
-
setExtension
public void setExtension(String extension)
-
isExtensionSpecified
public boolean isExtensionSpecified()
-
unsetExtension
public void unsetExtension()
-
getPhone
public String getPhone()
-
setPhone
public void setPhone(String phone)
-
isPhoneSpecified
public boolean isPhoneSpecified()
-
unsetPhone
public void unsetPhone()
-
getPhoneType
public String getPhoneType()
-
setPhoneType
public void setPhoneType(String phoneType)
-
isPhoneTypeSpecified
public boolean isPhoneTypeSpecified()
-
unsetPhoneType
public void unsetPhoneType()
-
-