Package odata.msgraph.client.beta.entity
Class AndroidDeviceOwnerWiFiConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.AndroidDeviceOwnerWiFiConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
AndroidDeviceOwnerEnterpriseWiFiConfiguration
public class AndroidDeviceOwnerWiFiConfiguration extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“By providing the configurations in this profile you can instruct the Android 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 classAndroidDeviceOwnerWiFiConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanconnectAutomaticallyprotected BooleanconnectWhenNetworkNameIsHiddenprotected StringnetworkNameprotected StringpreSharedKeyprotected BooleanpreSharedKeyIsSetprotected Stringssidprotected AndroidDeviceOwnerWiFiSecurityTypewiFiSecurityType-
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 protectedAndroidDeviceOwnerWiFiConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidDeviceOwnerWiFiConfiguration.BuilderbuilderAndroidDeviceOwnerWiFiConfiguration()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>getPreSharedKey()“This is the pre-shared key for WPA Personal Wi-Fi network.”Optional<Boolean>getPreSharedKeyIsSet()“This is the pre-shared key for WPA Personal Wi-Fi network.”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<AndroidDeviceOwnerWiFiSecurityType>getWiFiSecurityType()“Indicates whether Wi-Fi endpoint uses an EAP based security type.”StringodataTypeName()AndroidDeviceOwnerWiFiConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidDeviceOwnerWiFiConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidDeviceOwnerWiFiConfigurationwithConnectAutomatically(Boolean connectAutomatically)Returns an immutable copy ofthiswith just theconnectAutomaticallyfield changed.AndroidDeviceOwnerWiFiConfigurationwithConnectWhenNetworkNameIsHidden(Boolean connectWhenNetworkNameIsHidden)Returns an immutable copy ofthiswith just theconnectWhenNetworkNameIsHiddenfield changed.AndroidDeviceOwnerWiFiConfigurationwithNetworkName(String networkName)Returns an immutable copy ofthiswith just thenetworkNamefield changed.AndroidDeviceOwnerWiFiConfigurationwithPreSharedKey(String preSharedKey)Returns an immutable copy ofthiswith just thepreSharedKeyfield changed.AndroidDeviceOwnerWiFiConfigurationwithPreSharedKeyIsSet(Boolean preSharedKeyIsSet)Returns an immutable copy ofthiswith just thepreSharedKeyIsSetfield changed.AndroidDeviceOwnerWiFiConfigurationwithSsid(String ssid)Returns an immutable copy ofthiswith just thessidfield changed.AndroidDeviceOwnerWiFiConfigurationwithUnmappedField(String name, String value)AndroidDeviceOwnerWiFiConfigurationwithWiFiSecurityType(AndroidDeviceOwnerWiFiSecurityType 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
-
preSharedKey
protected String preSharedKey
-
preSharedKeyIsSet
protected Boolean preSharedKeyIsSet
-
ssid
protected String ssid
-
wiFiSecurityType
protected AndroidDeviceOwnerWiFiSecurityType wiFiSecurityType
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
builderAndroidDeviceOwnerWiFiConfiguration
public static AndroidDeviceOwnerWiFiConfiguration.Builder builderAndroidDeviceOwnerWiFiConfiguration()
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 AndroidDeviceOwnerWiFiConfiguration 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 AndroidDeviceOwnerWiFiConfiguration 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 AndroidDeviceOwnerWiFiConfiguration 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
-
getPreSharedKey
public Optional<String> getPreSharedKey()
“This is the pre-shared key for WPA Personal Wi-Fi network.”- Returns:
- property preSharedKey
-
withPreSharedKey
public AndroidDeviceOwnerWiFiConfiguration withPreSharedKey(String preSharedKey)
Returns an immutable copy ofthiswith just thepreSharedKeyfield 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 pre-shared key for WPA Personal Wi-Fi network.”
- Parameters:
preSharedKey- new value ofpreSharedKeyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepreSharedKeyfield changed
-
getPreSharedKeyIsSet
public Optional<Boolean> getPreSharedKeyIsSet()
“This is the pre-shared key for WPA Personal Wi-Fi network.”- Returns:
- property preSharedKeyIsSet
-
withPreSharedKeyIsSet
public AndroidDeviceOwnerWiFiConfiguration withPreSharedKeyIsSet(Boolean preSharedKeyIsSet)
Returns an immutable copy ofthiswith just thepreSharedKeyIsSetfield 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 pre-shared key for WPA Personal Wi-Fi network.”
- Parameters:
preSharedKeyIsSet- new value ofpreSharedKeyIsSetfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepreSharedKeyIsSetfield 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 AndroidDeviceOwnerWiFiConfiguration 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<AndroidDeviceOwnerWiFiSecurityType> getWiFiSecurityType()
“Indicates whether Wi-Fi endpoint uses an EAP based security type.”- Returns:
- property wiFiSecurityType
-
withWiFiSecurityType
public AndroidDeviceOwnerWiFiConfiguration withWiFiSecurityType(AndroidDeviceOwnerWiFiSecurityType 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 AndroidDeviceOwnerWiFiConfiguration 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 AndroidDeviceOwnerWiFiConfiguration 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 AndroidDeviceOwnerWiFiConfiguration 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
-
-