Class DeviceManagementAutopilotPolicyStatusDetail

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

    public class DeviceManagementAutopilotPolicyStatusDetail
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Policy status detail item contained by an autopilot event.”
    • Constructor Detail

      • DeviceManagementAutopilotPolicyStatusDetail

        protected DeviceManagementAutopilotPolicyStatusDetail()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementAutopilotPolicyStatusDetail.Builder builderDeviceManagementAutopilotPolicyStatusDetail()
        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
      • withComplianceStatus

        public DeviceManagementAutopilotPolicyStatusDetail withComplianceStatus​(DeviceManagementAutopilotPolicyComplianceStatus complianceStatus)
        Returns an immutable copy of this with just the complianceStatus 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 policy compliance status.”

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

        public Optional<String> getDisplayName()
        “The friendly name of the policy.”
        Returns:
        property displayName
      • withDisplayName

        public DeviceManagementAutopilotPolicyStatusDetail 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 friendly name of the policy.”

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

        public Optional<Integer> getErrorCode()
        “The errorode associated with the compliance or enforcement status of the policy. Error code for enforcement status takes precedence if it exists.”
        Returns:
        property errorCode
      • withErrorCode

        public DeviceManagementAutopilotPolicyStatusDetail withErrorCode​(Integer errorCode)
        Returns an immutable copy of this with just the errorCode 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 errorode associated with the compliance or enforcement status of the policy. Error code for enforcement status takes precedence if it exists.”

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

        public Optional<OffsetDateTime> getLastReportedDateTime()
        “Timestamp of the reported policy status”
        Returns:
        property lastReportedDateTime
      • withLastReportedDateTime

        public DeviceManagementAutopilotPolicyStatusDetail withLastReportedDateTime​(OffsetDateTime lastReportedDateTime)
        Returns an immutable copy of this with just the lastReportedDateTime 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.

        “Timestamp of the reported policy status”

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

        public DeviceManagementAutopilotPolicyStatusDetail withPolicyType​(DeviceManagementAutopilotPolicyType policyType)
        Returns an immutable copy of this with just the policyType 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 type of policy.”

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

        public Optional<Boolean> getTrackedOnEnrollmentStatus()
        “Indicates if this prolicy was tracked as part of the autopilot bootstrap enrollment sync session”
        Returns:
        property trackedOnEnrollmentStatus
      • withTrackedOnEnrollmentStatus

        public DeviceManagementAutopilotPolicyStatusDetail withTrackedOnEnrollmentStatus​(Boolean trackedOnEnrollmentStatus)
        Returns an immutable copy of this with just the trackedOnEnrollmentStatus 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.

        “Indicates if this prolicy was tracked as part of the autopilot bootstrap enrollment sync session”

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