Class IosNetworkUsageRule

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

    public class IosNetworkUsageRule
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “Network Usage Rules allow enterprises to specify how managed apps use networks, such as cellular data networks.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • cellularDataBlocked

        protected Boolean cellularDataBlocked
      • cellularDataBlockWhenRoaming

        protected Boolean cellularDataBlockWhenRoaming
      • managedAppsNextLink

        protected String managedAppsNextLink
    • Constructor Detail

      • IosNetworkUsageRule

        protected IosNetworkUsageRule()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getCellularDataBlocked

        public Optional<Boolean> getCellularDataBlocked()
        “If set to true, corresponding managed apps will not be allowed to use cellular data at any time.”
        Returns:
        property cellularDataBlocked
      • withCellularDataBlocked

        public IosNetworkUsageRule withCellularDataBlocked​(Boolean cellularDataBlocked)
        Returns an immutable copy of this with just the cellularDataBlocked 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.

        “If set to true, corresponding managed apps will not be allowed to use cellular data at any time.”

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

        public Optional<Boolean> getCellularDataBlockWhenRoaming()
        “If set to true, corresponding managed apps will not be allowed to use cellular data when roaming.”
        Returns:
        property cellularDataBlockWhenRoaming
      • withCellularDataBlockWhenRoaming

        public IosNetworkUsageRule withCellularDataBlockWhenRoaming​(Boolean cellularDataBlockWhenRoaming)
        Returns an immutable copy of this with just the cellularDataBlockWhenRoaming 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.

        “If set to true, corresponding managed apps will not be allowed to use cellular data when roaming.”

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

        public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getManagedApps()
        “Information about the managed apps that this rule is going to apply to. This collection can contain a maximum of 500 elements.”
        Returns:
        property managedApps
      • getManagedApps

        public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getManagedApps​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Information about the managed apps that this rule is going to apply to. This collection can contain a maximum of 500 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property managedApps
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static IosNetworkUsageRule.Builder builder()
        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