Class AppleUserInitiatedEnrollmentProfile

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

    public class AppleUserInitiatedEnrollmentProfile
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device.”
    • Constructor Detail

      • AppleUserInitiatedEnrollmentProfile

        protected AppleUserInitiatedEnrollmentProfile()
    • Method Detail

      • odataTypeName

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

        public static AppleUserInitiatedEnrollmentProfile.Builder builderAppleUserInitiatedEnrollmentProfile()
        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
      • getAvailableEnrollmentTypeOptions

        public com.github.davidmoten.odata.client.CollectionPage<AppleOwnerTypeEnrollmentType> getAvailableEnrollmentTypeOptions()
        “List of available enrollment type options”
        Returns:
        property availableEnrollmentTypeOptions
      • withAvailableEnrollmentTypeOptions

        public AppleUserInitiatedEnrollmentProfile withAvailableEnrollmentTypeOptions​(List<AppleOwnerTypeEnrollmentType> availableEnrollmentTypeOptions)
        Returns an immutable copy of this with just the availableEnrollmentTypeOptions 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 available enrollment type options”

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

        public com.github.davidmoten.odata.client.CollectionPage<AppleOwnerTypeEnrollmentType> getAvailableEnrollmentTypeOptions​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of available enrollment type options”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property availableEnrollmentTypeOptions
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “Profile creation time”
        Returns:
        property createdDateTime
      • withCreatedDateTime

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

        “Profile creation time”

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

        public AppleUserInitiatedEnrollmentProfile withDefaultEnrollmentType​(AppleUserInitiatedEnrollmentType defaultEnrollmentType)
        Returns an immutable copy of this with just the defaultEnrollmentType 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 default profile enrollment type.”

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

        public Optional<String> getDescription()
        “Description of the profile”
        Returns:
        property description
      • withDescription

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

        “Description of the profile”

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

        public Optional<String> getDisplayName()
        “Name of the profile”
        Returns:
        property displayName
      • withDisplayName

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

        “Name of 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()
        “Profile last modified time”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

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

        “Profile last modified time”

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

        public AppleUserInitiatedEnrollmentProfile withPlatform​(DevicePlatformType platform)
        Returns an immutable copy of this with just the platform 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 platform of the Device.”

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

        public Optional<Integer> getPriority()
        “Priority, 0 is highest”
        Returns:
        property priority
      • withPriority

        public AppleUserInitiatedEnrollmentProfile withPriority​(Integer priority)
        Returns an immutable copy of this with just the priority 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.

        “Priority, 0 is highest”

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

        public com.github.davidmoten.odata.client.ActionRequestNoReturn setPriority​(Integer priority)