Package odata.msgraph.client.complex
Class DeviceCompliancePolicySettingState
- java.lang.Object
-
- odata.msgraph.client.complex.DeviceCompliancePolicySettingState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceCompliancePolicySettingState extends Object implements com.github.davidmoten.odata.client.ODataType
“Device Compilance Policy Setting State for a given device.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceCompliancePolicySettingState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringcurrentValueprotected LongerrorCodeprotected StringerrorDescriptionprotected StringinstanceDisplayNameprotected StringodataTypeprotected Stringsettingprotected StringsettingNameprotected List<SettingSource>sourcesprotected StringsourcesNextLinkprotected ComplianceStatusstateprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected StringuserEmailprotected StringuserIdprotected StringuserNameprotected StringuserPrincipalName
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceCompliancePolicySettingState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceCompliancePolicySettingState.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getCurrentValue()“Current value of setting on device”Optional<Long>getErrorCode()“Error code for the setting”Optional<String>getErrorDescription()“Error description”Optional<String>getInstanceDisplayName()“Name of setting instance that is being reported.”Optional<String>getSetting()“The setting that is being reported”Optional<String>getSettingName()“Localized/user friendly setting name that is being reported”com.github.davidmoten.odata.client.CollectionPage<SettingSource>getSources()“Contributing policies”com.github.davidmoten.odata.client.CollectionPage<SettingSource>getSources(com.github.davidmoten.odata.client.HttpRequestOptions options)“Contributing policies”Optional<ComplianceStatus>getState()“The compliance state of the setting”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserEmail()“UserEmail”Optional<String>getUserId()“UserId”Optional<String>getUserName()“UserName”Optional<String>getUserPrincipalName()“UserPrincipalName.”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceCompliancePolicySettingStatewithCurrentValue(String currentValue)Returns an immutable copy ofthiswith just thecurrentValuefield changed.DeviceCompliancePolicySettingStatewithErrorCode(Long errorCode)Returns an immutable copy ofthiswith just theerrorCodefield changed.DeviceCompliancePolicySettingStatewithErrorDescription(String errorDescription)Returns an immutable copy ofthiswith just theerrorDescriptionfield changed.DeviceCompliancePolicySettingStatewithInstanceDisplayName(String instanceDisplayName)Returns an immutable copy ofthiswith just theinstanceDisplayNamefield changed.DeviceCompliancePolicySettingStatewithSetting(String setting)Returns an immutable copy ofthiswith just thesettingfield changed.DeviceCompliancePolicySettingStatewithSettingName(String settingName)Returns an immutable copy ofthiswith just thesettingNamefield changed.DeviceCompliancePolicySettingStatewithState(ComplianceStatus state)Returns an immutable copy ofthiswith just thestatefield changed.DeviceCompliancePolicySettingStatewithUnmappedField(String name, Object value)DeviceCompliancePolicySettingStatewithUserEmail(String userEmail)Returns an immutable copy ofthiswith just theuserEmailfield changed.DeviceCompliancePolicySettingStatewithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.DeviceCompliancePolicySettingStatewithUserName(String userName)Returns an immutable copy ofthiswith just theuserNamefield changed.DeviceCompliancePolicySettingStatewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield 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
-
currentValue
protected String currentValue
-
errorCode
protected Long errorCode
-
errorDescription
protected String errorDescription
-
instanceDisplayName
protected String instanceDisplayName
-
setting
protected String setting
-
settingName
protected String settingName
-
sources
protected List<SettingSource> sources
-
sourcesNextLink
protected String sourcesNextLink
-
state
protected ComplianceStatus state
-
userEmail
protected String userEmail
-
userId
protected String userId
-
userName
protected String userName
-
userPrincipalName
protected String userPrincipalName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getCurrentValue
public Optional<String> getCurrentValue()
“Current value of setting on device”- Returns:
- property currentValue
-
withCurrentValue
public DeviceCompliancePolicySettingState withCurrentValue(String currentValue)
Returns an immutable copy ofthiswith just thecurrentValuefield 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.“Current value of setting on device”
- Parameters:
currentValue- new value ofcurrentValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecurrentValuefield changed
-
getErrorCode
public Optional<Long> getErrorCode()
“Error code for the setting”- Returns:
- property errorCode
-
withErrorCode
public DeviceCompliancePolicySettingState withErrorCode(Long errorCode)
Returns an immutable copy ofthiswith just theerrorCodefield 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.“Error code for the setting”
- Parameters:
errorCode- new value oferrorCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorCodefield changed
-
getErrorDescription
public Optional<String> getErrorDescription()
“Error description”- Returns:
- property errorDescription
-
withErrorDescription
public DeviceCompliancePolicySettingState withErrorDescription(String errorDescription)
Returns an immutable copy ofthiswith just theerrorDescriptionfield 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.“Error description”
- Parameters:
errorDescription- new value oferrorDescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorDescriptionfield changed
-
getInstanceDisplayName
public Optional<String> getInstanceDisplayName()
“Name of setting instance that is being reported.”- Returns:
- property instanceDisplayName
-
withInstanceDisplayName
public DeviceCompliancePolicySettingState withInstanceDisplayName(String instanceDisplayName)
Returns an immutable copy ofthiswith just theinstanceDisplayNamefield 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.“Name of setting instance that is being reported.”
- Parameters:
instanceDisplayName- new value ofinstanceDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinstanceDisplayNamefield changed
-
getSetting
public Optional<String> getSetting()
“The setting that is being reported”- Returns:
- property setting
-
withSetting
public DeviceCompliancePolicySettingState withSetting(String setting)
Returns an immutable copy ofthiswith just thesettingfield 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.“The setting that is being reported”
- Parameters:
setting- new value ofsettingfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesettingfield changed
-
getSettingName
public Optional<String> getSettingName()
“Localized/user friendly setting name that is being reported”- Returns:
- property settingName
-
withSettingName
public DeviceCompliancePolicySettingState withSettingName(String settingName)
Returns an immutable copy ofthiswith just thesettingNamefield 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.“Localized/user friendly setting name that is being reported”
- Parameters:
settingName- new value ofsettingNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesettingNamefield changed
-
getSources
public com.github.davidmoten.odata.client.CollectionPage<SettingSource> getSources()
“Contributing policies”- Returns:
- property sources
-
getSources
public com.github.davidmoten.odata.client.CollectionPage<SettingSource> getSources(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Contributing policies”- Parameters:
options- specify connect and read timeouts- Returns:
- property sources
-
getState
public Optional<ComplianceStatus> getState()
“The compliance state of the setting”- Returns:
- property state
-
withState
public DeviceCompliancePolicySettingState withState(ComplianceStatus 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.“The compliance state of the setting”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
withUserEmail
public DeviceCompliancePolicySettingState withUserEmail(String userEmail)
Returns an immutable copy ofthiswith just theuserEmailfield 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.“UserEmail”
- Parameters:
userEmail- new value ofuserEmailfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserEmailfield changed
-
withUserId
public DeviceCompliancePolicySettingState 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.“UserId”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
withUserName
public DeviceCompliancePolicySettingState withUserName(String userName)
Returns an immutable copy ofthiswith just theuserNamefield 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.“UserName”
- Parameters:
userName- new value ofuserNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserNamefield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“UserPrincipalName.”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public DeviceCompliancePolicySettingState 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.“UserPrincipalName.”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public DeviceCompliancePolicySettingState withUnmappedField(String name, Object 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 DeviceCompliancePolicySettingState.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
-
-