Package odata.msgraph.client.beta.entity
Class AndroidForWorkWiFiConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.AndroidForWorkWiFiConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
AndroidForWorkEnterpriseWiFiConfiguration
public class AndroidForWorkWiFiConfiguration extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“By providing the configurations in this profile you can instruct the Android for Work device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidForWorkWiFiConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanconnectAutomaticallyprotected BooleanconnectWhenNetworkNameIsHiddenprotected StringnetworkNameprotected Stringssidprotected AndroidWiFiSecurityTypewiFiSecurityType-
Fields inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
createdDateTime, description, deviceManagementApplicabilityRuleDeviceMode, deviceManagementApplicabilityRuleOsEdition, deviceManagementApplicabilityRuleOsVersion, displayName, lastModifiedDateTime, roleScopeTagIds, roleScopeTagIdsNextLink, supportsScopeTags, version
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidForWorkWiFiConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidForWorkWiFiConfiguration.BuilderbuilderAndroidForWorkWiFiConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getConnectAutomatically()“Connect automatically when this network is in range.Optional<Boolean>getConnectWhenNetworkNameIsHidden()“When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.”Optional<String>getNetworkName()“Network Name”Optional<String>getSsid()“This is the name of the Wi-Fi network that is broadcast to all devices.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<AndroidWiFiSecurityType>getWiFiSecurityType()“Indicates whether Wi-Fi endpoint uses an EAP based security type.”StringodataTypeName()AndroidForWorkWiFiConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidForWorkWiFiConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidForWorkWiFiConfigurationwithConnectAutomatically(Boolean connectAutomatically)Returns an immutable copy ofthiswith just theconnectAutomaticallyfield changed.AndroidForWorkWiFiConfigurationwithConnectWhenNetworkNameIsHidden(Boolean connectWhenNetworkNameIsHidden)Returns an immutable copy ofthiswith just theconnectWhenNetworkNameIsHiddenfield changed.AndroidForWorkWiFiConfigurationwithNetworkName(String networkName)Returns an immutable copy ofthiswith just thenetworkNamefield changed.AndroidForWorkWiFiConfigurationwithSsid(String ssid)Returns an immutable copy ofthiswith just thessidfield changed.AndroidForWorkWiFiConfigurationwithUnmappedField(String name, String value)AndroidForWorkWiFiConfigurationwithWiFiSecurityType(AndroidWiFiSecurityType wiFiSecurityType)Returns an immutable copy ofthiswith just thewiFiSecurityTypefield changed.-
Methods inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
assign, assignedAccessMultiModeProfiles, getAssignments, getCreatedDateTime, getDescription, getDeviceManagementApplicabilityRuleDeviceMode, getDeviceManagementApplicabilityRuleOsEdition, getDeviceManagementApplicabilityRuleOsVersion, getDeviceSettingStateSummaries, getDeviceStatuses, getDeviceStatusOverview, getDisplayName, getGroupAssignments, getLastModifiedDateTime, getOmaSettingPlainTextValue, getRoleScopeTagIds, getRoleScopeTagIds, getSupportsScopeTags, getUserStatuses, getUserStatusOverview, getVersion, windowsPrivacyAccessControls, withCreatedDateTime, withDescription, withDeviceManagementApplicabilityRuleDeviceMode, withDeviceManagementApplicabilityRuleOsEdition, withDeviceManagementApplicabilityRuleOsVersion, withDisplayName, withLastModifiedDateTime, withRoleScopeTagIds, withSupportsScopeTags, withVersion
-
-
-
-
Field Detail
-
connectAutomatically
protected Boolean connectAutomatically
-
connectWhenNetworkNameIsHidden
protected Boolean connectWhenNetworkNameIsHidden
-
networkName
protected String networkName
-
ssid
protected String ssid
-
wiFiSecurityType
protected AndroidWiFiSecurityType wiFiSecurityType
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
builderAndroidForWorkWiFiConfiguration
public static AndroidForWorkWiFiConfiguration.Builder builderAndroidForWorkWiFiConfiguration()
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classDeviceConfiguration
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceConfiguration
-
getConnectAutomatically
public Optional<Boolean> getConnectAutomatically()
“Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.”- Returns:
- property connectAutomatically
-
withConnectAutomatically
public AndroidForWorkWiFiConfiguration withConnectAutomatically(Boolean connectAutomatically)
Returns an immutable copy ofthiswith just theconnectAutomaticallyfield 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.“Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.”
- Parameters:
connectAutomatically- new value ofconnectAutomaticallyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theconnectAutomaticallyfield changed
-
getConnectWhenNetworkNameIsHidden
public Optional<Boolean> getConnectWhenNetworkNameIsHidden()
“When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.”- Returns:
- property connectWhenNetworkNameIsHidden
-
withConnectWhenNetworkNameIsHidden
public AndroidForWorkWiFiConfiguration withConnectWhenNetworkNameIsHidden(Boolean connectWhenNetworkNameIsHidden)
Returns an immutable copy ofthiswith just theconnectWhenNetworkNameIsHiddenfield 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.“When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.”
- Parameters:
connectWhenNetworkNameIsHidden- new value ofconnectWhenNetworkNameIsHiddenfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theconnectWhenNetworkNameIsHiddenfield changed
-
getNetworkName
public Optional<String> getNetworkName()
“Network Name”- Returns:
- property networkName
-
withNetworkName
public AndroidForWorkWiFiConfiguration withNetworkName(String networkName)
Returns an immutable copy ofthiswith just thenetworkNamefield 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.“Network Name”
- Parameters:
networkName- new value ofnetworkNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenetworkNamefield changed
-
getSsid
public Optional<String> getSsid()
“This is the name of the Wi-Fi network that is broadcast to all devices.”- Returns:
- property ssid
-
withSsid
public AndroidForWorkWiFiConfiguration withSsid(String ssid)
Returns an immutable copy ofthiswith just thessidfield 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.“This is the name of the Wi-Fi network that is broadcast to all devices.”
- Parameters:
ssid- new value ofssidfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thessidfield changed
-
getWiFiSecurityType
public Optional<AndroidWiFiSecurityType> getWiFiSecurityType()
“Indicates whether Wi-Fi endpoint uses an EAP based security type.”- Returns:
- property wiFiSecurityType
-
withWiFiSecurityType
public AndroidForWorkWiFiConfiguration withWiFiSecurityType(AndroidWiFiSecurityType wiFiSecurityType)
Returns an immutable copy ofthiswith just thewiFiSecurityTypefield 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.“Indicates whether Wi-Fi endpoint uses an EAP based security type.”
- Parameters:
wiFiSecurityType- new value ofwiFiSecurityTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thewiFiSecurityTypefield changed
-
withUnmappedField
public AndroidForWorkWiFiConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceConfiguration
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceConfiguration
-
patch
public AndroidForWorkWiFiConfiguration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classDeviceConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public AndroidForWorkWiFiConfiguration put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classDeviceConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classDeviceConfiguration
-
-