Package odata.msgraph.client.beta.entity
Class WindowsPrivacyDataAccessControlItem
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.WindowsPrivacyDataAccessControlItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class WindowsPrivacyDataAccessControlItem extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Specify access control level per privacy data category”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsPrivacyDataAccessControlItem.Builder
-
Field Summary
Fields Modifier and Type Field Description protected WindowsPrivacyDataAccessLevelaccessLevelprotected StringappDisplayNameprotected StringappPackageFamilyNameprotected WindowsPrivacyDataCategorydataCategory-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsPrivacyDataAccessControlItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsPrivacyDataAccessControlItem.BuilderbuilderWindowsPrivacyDataAccessControlItem()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<WindowsPrivacyDataAccessLevel>getAccessLevel()“This indicates an access level for the privacy data category to which the specified application will be given to.”Optional<String>getAppDisplayName()“The Package Family Name of a Windows app.Optional<String>getAppPackageFamilyName()“The Package Family Name of a Windows app.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<WindowsPrivacyDataCategory>getDataCategory()“This indicates a privacy data category to which the specific access control will apply.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()WindowsPrivacyDataAccessControlItempatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsPrivacyDataAccessControlItemput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()WindowsPrivacyDataAccessControlItemwithAccessLevel(WindowsPrivacyDataAccessLevel accessLevel)Returns an immutable copy ofthiswith just theaccessLevelfield changed.WindowsPrivacyDataAccessControlItemwithAppDisplayName(String appDisplayName)Returns an immutable copy ofthiswith just theappDisplayNamefield changed.WindowsPrivacyDataAccessControlItemwithAppPackageFamilyName(String appPackageFamilyName)Returns an immutable copy ofthiswith just theappPackageFamilyNamefield changed.WindowsPrivacyDataAccessControlItemwithDataCategory(WindowsPrivacyDataCategory dataCategory)Returns an immutable copy ofthiswith just thedataCategoryfield changed.WindowsPrivacyDataAccessControlItemwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
accessLevel
protected WindowsPrivacyDataAccessLevel accessLevel
-
appDisplayName
protected String appDisplayName
-
appPackageFamilyName
protected String appPackageFamilyName
-
dataCategory
protected WindowsPrivacyDataCategory dataCategory
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderWindowsPrivacyDataAccessControlItem
public static WindowsPrivacyDataAccessControlItem.Builder builderWindowsPrivacyDataAccessControlItem()
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
-
getAccessLevel
public Optional<WindowsPrivacyDataAccessLevel> getAccessLevel()
“This indicates an access level for the privacy data category to which the specified application will be given to.”- Returns:
- property accessLevel
-
withAccessLevel
public WindowsPrivacyDataAccessControlItem withAccessLevel(WindowsPrivacyDataAccessLevel accessLevel)
Returns an immutable copy ofthiswith just theaccessLevelfield 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.“This indicates an access level for the privacy data category to which the specified application will be given to.”
- Parameters:
accessLevel- new value ofaccessLevelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaccessLevelfield changed
-
getAppDisplayName
public Optional<String> getAppDisplayName()
“The Package Family Name of a Windows app. When set, the access level applies to the specified application.”- Returns:
- property appDisplayName
-
withAppDisplayName
public WindowsPrivacyDataAccessControlItem withAppDisplayName(String appDisplayName)
Returns an immutable copy ofthiswith just theappDisplayNamefield 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 Package Family Name of a Windows app. When set, the access level applies to the specified application.”
- Parameters:
appDisplayName- new value ofappDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappDisplayNamefield changed
-
getAppPackageFamilyName
public Optional<String> getAppPackageFamilyName()
“The Package Family Name of a Windows app. When set, the access level applies to the specified application.”- Returns:
- property appPackageFamilyName
-
withAppPackageFamilyName
public WindowsPrivacyDataAccessControlItem withAppPackageFamilyName(String appPackageFamilyName)
Returns an immutable copy ofthiswith just theappPackageFamilyNamefield 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 Package Family Name of a Windows app. When set, the access level applies to the specified application.”
- Parameters:
appPackageFamilyName- new value ofappPackageFamilyNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappPackageFamilyNamefield changed
-
getDataCategory
public Optional<WindowsPrivacyDataCategory> getDataCategory()
“This indicates a privacy data category to which the specific access control will apply.”- Returns:
- property dataCategory
-
withDataCategory
public WindowsPrivacyDataAccessControlItem withDataCategory(WindowsPrivacyDataCategory dataCategory)
Returns an immutable copy ofthiswith just thedataCategoryfield 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.“This indicates a privacy data category to which the specific access control will apply.”
- Parameters:
dataCategory- new value ofdataCategoryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedataCategoryfield changed
-
withUnmappedField
public WindowsPrivacyDataAccessControlItem 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 WindowsPrivacyDataAccessControlItem patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public WindowsPrivacyDataAccessControlItem put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-