public class PhoneAuthenticationMethod extends AuthenticationMethod implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
PhoneAuthenticationMethod.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
phoneNumber |
protected AuthenticationPhoneType |
phoneType |
protected AuthenticationMethodSignInState |
smsSignInState |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
PhoneAuthenticationMethod() |
| Modifier and Type | Method and Description |
|---|---|
static PhoneAuthenticationMethod.Builder |
builderPhoneAuthenticationMethod()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getPhoneNumber() |
Optional<AuthenticationPhoneType> |
getPhoneType() |
Optional<AuthenticationMethodSignInState> |
getSmsSignInState() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
PhoneAuthenticationMethod |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
PhoneAuthenticationMethod |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
PhoneAuthenticationMethod |
withPhoneNumber(String phoneNumber) |
PhoneAuthenticationMethod |
withPhoneType(AuthenticationPhoneType phoneType) |
PhoneAuthenticationMethod |
withSmsSignInState(AuthenticationMethodSignInState smsSignInState) |
disableSmsSignIn, enableSmsSignIn, resetPasswordprotected String phoneNumber
protected AuthenticationPhoneType phoneType
protected AuthenticationMethodSignInState smsSignInState
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class AuthenticationMethodpublic static PhoneAuthenticationMethod.Builder builderPhoneAuthenticationMethod()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class AuthenticationMethodpublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class AuthenticationMethodpublic PhoneAuthenticationMethod withPhoneNumber(String phoneNumber)
public Optional<AuthenticationPhoneType> getPhoneType()
public PhoneAuthenticationMethod withPhoneType(AuthenticationPhoneType phoneType)
public Optional<AuthenticationMethodSignInState> getSmsSignInState()
public PhoneAuthenticationMethod withSmsSignInState(AuthenticationMethodSignInState smsSignInState)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class AuthenticationMethodpublic PhoneAuthenticationMethod patch()
this with changed fields reset.patch in class AuthenticationMethodthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic PhoneAuthenticationMethod put()
this
with changed fields reset (they were ignored anyway).put in class AuthenticationMethodthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic String toString()
toString in class AuthenticationMethodCopyright © 2018–2020. All rights reserved.