Class MacOSCustomAppConfiguration

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class MacOSCustomAppConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomAppConfiguration resource.”
    • Field Detail

      • bundleId

        protected String bundleId
      • configurationXml

        protected byte[] configurationXml
      • fileName

        protected String fileName
    • Constructor Detail

      • MacOSCustomAppConfiguration

        protected MacOSCustomAppConfiguration()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class DeviceConfiguration
      • builderMacOSCustomAppConfiguration

        public static MacOSCustomAppConfiguration.Builder builderMacOSCustomAppConfiguration()
        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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class DeviceConfiguration
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class DeviceConfiguration
      • getBundleId

        public Optional<String> getBundleId()
        “Bundle id for targeting.”
        Returns:
        property bundleId
      • withBundleId

        public MacOSCustomAppConfiguration withBundleId​(String bundleId)
        Returns an immutable copy of this with just the bundleId 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.

        “Bundle id for targeting.”

        Parameters:
        bundleId - new value of bundleId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the bundleId field changed
      • getConfigurationXml

        public Optional<byte[]> getConfigurationXml()
        “Configuration xml. (UTF8 encoded byte array)”
        Returns:
        property configurationXml
      • withConfigurationXml

        public MacOSCustomAppConfiguration withConfigurationXml​(byte[] configurationXml)
        Returns an immutable copy of this with just the configurationXml 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.

        “Configuration xml. (UTF8 encoded byte array)”

        Parameters:
        configurationXml - new value of configurationXml field (as defined in service metadata)
        Returns:
        immutable copy of this with just the configurationXml field changed
      • getFileName

        public Optional<String> getFileName()
        “Configuration file name (*.plist | *.xml).”
        Returns:
        property fileName
      • withFileName

        public MacOSCustomAppConfiguration withFileName​(String fileName)
        Returns an immutable copy of this with just the fileName 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.

        “Configuration file name (*.plist | *.xml).”

        Parameters:
        fileName - new value of fileName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the fileName field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class DeviceConfiguration
      • patch

        public MacOSCustomAppConfiguration patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class DeviceConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public MacOSCustomAppConfiguration put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class DeviceConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected