Class UnmanagedDevice
- java.lang.Object
-
- odata.msgraph.client.beta.complex.UnmanagedDevice
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class UnmanagedDevice extends Object implements com.github.davidmoten.odata.client.ODataType
“Unmanaged device discovered in the network.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUnmanagedDevice.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringdeviceNameprotected Stringdomainprotected StringipAddressprotected StringlastLoggedOnUserprotected OffsetDateTimelastSeenDateTimeprotected Stringlocationprotected StringmacAddressprotected Stringmanufacturerprotected Stringmodelprotected StringodataTypeprotected Stringosprotected StringosVersionprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedUnmanagedDevice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnmanagedDevice.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getDeviceName()“Device name.”Optional<String>getDomain()“Domain.”Optional<String>getIpAddress()“IP address.”Optional<String>getLastLoggedOnUser()“Last logged on user.”Optional<OffsetDateTime>getLastSeenDateTime()“Last seen date and time.”Optional<String>getLocation()“Location.”Optional<String>getMacAddress()“MAC address.”Optional<String>getManufacturer()“Manufacturer.”Optional<String>getModel()“Model.”Optional<String>getOs()“Operating system.”Optional<String>getOsVersion()“Operating system version.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()UnmanagedDevicewithDeviceName(String deviceName)Returns an immutable copy ofthiswith just thedeviceNamefield changed.UnmanagedDevicewithDomain(String domain)Returns an immutable copy ofthiswith just thedomainfield changed.UnmanagedDevicewithIpAddress(String ipAddress)Returns an immutable copy ofthiswith just theipAddressfield changed.UnmanagedDevicewithLastLoggedOnUser(String lastLoggedOnUser)Returns an immutable copy ofthiswith just thelastLoggedOnUserfield changed.UnmanagedDevicewithLastSeenDateTime(OffsetDateTime lastSeenDateTime)Returns an immutable copy ofthiswith just thelastSeenDateTimefield changed.UnmanagedDevicewithLocation(String location)Returns an immutable copy ofthiswith just thelocationfield changed.UnmanagedDevicewithMacAddress(String macAddress)Returns an immutable copy ofthiswith just themacAddressfield changed.UnmanagedDevicewithManufacturer(String manufacturer)Returns an immutable copy ofthiswith just themanufacturerfield changed.UnmanagedDevicewithModel(String model)Returns an immutable copy ofthiswith just themodelfield changed.UnmanagedDevicewithOs(String os)Returns an immutable copy ofthiswith just theosfield changed .UnmanagedDevicewithOsVersion(String osVersion)Returns an immutable copy ofthiswith just theosVersionfield changed.UnmanagedDevicewithUnmappedField(String name, String value)
-
-
-
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
-
deviceName
protected String deviceName
-
domain
protected String domain
-
ipAddress
protected String ipAddress
-
lastLoggedOnUser
protected String lastLoggedOnUser
-
lastSeenDateTime
protected OffsetDateTime lastSeenDateTime
-
location
protected String location
-
macAddress
protected String macAddress
-
manufacturer
protected String manufacturer
-
model
protected String model
-
os
protected String os
-
osVersion
protected String osVersion
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
withDeviceName
public UnmanagedDevice withDeviceName(String deviceName)
Returns an immutable copy ofthiswith just thedeviceNamefield 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.“Device name.”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
withDomain
public UnmanagedDevice withDomain(String domain)
Returns an immutable copy ofthiswith just thedomainfield 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.“Domain.”
- Parameters:
domain- new value ofdomainfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedomainfield changed
-
withIpAddress
public UnmanagedDevice withIpAddress(String ipAddress)
Returns an immutable copy ofthiswith just theipAddressfield 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.“IP address.”
- Parameters:
ipAddress- new value ofipAddressfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theipAddressfield changed
-
getLastLoggedOnUser
public Optional<String> getLastLoggedOnUser()
“Last logged on user.”- Returns:
- property lastLoggedOnUser
-
withLastLoggedOnUser
public UnmanagedDevice withLastLoggedOnUser(String lastLoggedOnUser)
Returns an immutable copy ofthiswith just thelastLoggedOnUserfield 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.“Last logged on user.”
- Parameters:
lastLoggedOnUser- new value oflastLoggedOnUserfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastLoggedOnUserfield changed
-
getLastSeenDateTime
public Optional<OffsetDateTime> getLastSeenDateTime()
“Last seen date and time.”- Returns:
- property lastSeenDateTime
-
withLastSeenDateTime
public UnmanagedDevice withLastSeenDateTime(OffsetDateTime lastSeenDateTime)
Returns an immutable copy ofthiswith just thelastSeenDateTimefield 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.“Last seen date and time.”
- Parameters:
lastSeenDateTime- new value oflastSeenDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastSeenDateTimefield changed
-
withLocation
public UnmanagedDevice withLocation(String location)
Returns an immutable copy ofthiswith just thelocationfield 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.“Location.”
- Parameters:
location- new value oflocationfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelocationfield changed
-
withMacAddress
public UnmanagedDevice withMacAddress(String macAddress)
Returns an immutable copy ofthiswith just themacAddressfield 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.“MAC address.”
- Parameters:
macAddress- new value ofmacAddressfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themacAddressfield changed
-
getManufacturer
public Optional<String> getManufacturer()
“Manufacturer.”- Returns:
- property manufacturer
-
withManufacturer
public UnmanagedDevice withManufacturer(String manufacturer)
Returns an immutable copy ofthiswith just themanufacturerfield 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.“Manufacturer.”
- Parameters:
manufacturer- new value ofmanufacturerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanufacturerfield changed
-
withModel
public UnmanagedDevice withModel(String model)
Returns an immutable copy ofthiswith just themodelfield 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.“Model.”
- Parameters:
model- new value ofmodelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themodelfield changed
-
withOs
public UnmanagedDevice withOs(String os)
Returns an immutable copy ofthiswith just theosfield 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.“Operating system.”
- Parameters:
os- new value ofosfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosfield changed
-
getOsVersion
public Optional<String> getOsVersion()
“Operating system version.”- Returns:
- property osVersion
-
withOsVersion
public UnmanagedDevice withOsVersion(String osVersion)
Returns an immutable copy ofthiswith just theosVersionfield 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.“Operating system version.”
- Parameters:
osVersion- new value ofosVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosVersionfield changed
-
withUnmappedField
public UnmanagedDevice 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 UnmanagedDevice.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
-
-