Class MacOSPrivacyAccessControlItem
- java.lang.Object
-
- odata.msgraph.client.beta.complex.MacOSPrivacyAccessControlItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class MacOSPrivacyAccessControlItem extends Object implements com.github.davidmoten.odata.client.ODataType
“Represents per-process privacy preferences.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacOSPrivacyAccessControlItem.Builder
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedMacOSPrivacyAccessControlItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacOSPrivacyAccessControlItem.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Enablement>getAccessibility()“Allow the app or process to control the Mac via the Accessibility subsystem.”Optional<Enablement>getAddressBook()“Allow or block access to contact information managed by Contacts.”com.github.davidmoten.odata.client.CollectionPage<MacOSAppleEventReceiver>getAppleEventsAllowedReceivers()“Allow or deny the app or process to send a restricted Apple event to another app or process.com.github.davidmoten.odata.client.CollectionPage<MacOSAppleEventReceiver>getAppleEventsAllowedReceivers(com.github.davidmoten.odata.client.HttpRequestOptions options)“Allow or deny the app or process to send a restricted Apple event to another app or process.Optional<Boolean>getBlockCamera()“Block access to camera app.”Optional<Boolean>getBlockListenEvent()“Block the app or process from listening to events from input devices such as mouse, keyboard, and trackpad.Requires macOS 10.15 or later.”Optional<Boolean>getBlockMicrophone()“Block access to microphone.”Optional<Boolean>getBlockScreenCapture()“Block app from capturing contents of system display.Optional<Enablement>getCalendar()“Allow or block access to event information managed by Calendar.”Optional<String>getCodeRequirement()“Enter the code requirement, which can be obtained with the command 'codesign –display -r –' in the Terminal app.Optional<String>getDisplayName()“The display name of the app, process, or executable.”Optional<Enablement>getFileProviderPresence()“Allow the app or process to access files managed by another app’s file provider extension.Optional<String>getIdentifier()“The bundle ID or path of the app, process, or executable.”Optional<MacOSProcessIdentifierType>getIdentifierType()“A bundle ID is used to identify an app.Optional<Enablement>getMediaLibrary()“Allow or block access to music and the media library.”Optional<Enablement>getPhotos()“Allow or block access to images managed by Photos.”Optional<Enablement>getPostEvent()“Control access to CoreGraphics APIs, which are used to send CGEvents to the system event stream.”Optional<Enablement>getReminders()“Allow or block access to information managed by Reminders.”Optional<Enablement>getSpeechRecognition()“Allow or block access to system speech recognition facility.”Optional<Boolean>getStaticCodeValidation()“Statically validates the code requirement.Optional<Enablement>getSystemPolicyAllFiles()“Control access to all protected files on a device.Optional<Enablement>getSystemPolicyDesktopFolder()“Allow or block access to Desktop folder.”Optional<Enablement>getSystemPolicyDocumentsFolder()“Allow or block access to Documents folder.”Optional<Enablement>getSystemPolicyDownloadsFolder()“Allow or block access to Downloads folder.”Optional<Enablement>getSystemPolicyNetworkVolumes()“Allow or block access to network volumes.Optional<Enablement>getSystemPolicyRemovableVolumes()“Control access to removable volumes on the device, such as an external hard drive.Optional<Enablement>getSystemPolicySystemAdminFiles()“Allow app or process to access files used in system administration.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()MacOSPrivacyAccessControlItemwithAccessibility(Enablement accessibility)Returns an immutable copy ofthiswith just theaccessibilityfield changed.MacOSPrivacyAccessControlItemwithAddressBook(Enablement addressBook)Returns an immutable copy ofthiswith just theaddressBookfield changed.MacOSPrivacyAccessControlItemwithBlockCamera(Boolean blockCamera)Returns an immutable copy ofthiswith just theblockCamerafield changed.MacOSPrivacyAccessControlItemwithBlockListenEvent(Boolean blockListenEvent)Returns an immutable copy ofthiswith just theblockListenEventfield changed.MacOSPrivacyAccessControlItemwithBlockMicrophone(Boolean blockMicrophone)Returns an immutable copy ofthiswith just theblockMicrophonefield changed.MacOSPrivacyAccessControlItemwithBlockScreenCapture(Boolean blockScreenCapture)Returns an immutable copy ofthiswith just theblockScreenCapturefield changed.MacOSPrivacyAccessControlItemwithCalendar(Enablement calendar)Returns an immutable copy ofthiswith just thecalendarfield changed.MacOSPrivacyAccessControlItemwithCodeRequirement(String codeRequirement)Returns an immutable copy ofthiswith just thecodeRequirementfield changed.MacOSPrivacyAccessControlItemwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.MacOSPrivacyAccessControlItemwithFileProviderPresence(Enablement fileProviderPresence)Returns an immutable copy ofthiswith just thefileProviderPresencefield changed.MacOSPrivacyAccessControlItemwithIdentifier(String identifier)Returns an immutable copy ofthiswith just theidentifierfield changed.MacOSPrivacyAccessControlItemwithIdentifierType(MacOSProcessIdentifierType identifierType)Returns an immutable copy ofthiswith just theidentifierTypefield changed.MacOSPrivacyAccessControlItemwithMediaLibrary(Enablement mediaLibrary)Returns an immutable copy ofthiswith just themediaLibraryfield changed.MacOSPrivacyAccessControlItemwithPhotos(Enablement photos)Returns an immutable copy ofthiswith just thephotosfield changed.MacOSPrivacyAccessControlItemwithPostEvent(Enablement postEvent)Returns an immutable copy ofthiswith just thepostEventfield changed.MacOSPrivacyAccessControlItemwithReminders(Enablement reminders)Returns an immutable copy ofthiswith just theremindersfield changed.MacOSPrivacyAccessControlItemwithSpeechRecognition(Enablement speechRecognition)Returns an immutable copy ofthiswith just thespeechRecognitionfield changed.MacOSPrivacyAccessControlItemwithStaticCodeValidation(Boolean staticCodeValidation)Returns an immutable copy ofthiswith just thestaticCodeValidationfield changed.MacOSPrivacyAccessControlItemwithSystemPolicyAllFiles(Enablement systemPolicyAllFiles)Returns an immutable copy ofthiswith just thesystemPolicyAllFilesfield changed.MacOSPrivacyAccessControlItemwithSystemPolicyDesktopFolder(Enablement systemPolicyDesktopFolder)Returns an immutable copy ofthiswith just thesystemPolicyDesktopFolderfield changed.MacOSPrivacyAccessControlItemwithSystemPolicyDocumentsFolder(Enablement systemPolicyDocumentsFolder)Returns an immutable copy ofthiswith just thesystemPolicyDocumentsFolderfield changed.MacOSPrivacyAccessControlItemwithSystemPolicyDownloadsFolder(Enablement systemPolicyDownloadsFolder)Returns an immutable copy ofthiswith just thesystemPolicyDownloadsFolderfield changed.MacOSPrivacyAccessControlItemwithSystemPolicyNetworkVolumes(Enablement systemPolicyNetworkVolumes)Returns an immutable copy ofthiswith just thesystemPolicyNetworkVolumesfield changed.MacOSPrivacyAccessControlItemwithSystemPolicyRemovableVolumes(Enablement systemPolicyRemovableVolumes)Returns an immutable copy ofthiswith just thesystemPolicyRemovableVolumesfield changed.MacOSPrivacyAccessControlItemwithSystemPolicySystemAdminFiles(Enablement systemPolicySystemAdminFiles)Returns an immutable copy ofthiswith just thesystemPolicySystemAdminFilesfield changed.MacOSPrivacyAccessControlItemwithUnmappedField(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
-
accessibility
protected Enablement accessibility
-
addressBook
protected Enablement addressBook
-
appleEventsAllowedReceivers
protected List<MacOSAppleEventReceiver> appleEventsAllowedReceivers
-
appleEventsAllowedReceiversNextLink
protected String appleEventsAllowedReceiversNextLink
-
blockCamera
protected Boolean blockCamera
-
blockListenEvent
protected Boolean blockListenEvent
-
blockMicrophone
protected Boolean blockMicrophone
-
blockScreenCapture
protected Boolean blockScreenCapture
-
calendar
protected Enablement calendar
-
codeRequirement
protected String codeRequirement
-
displayName
protected String displayName
-
fileProviderPresence
protected Enablement fileProviderPresence
-
identifier
protected String identifier
-
identifierType
protected MacOSProcessIdentifierType identifierType
-
mediaLibrary
protected Enablement mediaLibrary
-
photos
protected Enablement photos
-
postEvent
protected Enablement postEvent
-
reminders
protected Enablement reminders
-
speechRecognition
protected Enablement speechRecognition
-
staticCodeValidation
protected Boolean staticCodeValidation
-
systemPolicyAllFiles
protected Enablement systemPolicyAllFiles
-
systemPolicyDesktopFolder
protected Enablement systemPolicyDesktopFolder
-
systemPolicyDocumentsFolder
protected Enablement systemPolicyDocumentsFolder
-
systemPolicyDownloadsFolder
protected Enablement systemPolicyDownloadsFolder
-
systemPolicyNetworkVolumes
protected Enablement systemPolicyNetworkVolumes
-
systemPolicyRemovableVolumes
protected Enablement systemPolicyRemovableVolumes
-
systemPolicySystemAdminFiles
protected Enablement systemPolicySystemAdminFiles
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAccessibility
public Optional<Enablement> getAccessibility()
“Allow the app or process to control the Mac via the Accessibility subsystem.”- Returns:
- property accessibility
-
withAccessibility
public MacOSPrivacyAccessControlItem withAccessibility(Enablement accessibility)
Returns an immutable copy ofthiswith just theaccessibilityfield 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.“Allow the app or process to control the Mac via the Accessibility subsystem.”
- Parameters:
accessibility- new value ofaccessibilityfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaccessibilityfield changed
-
getAddressBook
public Optional<Enablement> getAddressBook()
“Allow or block access to contact information managed by Contacts.”- Returns:
- property addressBook
-
withAddressBook
public MacOSPrivacyAccessControlItem withAddressBook(Enablement addressBook)
Returns an immutable copy ofthiswith just theaddressBookfield 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.“Allow or block access to contact information managed by Contacts.”
- Parameters:
addressBook- new value ofaddressBookfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaddressBookfield changed
-
getAppleEventsAllowedReceivers
public com.github.davidmoten.odata.client.CollectionPage<MacOSAppleEventReceiver> getAppleEventsAllowedReceivers()
“Allow or deny the app or process to send a restricted Apple event to another app or process. You will need to know the identifier, identifier type, and code requirement of the receiving app or process. This collection can contain a maximum of 500 elements.”- Returns:
- property appleEventsAllowedReceivers
-
getAppleEventsAllowedReceivers
public com.github.davidmoten.odata.client.CollectionPage<MacOSAppleEventReceiver> getAppleEventsAllowedReceivers(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Allow or deny the app or process to send a restricted Apple event to another app or process. You will need to know the identifier, identifier type, and code requirement of the receiving app or process. This collection can contain a maximum of 500 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property appleEventsAllowedReceivers
-
getBlockCamera
public Optional<Boolean> getBlockCamera()
“Block access to camera app.”- Returns:
- property blockCamera
-
withBlockCamera
public MacOSPrivacyAccessControlItem withBlockCamera(Boolean blockCamera)
Returns an immutable copy ofthiswith just theblockCamerafield 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.“Block access to camera app.”
- Parameters:
blockCamera- new value ofblockCamerafield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theblockCamerafield changed
-
getBlockListenEvent
public Optional<Boolean> getBlockListenEvent()
“Block the app or process from listening to events from input devices such as mouse, keyboard, and trackpad.Requires macOS 10.15 or later.”- Returns:
- property blockListenEvent
-
withBlockListenEvent
public MacOSPrivacyAccessControlItem withBlockListenEvent(Boolean blockListenEvent)
Returns an immutable copy ofthiswith just theblockListenEventfield 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.“Block the app or process from listening to events from input devices such as mouse, keyboard, and trackpad.Requires macOS 10.15 or later.”
- Parameters:
blockListenEvent- new value ofblockListenEventfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theblockListenEventfield changed
-
getBlockMicrophone
public Optional<Boolean> getBlockMicrophone()
“Block access to microphone.”- Returns:
- property blockMicrophone
-
withBlockMicrophone
public MacOSPrivacyAccessControlItem withBlockMicrophone(Boolean blockMicrophone)
Returns an immutable copy ofthiswith just theblockMicrophonefield 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.“Block access to microphone.”
- Parameters:
blockMicrophone- new value ofblockMicrophonefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theblockMicrophonefield changed
-
getBlockScreenCapture
public Optional<Boolean> getBlockScreenCapture()
“Block app from capturing contents of system display. Requires macOS 10.15 or later.”- Returns:
- property blockScreenCapture
-
withBlockScreenCapture
public MacOSPrivacyAccessControlItem withBlockScreenCapture(Boolean blockScreenCapture)
Returns an immutable copy ofthiswith just theblockScreenCapturefield 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.“Block app from capturing contents of system display. Requires macOS 10.15 or later.”
- Parameters:
blockScreenCapture- new value ofblockScreenCapturefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theblockScreenCapturefield changed
-
getCalendar
public Optional<Enablement> getCalendar()
“Allow or block access to event information managed by Calendar.”- Returns:
- property calendar
-
withCalendar
public MacOSPrivacyAccessControlItem withCalendar(Enablement calendar)
Returns an immutable copy ofthiswith just thecalendarfield 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.“Allow or block access to event information managed by Calendar.”
- Parameters:
calendar- new value ofcalendarfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecalendarfield changed
-
getCodeRequirement
public Optional<String> getCodeRequirement()
“Enter the code requirement, which can be obtained with the command 'codesign –display -r –' in the Terminal app. Include everything after '=>'.”- Returns:
- property codeRequirement
-
withCodeRequirement
public MacOSPrivacyAccessControlItem withCodeRequirement(String codeRequirement)
Returns an immutable copy ofthiswith just thecodeRequirementfield 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.“Enter the code requirement, which can be obtained with the command 'codesign –display -r –' in the Terminal app. Include everything after '=>'.”
- Parameters:
codeRequirement- new value ofcodeRequirementfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecodeRequirementfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The display name of the app, process, or executable.”- Returns:
- property displayName
-
withDisplayName
public MacOSPrivacyAccessControlItem 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 display name of the app, process, or executable.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getFileProviderPresence
public Optional<Enablement> getFileProviderPresence()
“Allow the app or process to access files managed by another app’s file provider extension. Requires macOS 10.15 or later.”- Returns:
- property fileProviderPresence
-
withFileProviderPresence
public MacOSPrivacyAccessControlItem withFileProviderPresence(Enablement fileProviderPresence)
Returns an immutable copy ofthiswith just thefileProviderPresencefield 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.“Allow the app or process to access files managed by another app’s file provider extension. Requires macOS 10.15 or later.”
- Parameters:
fileProviderPresence- new value offileProviderPresencefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefileProviderPresencefield changed
-
getIdentifier
public Optional<String> getIdentifier()
“The bundle ID or path of the app, process, or executable.”- Returns:
- property identifier
-
withIdentifier
public MacOSPrivacyAccessControlItem withIdentifier(String identifier)
Returns an immutable copy ofthiswith just theidentifierfield 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 bundle ID or path of the app, process, or executable.”
- Parameters:
identifier- new value ofidentifierfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theidentifierfield changed
-
getIdentifierType
public Optional<MacOSProcessIdentifierType> getIdentifierType()
“A bundle ID is used to identify an app. A path is used to identify a process or executable.”- Returns:
- property identifierType
-
withIdentifierType
public MacOSPrivacyAccessControlItem withIdentifierType(MacOSProcessIdentifierType identifierType)
Returns an immutable copy ofthiswith just theidentifierTypefield 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.“A bundle ID is used to identify an app. A path is used to identify a process or executable.”
- Parameters:
identifierType- new value ofidentifierTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theidentifierTypefield changed
-
getMediaLibrary
public Optional<Enablement> getMediaLibrary()
“Allow or block access to music and the media library.”- Returns:
- property mediaLibrary
-
withMediaLibrary
public MacOSPrivacyAccessControlItem withMediaLibrary(Enablement mediaLibrary)
Returns an immutable copy ofthiswith just themediaLibraryfield 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.“Allow or block access to music and the media library.”
- Parameters:
mediaLibrary- new value ofmediaLibraryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themediaLibraryfield changed
-
getPhotos
public Optional<Enablement> getPhotos()
“Allow or block access to images managed by Photos.”- Returns:
- property photos
-
withPhotos
public MacOSPrivacyAccessControlItem withPhotos(Enablement photos)
Returns an immutable copy ofthiswith just thephotosfield 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.“Allow or block access to images managed by Photos.”
- Parameters:
photos- new value ofphotosfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thephotosfield changed
-
getPostEvent
public Optional<Enablement> getPostEvent()
“Control access to CoreGraphics APIs, which are used to send CGEvents to the system event stream.”- Returns:
- property postEvent
-
withPostEvent
public MacOSPrivacyAccessControlItem withPostEvent(Enablement postEvent)
Returns an immutable copy ofthiswith just thepostEventfield 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.“Control access to CoreGraphics APIs, which are used to send CGEvents to the system event stream.”
- Parameters:
postEvent- new value ofpostEventfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepostEventfield changed
-
getReminders
public Optional<Enablement> getReminders()
“Allow or block access to information managed by Reminders.”- Returns:
- property reminders
-
withReminders
public MacOSPrivacyAccessControlItem withReminders(Enablement reminders)
Returns an immutable copy ofthiswith just theremindersfield 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.“Allow or block access to information managed by Reminders.”
- Parameters:
reminders- new value ofremindersfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theremindersfield changed
-
getSpeechRecognition
public Optional<Enablement> getSpeechRecognition()
“Allow or block access to system speech recognition facility.”- Returns:
- property speechRecognition
-
withSpeechRecognition
public MacOSPrivacyAccessControlItem withSpeechRecognition(Enablement speechRecognition)
Returns an immutable copy ofthiswith just thespeechRecognitionfield 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.“Allow or block access to system speech recognition facility.”
- Parameters:
speechRecognition- new value ofspeechRecognitionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thespeechRecognitionfield changed
-
getStaticCodeValidation
public Optional<Boolean> getStaticCodeValidation()
“Statically validates the code requirement. Use this setting if the process invalidates its dynamic code signature.”- Returns:
- property staticCodeValidation
-
withStaticCodeValidation
public MacOSPrivacyAccessControlItem withStaticCodeValidation(Boolean staticCodeValidation)
Returns an immutable copy ofthiswith just thestaticCodeValidationfield 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.“Statically validates the code requirement. Use this setting if the process invalidates its dynamic code signature.”
- Parameters:
staticCodeValidation- new value ofstaticCodeValidationfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestaticCodeValidationfield changed
-
getSystemPolicyAllFiles
public Optional<Enablement> getSystemPolicyAllFiles()
“Control access to all protected files on a device. Files might be in locations such as emails, messages, apps, and administrative settings. Apply this setting with caution.”- Returns:
- property systemPolicyAllFiles
-
withSystemPolicyAllFiles
public MacOSPrivacyAccessControlItem withSystemPolicyAllFiles(Enablement systemPolicyAllFiles)
Returns an immutable copy ofthiswith just thesystemPolicyAllFilesfield 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.“Control access to all protected files on a device. Files might be in locations such as emails, messages, apps, and administrative settings. Apply this setting with caution.”
- Parameters:
systemPolicyAllFiles- new value ofsystemPolicyAllFilesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesystemPolicyAllFilesfield changed
-
getSystemPolicyDesktopFolder
public Optional<Enablement> getSystemPolicyDesktopFolder()
“Allow or block access to Desktop folder.”- Returns:
- property systemPolicyDesktopFolder
-
withSystemPolicyDesktopFolder
public MacOSPrivacyAccessControlItem withSystemPolicyDesktopFolder(Enablement systemPolicyDesktopFolder)
Returns an immutable copy ofthiswith just thesystemPolicyDesktopFolderfield 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.“Allow or block access to Desktop folder.”
- Parameters:
systemPolicyDesktopFolder- new value ofsystemPolicyDesktopFolderfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesystemPolicyDesktopFolderfield changed
-
getSystemPolicyDocumentsFolder
public Optional<Enablement> getSystemPolicyDocumentsFolder()
“Allow or block access to Documents folder.”- Returns:
- property systemPolicyDocumentsFolder
-
withSystemPolicyDocumentsFolder
public MacOSPrivacyAccessControlItem withSystemPolicyDocumentsFolder(Enablement systemPolicyDocumentsFolder)
Returns an immutable copy ofthiswith just thesystemPolicyDocumentsFolderfield 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.“Allow or block access to Documents folder.”
- Parameters:
systemPolicyDocumentsFolder- new value ofsystemPolicyDocumentsFolderfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesystemPolicyDocumentsFolderfield changed
-
getSystemPolicyDownloadsFolder
public Optional<Enablement> getSystemPolicyDownloadsFolder()
“Allow or block access to Downloads folder.”- Returns:
- property systemPolicyDownloadsFolder
-
withSystemPolicyDownloadsFolder
public MacOSPrivacyAccessControlItem withSystemPolicyDownloadsFolder(Enablement systemPolicyDownloadsFolder)
Returns an immutable copy ofthiswith just thesystemPolicyDownloadsFolderfield 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.“Allow or block access to Downloads folder.”
- Parameters:
systemPolicyDownloadsFolder- new value ofsystemPolicyDownloadsFolderfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesystemPolicyDownloadsFolderfield changed
-
getSystemPolicyNetworkVolumes
public Optional<Enablement> getSystemPolicyNetworkVolumes()
“Allow or block access to network volumes. Requires macOS 10.15 or later.”- Returns:
- property systemPolicyNetworkVolumes
-
withSystemPolicyNetworkVolumes
public MacOSPrivacyAccessControlItem withSystemPolicyNetworkVolumes(Enablement systemPolicyNetworkVolumes)
Returns an immutable copy ofthiswith just thesystemPolicyNetworkVolumesfield 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.“Allow or block access to network volumes. Requires macOS 10.15 or later.”
- Parameters:
systemPolicyNetworkVolumes- new value ofsystemPolicyNetworkVolumesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesystemPolicyNetworkVolumesfield changed
-
getSystemPolicyRemovableVolumes
public Optional<Enablement> getSystemPolicyRemovableVolumes()
“Control access to removable volumes on the device, such as an external hard drive. Requires macOS 10.15 or later.”- Returns:
- property systemPolicyRemovableVolumes
-
withSystemPolicyRemovableVolumes
public MacOSPrivacyAccessControlItem withSystemPolicyRemovableVolumes(Enablement systemPolicyRemovableVolumes)
Returns an immutable copy ofthiswith just thesystemPolicyRemovableVolumesfield 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.“Control access to removable volumes on the device, such as an external hard drive. Requires macOS 10.15 or later.”
- Parameters:
systemPolicyRemovableVolumes- new value ofsystemPolicyRemovableVolumesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesystemPolicyRemovableVolumesfield changed
-
getSystemPolicySystemAdminFiles
public Optional<Enablement> getSystemPolicySystemAdminFiles()
“Allow app or process to access files used in system administration.”- Returns:
- property systemPolicySystemAdminFiles
-
withSystemPolicySystemAdminFiles
public MacOSPrivacyAccessControlItem withSystemPolicySystemAdminFiles(Enablement systemPolicySystemAdminFiles)
Returns an immutable copy ofthiswith just thesystemPolicySystemAdminFilesfield 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.“Allow app or process to access files used in system administration.”
- Parameters:
systemPolicySystemAdminFiles- new value ofsystemPolicySystemAdminFilesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesystemPolicySystemAdminFilesfield changed
-
withUnmappedField
public MacOSPrivacyAccessControlItem 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 MacOSPrivacyAccessControlItem.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
-
-