Class EmbeddedSIMActivationCodePool

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

    public class EmbeddedSIMActivationCodePool
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “A pool represents a group of embedded SIM activation codes.”
    • Constructor Detail

      • EmbeddedSIMActivationCodePool

        protected EmbeddedSIMActivationCodePool()
    • Method Detail

      • odataTypeName

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

        public static EmbeddedSIMActivationCodePool.Builder builderEmbeddedSIMActivationCodePool()
        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
      • getActivationCodeCount

        public Optional<Integer> getActivationCodeCount()
        “The total count of activation codes which belong to this pool.”
        Returns:
        property activationCodeCount
      • withActivationCodeCount

        public EmbeddedSIMActivationCodePool withActivationCodeCount​(Integer activationCodeCount)
        Returns an immutable copy of this with just the activationCodeCount 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 total count of activation codes which belong to this pool.”

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

        public com.github.davidmoten.odata.client.CollectionPage<EmbeddedSIMActivationCode> getActivationCodes()
        “The activation codes which belong to this pool. This navigation property is used to post activation codes to Intune but cannot be used to read activation codes from Intune.”
        Returns:
        property activationCodes
      • withActivationCodes

        public EmbeddedSIMActivationCodePool withActivationCodes​(List<EmbeddedSIMActivationCode> activationCodes)
        Returns an immutable copy of this with just the activationCodes 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 activation codes which belong to this pool. This navigation property is used to post activation codes to Intune but cannot be used to read activation codes from Intune.”

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

        public com.github.davidmoten.odata.client.CollectionPage<EmbeddedSIMActivationCode> getActivationCodes​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The activation codes which belong to this pool. This navigation property is used to post activation codes to Intune but cannot be used to read activation codes from Intune.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property activationCodes
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “The time the embedded SIM activation code pool was created. Generated service side.”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public EmbeddedSIMActivationCodePool 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 time the embedded SIM activation code pool was created. Generated service side.”

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

        public Optional<String> getDisplayName()
        “The admin defined name of the embedded SIM activation code pool.”
        Returns:
        property displayName
      • withDisplayName

        public EmbeddedSIMActivationCodePool 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 admin defined name of the embedded SIM activation code pool.”

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

        public Optional<OffsetDateTime> getModifiedDateTime()
        “The time the embedded SIM activation code pool was last modified. Updated service side.”
        Returns:
        property modifiedDateTime
      • withModifiedDateTime

        public EmbeddedSIMActivationCodePool withModifiedDateTime​(OffsetDateTime modifiedDateTime)
        Returns an immutable copy of this with just the modifiedDateTime 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 time the embedded SIM activation code pool was last modified. Updated service side.”

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

        public EmbeddedSIMDeviceStateCollectionRequest getDeviceStates()
        “Navigational property to a list of device states for this pool.”
        Returns:
        navigational property deviceStates
      • 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 EmbeddedSIMActivationCodePool 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 EmbeddedSIMActivationCodePool 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