Class ManagementConditionStatement

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

    public class ManagementConditionStatement
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “A management condition statement is a group of management conditions that enable /disable device/application configurations when all contained management conditions are met.”
    • Constructor Detail

      • ManagementConditionStatement

        protected ManagementConditionStatement()
    • Method Detail

      • odataTypeName

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

        public static ManagementConditionStatement.Builder builderManagementConditionStatement()
        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
      • getApplicablePlatforms

        public com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType> getApplicablePlatforms()
        “This is calculated from looking the management conditions associated to the management condition statement and finding the intersection of applicable platforms.”
        Returns:
        property applicablePlatforms
      • withApplicablePlatforms

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

        “This is calculated from looking the management conditions associated to the management condition statement and finding the intersection of applicable platforms.”

        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)
        “This is calculated from looking the management conditions associated to the management condition statement and finding the intersection of applicable platforms.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property applicablePlatforms
      • getCreatedDateTime

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

        public ManagementConditionStatement 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 statement 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 statement.”
        Returns:
        property description
      • withDescription

        public ManagementConditionStatement 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 statement.”

        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 statement.”
        Returns:
        property displayName
      • withDisplayName

        public ManagementConditionStatement 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 statement.”

        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 statement. Updated service side.”
        Returns:
        property eTag
      • withETag

        public ManagementConditionStatement 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 statement. 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
      • getExpression

        public Optional<ManagementConditionExpression> getExpression()
        “The management condition statement expression used to evaluate if a management condition statement was activated/deactivated.”
        Returns:
        property expression
      • withExpression

        public ManagementConditionStatement withExpression​(ManagementConditionExpression expression)
        Returns an immutable copy of this with just the expression 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 management condition statement expression used to evaluate if a management condition statement was activated/deactivated.”

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

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

        public ManagementConditionStatement 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 statement 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
      • getManagementConditions

        public ManagementConditionCollectionRequest getManagementConditions()
        “The management conditions associated to the management condition statement.”
        Returns:
        navigational property managementConditions
      • 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 ManagementConditionStatement 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 ManagementConditionStatement 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
      • getManagementConditionStatementExpressionString

        public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<ManagementConditionExpressionString> getManagementConditionStatementExpressionString()