Package odata.msgraph.client.beta.entity
Class ManagedDeviceMobileAppConfigurationState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ManagedDeviceMobileAppConfigurationState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ManagedDeviceMobileAppConfigurationState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Managed Device Mobile App Configuration State for a given device.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classManagedDeviceMobileAppConfigurationState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdisplayNameprotected PolicyPlatformTypeplatformTypeprotected IntegersettingCountprotected List<ManagedDeviceMobileAppConfigurationSettingState>settingStatesprotected StringsettingStatesNextLinkprotected ComplianceStatusstateprotected StringuserIdprotected StringuserPrincipalNameprotected Integerversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedManagedDeviceMobileAppConfigurationState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ManagedDeviceMobileAppConfigurationState.BuilderbuilderManagedDeviceMobileAppConfigurationState()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>getDisplayName()“The name of the policy for this policyBase”Optional<PolicyPlatformType>getPlatformType()“Platform type that the policy applies to”Optional<Integer>getSettingCount()“Count of how many setting a policy holds”com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceMobileAppConfigurationSettingState>getSettingStates()com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceMobileAppConfigurationSettingState>getSettingStates(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<ComplianceStatus>getState()“The compliance state of the policy”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserId()“User unique identifier, must be Guid”Optional<String>getUserPrincipalName()“User Principal Name”Optional<Integer>getVersion()“The version of the policy”StringodataTypeName()ManagedDeviceMobileAppConfigurationStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ManagedDeviceMobileAppConfigurationStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ManagedDeviceMobileAppConfigurationStatewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.ManagedDeviceMobileAppConfigurationStatewithPlatformType(PolicyPlatformType platformType)Returns an immutable copy ofthiswith just theplatformTypefield changed.ManagedDeviceMobileAppConfigurationStatewithSettingCount(Integer settingCount)Returns an immutable copy ofthiswith just thesettingCountfield changed.ManagedDeviceMobileAppConfigurationStatewithSettingStates(List<ManagedDeviceMobileAppConfigurationSettingState> settingStates)ManagedDeviceMobileAppConfigurationStatewithState(ComplianceStatus state)Returns an immutable copy ofthiswith just thestatefield changed.ManagedDeviceMobileAppConfigurationStatewithUnmappedField(String name, String value)ManagedDeviceMobileAppConfigurationStatewithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.ManagedDeviceMobileAppConfigurationStatewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.ManagedDeviceMobileAppConfigurationStatewithVersion(Integer version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
displayName
protected String displayName
-
platformType
protected PolicyPlatformType platformType
-
settingCount
protected Integer settingCount
-
settingStates
protected List<ManagedDeviceMobileAppConfigurationSettingState> settingStates
-
settingStatesNextLink
protected String settingStatesNextLink
-
state
protected ComplianceStatus state
-
userId
protected String userId
-
userPrincipalName
protected String userPrincipalName
-
version
protected Integer version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderManagedDeviceMobileAppConfigurationState
public static ManagedDeviceMobileAppConfigurationState.Builder builderManagedDeviceMobileAppConfigurationState()
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
-
getDisplayName
public Optional<String> getDisplayName()
“The name of the policy for this policyBase”- Returns:
- property displayName
-
withDisplayName
public ManagedDeviceMobileAppConfigurationState withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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 name of the policy for this policyBase”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getPlatformType
public Optional<PolicyPlatformType> getPlatformType()
“Platform type that the policy applies to”- Returns:
- property platformType
-
withPlatformType
public ManagedDeviceMobileAppConfigurationState withPlatformType(PolicyPlatformType platformType)
Returns an immutable copy ofthiswith just theplatformTypefield 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.“Platform type that the policy applies to”
- Parameters:
platformType- new value ofplatformTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformTypefield changed
-
getSettingCount
public Optional<Integer> getSettingCount()
“Count of how many setting a policy holds”- Returns:
- property settingCount
-
withSettingCount
public ManagedDeviceMobileAppConfigurationState withSettingCount(Integer settingCount)
Returns an immutable copy ofthiswith just thesettingCountfield 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.“Count of how many setting a policy holds”
- Parameters:
settingCount- new value ofsettingCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesettingCountfield changed
-
getSettingStates
public com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceMobileAppConfigurationSettingState> getSettingStates()
-
withSettingStates
public ManagedDeviceMobileAppConfigurationState withSettingStates(List<ManagedDeviceMobileAppConfigurationSettingState> settingStates)
-
getSettingStates
public com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceMobileAppConfigurationSettingState> getSettingStates(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getState
public Optional<ComplianceStatus> getState()
“The compliance state of the policy”- Returns:
- property state
-
withState
public ManagedDeviceMobileAppConfigurationState 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 policy”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
getUserId
public Optional<String> getUserId()
“User unique identifier, must be Guid”- Returns:
- property userId
-
withUserId
public ManagedDeviceMobileAppConfigurationState 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 unique identifier, must be Guid”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“User Principal Name”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public ManagedDeviceMobileAppConfigurationState 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
-
getVersion
public Optional<Integer> getVersion()
“The version of the policy”- Returns:
- property version
-
withVersion
public ManagedDeviceMobileAppConfigurationState withVersion(Integer version)
Returns an immutable copy ofthiswith just theversionfield 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 version of the policy”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public ManagedDeviceMobileAppConfigurationState 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 ManagedDeviceMobileAppConfigurationState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ManagedDeviceMobileAppConfigurationState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-