public class MacOSPrivacyAccessControlItem extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
MacOSPrivacyAccessControlItem.Builder |
| Modifier | Constructor and Description |
|---|---|
protected |
MacOSPrivacyAccessControlItem() |
| Modifier and Type | Method and Description |
|---|---|
static MacOSPrivacyAccessControlItem.Builder |
builder()
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.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
MacOSPrivacyAccessControlItem |
withAccessibility(Enablement accessibility)
Returns an immutable copy of
this with just the accessibility
field changed. |
MacOSPrivacyAccessControlItem |
withAddressBook(Enablement addressBook)
Returns an immutable copy of
this with just the addressBook
field changed. |
MacOSPrivacyAccessControlItem |
withBlockCamera(Boolean blockCamera)
Returns an immutable copy of
this with just the blockCamera
field changed. |
MacOSPrivacyAccessControlItem |
withBlockListenEvent(Boolean blockListenEvent)
Returns an immutable copy of
this with just the blockListenEvent
field changed. |
MacOSPrivacyAccessControlItem |
withBlockMicrophone(Boolean blockMicrophone)
Returns an immutable copy of
this with just the blockMicrophone
field changed. |
MacOSPrivacyAccessControlItem |
withBlockScreenCapture(Boolean blockScreenCapture)
Returns an immutable copy of
this with just the blockScreenCapture field changed. |
MacOSPrivacyAccessControlItem |
withCalendar(Enablement calendar)
Returns an immutable copy of
this with just the calendar field
changed. |
MacOSPrivacyAccessControlItem |
withCodeRequirement(String codeRequirement)
Returns an immutable copy of
this with just the codeRequirement
field changed. |
MacOSPrivacyAccessControlItem |
withDisplayName(String displayName)
Returns an immutable copy of
this with just the displayName
field changed. |
MacOSPrivacyAccessControlItem |
withFileProviderPresence(Enablement fileProviderPresence)
Returns an immutable copy of
this with just the fileProviderPresence field changed. |
MacOSPrivacyAccessControlItem |
withIdentifier(String identifier)
Returns an immutable copy of
this with just the identifier field
changed. |
MacOSPrivacyAccessControlItem |
withIdentifierType(MacOSProcessIdentifierType identifierType)
Returns an immutable copy of
this with just the identifierType
field changed. |
MacOSPrivacyAccessControlItem |
withMediaLibrary(Enablement mediaLibrary)
Returns an immutable copy of
this with just the mediaLibrary
field changed. |
MacOSPrivacyAccessControlItem |
withPhotos(Enablement photos)
Returns an immutable copy of
this with just the photos field
changed. |
MacOSPrivacyAccessControlItem |
withPostEvent(Enablement postEvent)
Returns an immutable copy of
this with just the postEvent field
changed. |
MacOSPrivacyAccessControlItem |
withReminders(Enablement reminders)
Returns an immutable copy of
this with just the reminders field
changed. |
MacOSPrivacyAccessControlItem |
withSpeechRecognition(Enablement speechRecognition)
Returns an immutable copy of
this with just the speechRecognition
field changed. |
MacOSPrivacyAccessControlItem |
withStaticCodeValidation(Boolean staticCodeValidation)
Returns an immutable copy of
this with just the staticCodeValidation field changed. |
MacOSPrivacyAccessControlItem |
withSystemPolicyAllFiles(Enablement systemPolicyAllFiles)
Returns an immutable copy of
this with just the systemPolicyAllFiles field changed. |
MacOSPrivacyAccessControlItem |
withSystemPolicyDesktopFolder(Enablement systemPolicyDesktopFolder)
Returns an immutable copy of
this with just the systemPolicyDesktopFolder field changed. |
MacOSPrivacyAccessControlItem |
withSystemPolicyDocumentsFolder(Enablement systemPolicyDocumentsFolder)
Returns an immutable copy of
this with just the systemPolicyDocumentsFolder field changed. |
MacOSPrivacyAccessControlItem |
withSystemPolicyDownloadsFolder(Enablement systemPolicyDownloadsFolder)
Returns an immutable copy of
this with just the systemPolicyDownloadsFolder field changed. |
MacOSPrivacyAccessControlItem |
withSystemPolicyNetworkVolumes(Enablement systemPolicyNetworkVolumes)
Returns an immutable copy of
this with just the systemPolicyNetworkVolumes field changed. |
MacOSPrivacyAccessControlItem |
withSystemPolicyRemovableVolumes(Enablement systemPolicyRemovableVolumes)
Returns an immutable copy of
this with just the systemPolicyRemovableVolumes field changed. |
MacOSPrivacyAccessControlItem |
withSystemPolicySystemAdminFiles(Enablement systemPolicySystemAdminFiles)
Returns an immutable copy of
this with just the systemPolicySystemAdminFiles field changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected String displayName
protected String identifier
protected MacOSProcessIdentifierType identifierType
protected String codeRequirement
protected Boolean staticCodeValidation
protected Boolean blockCamera
protected Boolean blockMicrophone
protected Boolean blockScreenCapture
protected Boolean blockListenEvent
protected Enablement speechRecognition
protected Enablement accessibility
protected Enablement addressBook
protected Enablement calendar
protected Enablement reminders
protected Enablement photos
protected Enablement mediaLibrary
protected Enablement fileProviderPresence
protected Enablement systemPolicyAllFiles
protected Enablement systemPolicySystemAdminFiles
protected Enablement systemPolicyDesktopFolder
protected Enablement systemPolicyDocumentsFolder
protected Enablement systemPolicyDownloadsFolder
protected Enablement systemPolicyNetworkVolumes
protected Enablement systemPolicyRemovableVolumes
protected Enablement postEvent
protected List<MacOSAppleEventReceiver> appleEventsAllowedReceivers
protected String appleEventsAllowedReceiversNextLink
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic Optional<String> getDisplayName()
public MacOSPrivacyAccessControlItem withDisplayName(String displayName)
this with just the displayName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The display name of the app, process, or executable.”
displayName - new value of displayName field (as defined in service metadata)this with just the displayName field changedpublic Optional<String> getIdentifier()
public MacOSPrivacyAccessControlItem withIdentifier(String identifier)
this with just the identifier field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.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.”
identifier - new value of identifier field (as defined in service metadata)this with just the identifier field changedpublic Optional<MacOSProcessIdentifierType> getIdentifierType()
public MacOSPrivacyAccessControlItem withIdentifierType(MacOSProcessIdentifierType identifierType)
this with just the identifierType
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
identifierType - new value of identifierType field (as defined in service metadata)this with just the identifierType field changedpublic Optional<String> getCodeRequirement()
public MacOSPrivacyAccessControlItem withCodeRequirement(String codeRequirement)
this with just the codeRequirement
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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 '=>'.”
codeRequirement - new value of codeRequirement field (as defined in service metadata)this with just the codeRequirement field changedpublic Optional<Boolean> getStaticCodeValidation()
public MacOSPrivacyAccessControlItem withStaticCodeValidation(Boolean staticCodeValidation)
this with just the staticCodeValidation field changed. Field description below. The field name is
also added to an internal map of changed fields in the returned object so that
when this.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.”
staticCodeValidation - new value of staticCodeValidation field (as defined in service metadata)this with just the staticCodeValidation field changedpublic Optional<Boolean> getBlockCamera()
public MacOSPrivacyAccessControlItem withBlockCamera(Boolean blockCamera)
this with just the blockCamera
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Block access to camera app.”
blockCamera - new value of blockCamera field (as defined in service metadata)this with just the blockCamera field changedpublic Optional<Boolean> getBlockMicrophone()
public MacOSPrivacyAccessControlItem withBlockMicrophone(Boolean blockMicrophone)
this with just the blockMicrophone
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Block access to microphone.”
blockMicrophone - new value of blockMicrophone field (as defined in service metadata)this with just the blockMicrophone field changedpublic Optional<Boolean> getBlockScreenCapture()
public MacOSPrivacyAccessControlItem withBlockScreenCapture(Boolean blockScreenCapture)
this with just the blockScreenCapture field changed. Field description below. The field name is
also added to an internal map of changed fields in the returned object so that
when this.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.”
blockScreenCapture - new value of blockScreenCapture field (as defined in service metadata)this with just the blockScreenCapture field changedpublic Optional<Boolean> getBlockListenEvent()
public MacOSPrivacyAccessControlItem withBlockListenEvent(Boolean blockListenEvent)
this with just the blockListenEvent
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
blockListenEvent - new value of blockListenEvent field (as defined in service metadata)this with just the blockListenEvent field changedpublic Optional<Enablement> getSpeechRecognition()
public MacOSPrivacyAccessControlItem withSpeechRecognition(Enablement speechRecognition)
this with just the speechRecognition
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Allow or block access to system speech recognition facility.”
speechRecognition - new value of speechRecognition field (as defined in service metadata)this with just the speechRecognition field changedpublic Optional<Enablement> getAccessibility()
public MacOSPrivacyAccessControlItem withAccessibility(Enablement accessibility)
this with just the accessibility
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
accessibility - new value of accessibility field (as defined in service metadata)this with just the accessibility field changedpublic Optional<Enablement> getAddressBook()
public MacOSPrivacyAccessControlItem withAddressBook(Enablement addressBook)
this with just the addressBook
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
addressBook - new value of addressBook field (as defined in service metadata)this with just the addressBook field changedpublic Optional<Enablement> getCalendar()
public MacOSPrivacyAccessControlItem withCalendar(Enablement calendar)
this with just the calendar field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.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.”
calendar - new value of calendar field (as defined in service metadata)this with just the calendar field changedpublic Optional<Enablement> getReminders()
public MacOSPrivacyAccessControlItem withReminders(Enablement reminders)
this with just the reminders field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Allow or block access to information managed by Reminders.”
reminders - new value of reminders field (as defined in service metadata)this with just the reminders field changedpublic Optional<Enablement> getPhotos()
public MacOSPrivacyAccessControlItem withPhotos(Enablement photos)
this with just the photos field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Allow or block access to images managed by Photos.”
photos - new value of photos field (as defined in service metadata)this with just the photos field changedpublic Optional<Enablement> getMediaLibrary()
public MacOSPrivacyAccessControlItem withMediaLibrary(Enablement mediaLibrary)
this with just the mediaLibrary
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
mediaLibrary - new value of mediaLibrary field (as defined in service metadata)this with just the mediaLibrary field changedpublic Optional<Enablement> getFileProviderPresence()
public MacOSPrivacyAccessControlItem withFileProviderPresence(Enablement fileProviderPresence)
this with just the fileProviderPresence field changed. Field description below. The field name is
also added to an internal map of changed fields in the returned object so that
when this.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.”
fileProviderPresence - new value of fileProviderPresence field (as defined in service metadata)this with just the fileProviderPresence field changedpublic Optional<Enablement> getSystemPolicyAllFiles()
public MacOSPrivacyAccessControlItem withSystemPolicyAllFiles(Enablement systemPolicyAllFiles)
this with just the systemPolicyAllFiles field changed. Field description below. The field name is
also added to an internal map of changed fields in the returned object so that
when this.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.”
systemPolicyAllFiles - new value of systemPolicyAllFiles field (as defined in service metadata)this with just the systemPolicyAllFiles field changedpublic Optional<Enablement> getSystemPolicySystemAdminFiles()
public MacOSPrivacyAccessControlItem withSystemPolicySystemAdminFiles(Enablement systemPolicySystemAdminFiles)
this with just the systemPolicySystemAdminFiles field changed. Field description below. The field
name is also added to an internal map of changed fields in the returned object
so that when this.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.”
systemPolicySystemAdminFiles - new value of systemPolicySystemAdminFiles field (as defined in service metadata)this with just the systemPolicySystemAdminFiles field changedpublic Optional<Enablement> getSystemPolicyDesktopFolder()
public MacOSPrivacyAccessControlItem withSystemPolicyDesktopFolder(Enablement systemPolicyDesktopFolder)
this with just the systemPolicyDesktopFolder field changed. Field description below. The field
name is also added to an internal map of changed fields in the returned object
so that when this.patch() is called (if available)on the returned object
only the changed fields are submitted.
“Allow or block access to Desktop folder.”
systemPolicyDesktopFolder - new value of systemPolicyDesktopFolder field (as defined in service metadata)this with just the systemPolicyDesktopFolder field changedpublic Optional<Enablement> getSystemPolicyDocumentsFolder()
public MacOSPrivacyAccessControlItem withSystemPolicyDocumentsFolder(Enablement systemPolicyDocumentsFolder)
this with just the systemPolicyDocumentsFolder field changed. Field description below. The field
name is also added to an internal map of changed fields in the returned object
so that when this.patch() is called (if available)on the returned object
only the changed fields are submitted.
“Allow or block access to Documents folder.”
systemPolicyDocumentsFolder - new value of systemPolicyDocumentsFolder field (as defined in service metadata)this with just the systemPolicyDocumentsFolder field changedpublic Optional<Enablement> getSystemPolicyDownloadsFolder()
public MacOSPrivacyAccessControlItem withSystemPolicyDownloadsFolder(Enablement systemPolicyDownloadsFolder)
this with just the systemPolicyDownloadsFolder field changed. Field description below. The field
name is also added to an internal map of changed fields in the returned object
so that when this.patch() is called (if available)on the returned object
only the changed fields are submitted.
“Allow or block access to Downloads folder.”
systemPolicyDownloadsFolder - new value of systemPolicyDownloadsFolder field (as defined in service metadata)this with just the systemPolicyDownloadsFolder field changedpublic Optional<Enablement> getSystemPolicyNetworkVolumes()
public MacOSPrivacyAccessControlItem withSystemPolicyNetworkVolumes(Enablement systemPolicyNetworkVolumes)
this with just the systemPolicyNetworkVolumes field changed. Field description below. The field
name is also added to an internal map of changed fields in the returned object
so that when this.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.”
systemPolicyNetworkVolumes - new value of systemPolicyNetworkVolumes field (as defined in service metadata)this with just the systemPolicyNetworkVolumes field changedpublic Optional<Enablement> getSystemPolicyRemovableVolumes()
public MacOSPrivacyAccessControlItem withSystemPolicyRemovableVolumes(Enablement systemPolicyRemovableVolumes)
this with just the systemPolicyRemovableVolumes field changed. Field description below. The field
name is also added to an internal map of changed fields in the returned object
so that when this.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.”
systemPolicyRemovableVolumes - new value of systemPolicyRemovableVolumes field (as defined in service metadata)this with just the systemPolicyRemovableVolumes field changedpublic Optional<Enablement> getPostEvent()
public MacOSPrivacyAccessControlItem withPostEvent(Enablement postEvent)
this with just the postEvent field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.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.”
postEvent - new value of postEvent field (as defined in service metadata)this with just the postEvent field changedpublic com.github.davidmoten.odata.client.CollectionPage<MacOSAppleEventReceiver> getAppleEventsAllowedReceivers()
public com.github.davidmoten.odata.client.CollectionPage<MacOSAppleEventReceiver> getAppleEventsAllowedReceivers(com.github.davidmoten.odata.client.HttpRequestOptions options)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static MacOSPrivacyAccessControlItem.Builder builder()
Copyright © 2018–2020. All rights reserved.