Package odata.msgraph.client.complex
Class IosNetworkUsageRule
- java.lang.Object
-
- odata.msgraph.client.complex.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIosNetworkUsageRule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleancellularDataBlockedprotected BooleancellularDataBlockWhenRoamingprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected List<AppListItem>managedAppsprotected StringmanagedAppsNextLinkprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedIosNetworkUsageRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IosNetworkUsageRule.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Boolean>getCellularDataBlocked()“If set to true, corresponding managed apps will not be allowed to use cellular data at any time.”Optional<Boolean>getCellularDataBlockWhenRoaming()“If set to true, corresponding managed apps will not be allowed to use cellular data when roaming.”com.github.davidmoten.odata.client.CollectionPage<AppListItem>getManagedApps()“Information about the managed apps that this rule is going to apply to.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.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()IosNetworkUsageRulewithCellularDataBlocked(Boolean cellularDataBlocked)Returns an immutable copy ofthiswith just thecellularDataBlockedfield changed.IosNetworkUsageRulewithCellularDataBlockWhenRoaming(Boolean cellularDataBlockWhenRoaming)Returns an immutable copy ofthiswith just thecellularDataBlockWhenRoamingfield changed.IosNetworkUsageRulewithUnmappedField(String name, String value)
-
-
-
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
-
managedApps
protected List<AppListItem> managedApps
-
managedAppsNextLink
protected String managedAppsNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.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 ofthiswith just thecellularDataBlockedfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofcellularDataBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecellularDataBlockedfield 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 ofthiswith just thecellularDataBlockWhenRoamingfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofcellularDataBlockWhenRoamingfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecellularDataBlockWhenRoamingfield 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
-
withUnmappedField
public IosNetworkUsageRule withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.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
-
-