Package odata.msgraph.client.beta.entity
Class SecurityBaselineDeviceState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.SecurityBaselineDeviceState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class SecurityBaselineDeviceState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The security baseline compliance state summary of the security baseline for a device.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecurityBaselineDeviceState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceDisplayNameprotected OffsetDateTimelastReportedDateTimeprotected StringmanagedDeviceIdprotected SecurityBaselineComplianceStatestateprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSecurityBaselineDeviceState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityBaselineDeviceState.BuilderbuilderSecurityBaselineDeviceState()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.ChangedFieldsgetChangedFields()Optional<String>getDeviceDisplayName()“Display name of the device”Optional<OffsetDateTime>getLastReportedDateTime()“Last modified date time of the policy report”Optional<String>getManagedDeviceId()“Intune device id”Optional<SecurityBaselineComplianceState>getState()“Security baseline compliance state”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserPrincipalName()“User Principal Name”StringodataTypeName()SecurityBaselineDeviceStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)SecurityBaselineDeviceStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()SecurityBaselineDeviceStatewithDeviceDisplayName(String deviceDisplayName)Returns an immutable copy ofthiswith just thedeviceDisplayNamefield changed.SecurityBaselineDeviceStatewithLastReportedDateTime(OffsetDateTime lastReportedDateTime)Returns an immutable copy ofthiswith just thelastReportedDateTimefield changed.SecurityBaselineDeviceStatewithManagedDeviceId(String managedDeviceId)Returns an immutable copy ofthiswith just themanagedDeviceIdfield changed.SecurityBaselineDeviceStatewithState(SecurityBaselineComplianceState state)Returns an immutable copy ofthiswith just thestatefield changed.SecurityBaselineDeviceStatewithUnmappedField(String name, String value)SecurityBaselineDeviceStatewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Field Detail
-
deviceDisplayName
protected String deviceDisplayName
-
lastReportedDateTime
protected OffsetDateTime lastReportedDateTime
-
managedDeviceId
protected String managedDeviceId
-
state
protected SecurityBaselineComplianceState state
-
userPrincipalName
protected String userPrincipalName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderSecurityBaselineDeviceState
public static SecurityBaselineDeviceState.Builder builderSecurityBaselineDeviceState()
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
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getDeviceDisplayName
public Optional<String> getDeviceDisplayName()
“Display name of the device”- Returns:
- property deviceDisplayName
-
withDeviceDisplayName
public SecurityBaselineDeviceState withDeviceDisplayName(String deviceDisplayName)
Returns an immutable copy ofthiswith just thedeviceDisplayNamefield 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.“Display name of the device”
- Parameters:
deviceDisplayName- new value ofdeviceDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceDisplayNamefield changed
-
getLastReportedDateTime
public Optional<OffsetDateTime> getLastReportedDateTime()
“Last modified date time of the policy report”- Returns:
- property lastReportedDateTime
-
withLastReportedDateTime
public SecurityBaselineDeviceState withLastReportedDateTime(OffsetDateTime lastReportedDateTime)
Returns an immutable copy ofthiswith just thelastReportedDateTimefield 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 modified date time of the policy report”
- Parameters:
lastReportedDateTime- new value oflastReportedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastReportedDateTimefield changed
-
getManagedDeviceId
public Optional<String> getManagedDeviceId()
“Intune device id”- Returns:
- property managedDeviceId
-
withManagedDeviceId
public SecurityBaselineDeviceState withManagedDeviceId(String managedDeviceId)
Returns an immutable copy ofthiswith just themanagedDeviceIdfield 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.“Intune device id”
- Parameters:
managedDeviceId- new value ofmanagedDeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagedDeviceIdfield changed
-
getState
public Optional<SecurityBaselineComplianceState> getState()
“Security baseline compliance state”- Returns:
- property state
-
withState
public SecurityBaselineDeviceState withState(SecurityBaselineComplianceState state)
Returns an immutable copy ofthiswith just thestatefield 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.“Security baseline compliance state”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“User Principal Name”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public SecurityBaselineDeviceState withUserPrincipalName(String userPrincipalName)
Returns an immutable copy ofthiswith just theuserPrincipalNamefield 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 Principal Name”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public SecurityBaselineDeviceState withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public SecurityBaselineDeviceState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public SecurityBaselineDeviceState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-