Class IosCustomConfiguration

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

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

      • payload

        protected byte[] payload
      • payloadFileName

        protected String payloadFileName
      • payloadName

        protected String payloadName
    • Constructor Detail

      • IosCustomConfiguration

        protected IosCustomConfiguration()
    • Method Detail

      • odataTypeName

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

        public static IosCustomConfiguration.Builder builderIosCustomConfiguration()
        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
      • getPayload

        public Optional<byte[]> getPayload()
        “Payload. (UTF8 encoded byte array)”
        Returns:
        property payload
      • withPayload

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

        “Payload. (UTF8 encoded byte array)”

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

        public Optional<String> getPayloadFileName()
        “Payload file name (*.mobileconfig | *.xml).”
        Returns:
        property payloadFileName
      • withPayloadFileName

        public IosCustomConfiguration withPayloadFileName​(String payloadFileName)
        Returns an immutable copy of this with just the payloadFileName 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.

        “Payload file name (*.mobileconfig | *.xml).”

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

        public Optional<String> getPayloadName()
        “Name that is displayed to the user.”
        Returns:
        property payloadName
      • withPayloadName

        public IosCustomConfiguration withPayloadName​(String payloadName)
        Returns an immutable copy of this with just the payloadName 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.

        “Name that is displayed to the user.”

        Parameters:
        payloadName - new value of payloadName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the payloadName 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 IosCustomConfiguration 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 IosCustomConfiguration 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