Class WindowsDriverUpdateProfile

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

    public class WindowsDriverUpdateProfile
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Windows Driver Update Profile”
    • Constructor Detail

      • WindowsDriverUpdateProfile

        protected WindowsDriverUpdateProfile()
    • Method Detail

      • odataTypeName

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

        public static WindowsDriverUpdateProfile.Builder builderWindowsDriverUpdateProfile()
        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
      • getApprovalType

        public Optional<DriverUpdateProfileApprovalType> getApprovalType()
        “Driver update profile approval type. For example, manual or automatic approval.”
        Returns:
        property approvalType
      • withApprovalType

        public WindowsDriverUpdateProfile withApprovalType​(DriverUpdateProfileApprovalType approvalType)
        Returns an immutable copy of this with just the approvalType 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.

        “Driver update profile approval type. For example, manual or automatic approval.”

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

        public Optional<OffsetDateTime> getCreatedDateTime()
        “The date time that the profile was created.”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public WindowsDriverUpdateProfile withCreatedDateTime​(OffsetDateTime createdDateTime)
        Returns an immutable copy of this with just the createdDateTime 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 date time that the profile was created.”

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

        public Optional<Integer> getDeploymentDeferralInDays()
        “Deployment deferral settings in days, only applicable when ApprovalType is set to automatic approval.”
        Returns:
        property deploymentDeferralInDays
      • withDeploymentDeferralInDays

        public WindowsDriverUpdateProfile withDeploymentDeferralInDays​(Integer deploymentDeferralInDays)
        Returns an immutable copy of this with just the deploymentDeferralInDays 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.

        “Deployment deferral settings in days, only applicable when ApprovalType is set to automatic approval.”

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

        public Optional<String> getDescription()
        “The description of the profile which is specified by the user.”
        Returns:
        property description
      • withDescription

        public WindowsDriverUpdateProfile withDescription​(String description)
        Returns an immutable copy of this with just the description 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 description of the profile which is specified by the user.”

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

        public Optional<Integer> getDeviceReporting()
        “Number of devices reporting for this profile”
        Returns:
        property deviceReporting
      • withDeviceReporting

        public WindowsDriverUpdateProfile withDeviceReporting​(Integer deviceReporting)
        Returns an immutable copy of this with just the deviceReporting 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.

        “Number of devices reporting for this profile”

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

        public Optional<String> getDisplayName()
        “The display name for the profile.”
        Returns:
        property displayName
      • withDisplayName

        public WindowsDriverUpdateProfile 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.

        “The display name for the profile.”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “The date time that the profile was last modified.”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public WindowsDriverUpdateProfile withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime 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 date time that the profile was last modified.”

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

        public Optional<Integer> getNewUpdates()
        “Number of new driver updates available for this profile.”
        Returns:
        property newUpdates
      • withNewUpdates

        public WindowsDriverUpdateProfile withNewUpdates​(Integer newUpdates)
        Returns an immutable copy of this with just the newUpdates 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.

        “Number of new driver updates available for this profile.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
        “List of Scope Tags for this Driver Update entity.”
        Returns:
        property roleScopeTagIds
      • withRoleScopeTagIds

        public WindowsDriverUpdateProfile withRoleScopeTagIds​(List<String> roleScopeTagIds)
        Returns an immutable copy of this with just the roleScopeTagIds 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.

        “List of Scope Tags for this Driver Update entity.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of Scope Tags for this Driver Update entity.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property roleScopeTagIds
      • 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 WindowsDriverUpdateProfile 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 WindowsDriverUpdateProfile 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