Class MacOSSoftwareUpdateStateSummary

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

    public class MacOSSoftwareUpdateStateSummary
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “MacOS software update state summary for a device and user”
    • Constructor Detail

      • MacOSSoftwareUpdateStateSummary

        protected MacOSSoftwareUpdateStateSummary()
    • Method Detail

      • odataTypeName

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

        public static MacOSSoftwareUpdateStateSummary.Builder builderMacOSSoftwareUpdateStateSummary()
        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 Entity
      • postInject

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

        public Optional<String> getDisplayName()
        “Human readable name of the software update”
        Returns:
        property displayName
      • withDisplayName

        public MacOSSoftwareUpdateStateSummary withDisplayName​(String displayName)
        Returns an immutable copy of 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.

        “Human readable name of the software update”

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

        public Optional<OffsetDateTime> getLastUpdatedDateTime()
        “Last date time the report for this device and product key was updated.”
        Returns:
        property lastUpdatedDateTime
      • withLastUpdatedDateTime

        public MacOSSoftwareUpdateStateSummary withLastUpdatedDateTime​(OffsetDateTime lastUpdatedDateTime)
        Returns an immutable copy of this with just the lastUpdatedDateTime 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.

        “Last date time the report for this device and product key was updated.”

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

        public Optional<String> getProductKey()
        “Product key of the software update.”
        Returns:
        property productKey
      • withProductKey

        public MacOSSoftwareUpdateStateSummary withProductKey​(String productKey)
        Returns an immutable copy of this with just the productKey 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.

        “Product key of the software update.”

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

        public MacOSSoftwareUpdateStateSummary withState​(MacOSSoftwareUpdateState state)
        Returns an immutable copy of this with just the state 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.

        “State of the software update”

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

        public MacOSSoftwareUpdateStateSummary withUpdateCategory​(MacOSSoftwareUpdateCategory updateCategory)
        Returns an immutable copy of this with just the updateCategory 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.

        “Software update category”

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

        public Optional<String> getUpdateVersion()
        “Version of the software update”
        Returns:
        property updateVersion
      • withUpdateVersion

        public MacOSSoftwareUpdateStateSummary withUpdateVersion​(String updateVersion)
        Returns an immutable copy of this with just the updateVersion 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.

        “Version of the software update”

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

        public MacOSSoftwareUpdateStateSummary patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        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 MacOSSoftwareUpdateStateSummary 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 Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected