Class ManagementCondition

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType
    Direct Known Subclasses:
    LocationManagementCondition, NetworkManagementCondition

    public class ManagementCondition
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Management conditions are events that can be triggered dynamically such as geo- fences, time-fences, and network-fences.”
    • Constructor Detail

      • ManagementCondition

        protected ManagementCondition()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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
      • getApplicablePlatforms

        public com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType> getApplicablePlatforms()
        “The applicable platforms for this management condition.”
        Returns:
        property applicablePlatforms
      • withApplicablePlatforms

        public ManagementCondition withApplicablePlatforms​(List<DevicePlatformType> applicablePlatforms)
        Returns an immutable copy of this with just the applicablePlatforms 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 applicable platforms for this management condition.”

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

        public com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType> getApplicablePlatforms​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The applicable platforms for this management condition.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property applicablePlatforms
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “The time the management condition was created. Generated service side.”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public ManagementCondition 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 management condition 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
      • getDescription

        public Optional<String> getDescription()
        “The admin defined description of the management condition.”
        Returns:
        property description
      • withDescription

        public ManagementCondition 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 admin defined description of the management condition.”

        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()
        “The admin defined name of the management condition.”
        Returns:
        property displayName
      • withDisplayName

        public ManagementCondition 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 management condition.”

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

        public Optional<String> getETag()
        “ETag of the management condition. Updated service side.”
        Returns:
        property eTag
      • withETag

        public ManagementCondition withETag​(String eTag)
        Returns an immutable copy of this with just the eTag 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.

        “ETag of the management condition. Updated service side.”

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

        public Optional<OffsetDateTime> getModifiedDateTime()
        “The time the management condition was last modified. Updated service side.”
        Returns:
        property modifiedDateTime
      • withModifiedDateTime

        public ManagementCondition 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 management condition 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
      • getUniqueName

        public Optional<String> getUniqueName()
        “Unique name for the management condition. Used in management condition expressions.”
        Returns:
        property uniqueName
      • withUniqueName

        public ManagementCondition withUniqueName​(String uniqueName)
        Returns an immutable copy of this with just the uniqueName 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.

        “Unique name for the management condition. Used in management condition expressions.”

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

        public ManagementConditionStatementCollectionRequest getManagementConditionStatements()
        “The management condition statements associated to the management condition.”
        Returns:
        navigational property managementConditionStatements
      • 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 ManagementCondition 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 ManagementCondition 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