Class LoggedOnUser
- java.lang.Object
-
- odata.msgraph.client.beta.complex.LoggedOnUser
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class LoggedOnUser extends Object implements com.github.davidmoten.odata.client.ODataType
“Logged On User”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoggedOnUser.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected OffsetDateTimelastLogOnDateTimeprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected StringuserId
-
Constructor Summary
Constructors Modifier Constructor Description protectedLoggedOnUser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoggedOnUser.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<OffsetDateTime>getLastLogOnDateTime()“Date time when user logs on”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserId()“User id”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()LoggedOnUserwithLastLogOnDateTime(OffsetDateTime lastLogOnDateTime)Returns an immutable copy ofthiswith just thelastLogOnDateTimefield changed.LoggedOnUserwithUnmappedField(String name, String value)LoggedOnUserwithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
lastLogOnDateTime
protected OffsetDateTime lastLogOnDateTime
-
userId
protected String userId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getLastLogOnDateTime
public Optional<OffsetDateTime> getLastLogOnDateTime()
“Date time when user logs on”- Returns:
- property lastLogOnDateTime
-
withLastLogOnDateTime
public LoggedOnUser withLastLogOnDateTime(OffsetDateTime lastLogOnDateTime)
Returns an immutable copy ofthiswith just thelastLogOnDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Date time when user logs on”
- Parameters:
lastLogOnDateTime- new value oflastLogOnDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastLogOnDateTimefield changed
-
withUserId
public LoggedOnUser withUserId(String userId)
Returns an immutable copy ofthiswith just theuserIdfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“User id”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
withUnmappedField
public LoggedOnUser withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static LoggedOnUser.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-