Class MacOSWiFiConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.MacOSWiFiConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
MacOSEnterpriseWiFiConfiguration
public class MacOSWiFiConfiguration extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“By providing the configurations in this profile you can instruct the macOS 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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacOSWiFiConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanconnectAutomaticallyprotected BooleanconnectWhenNetworkNameIsHiddenprotected StringnetworkNameprotected StringpreSharedKeyprotected StringproxyAutomaticConfigurationUrlprotected StringproxyManualAddressprotected IntegerproxyManualPortprotected WiFiProxySettingproxySettingsprotected Stringssidprotected WiFiSecurityTypewiFiSecurityType-
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 protectedMacOSWiFiConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacOSWiFiConfiguration.BuilderbuilderMacOSWiFiConfiguration()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()“Connect when the network is not broadcasting its name (SSID).Optional<String>getNetworkName()“Network Name”Optional<String>getPreSharedKey()“This is the pre-shared key for WPA Personal Wi-Fi network.”Optional<String>getProxyAutomaticConfigurationUrl()“URL of the proxy server automatic configuration script when automatic configuration is selected.Optional<String>getProxyManualAddress()“IP Address or DNS hostname of the proxy server when manual configuration is selected.”Optional<Integer>getProxyManualPort()“Port of the proxy server when manual configuration is selected.”Optional<WiFiProxySetting>getProxySettings()“Proxy Type for this Wi-Fi connection”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<WiFiSecurityType>getWiFiSecurityType()“Indicates whether Wi-Fi endpoint uses an EAP based security type.”StringodataTypeName()MacOSWiFiConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MacOSWiFiConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MacOSWiFiConfigurationwithConnectAutomatically(Boolean connectAutomatically)Returns an immutable copy ofthiswith just theconnectAutomaticallyfield changed.MacOSWiFiConfigurationwithConnectWhenNetworkNameIsHidden(Boolean connectWhenNetworkNameIsHidden)Returns an immutable copy ofthiswith just theconnectWhenNetworkNameIsHiddenfield changed.MacOSWiFiConfigurationwithNetworkName(String networkName)Returns an immutable copy ofthiswith just thenetworkNamefield changed.MacOSWiFiConfigurationwithPreSharedKey(String preSharedKey)Returns an immutable copy ofthiswith just thepreSharedKeyfield changed.MacOSWiFiConfigurationwithProxyAutomaticConfigurationUrl(String proxyAutomaticConfigurationUrl)Returns an immutable copy ofthiswith just theproxyAutomaticConfigurationUrlfield changed.MacOSWiFiConfigurationwithProxyManualAddress(String proxyManualAddress)Returns an immutable copy ofthiswith just theproxyManualAddressfield changed.MacOSWiFiConfigurationwithProxyManualPort(Integer proxyManualPort)Returns an immutable copy ofthiswith just theproxyManualPortfield changed.MacOSWiFiConfigurationwithProxySettings(WiFiProxySetting proxySettings)Returns an immutable copy ofthiswith just theproxySettingsfield changed.MacOSWiFiConfigurationwithSsid(String ssid)Returns an immutable copy ofthiswith just thessidfield changed.MacOSWiFiConfigurationwithUnmappedField(String name, String value)MacOSWiFiConfigurationwithWiFiSecurityType(WiFiSecurityType 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
-
proxyAutomaticConfigurationUrl
protected String proxyAutomaticConfigurationUrl
-
proxyManualAddress
protected String proxyManualAddress
-
proxyManualPort
protected Integer proxyManualPort
-
proxySettings
protected WiFiProxySetting proxySettings
-
ssid
protected String ssid
-
wiFiSecurityType
protected WiFiSecurityType wiFiSecurityType
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
builderMacOSWiFiConfiguration
public static MacOSWiFiConfiguration.Builder builderMacOSWiFiConfiguration()
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 MacOSWiFiConfiguration 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()
“Connect when the network is not broadcasting its name (SSID). 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 MacOSWiFiConfiguration 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.“Connect when the network is not broadcasting its name (SSID). 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 MacOSWiFiConfiguration 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 MacOSWiFiConfiguration 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
-
getProxyAutomaticConfigurationUrl
public Optional<String> getProxyAutomaticConfigurationUrl()
“URL of the proxy server automatic configuration script when automatic configuration is selected. This URL is typically the location of PAC (Proxy Auto Configuration) file.”- Returns:
- property proxyAutomaticConfigurationUrl
-
withProxyAutomaticConfigurationUrl
public MacOSWiFiConfiguration withProxyAutomaticConfigurationUrl(String proxyAutomaticConfigurationUrl)
Returns an immutable copy ofthiswith just theproxyAutomaticConfigurationUrlfield 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.“URL of the proxy server automatic configuration script when automatic configuration is selected. This URL is typically the location of PAC (Proxy Auto Configuration) file.”
- Parameters:
proxyAutomaticConfigurationUrl- new value ofproxyAutomaticConfigurationUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproxyAutomaticConfigurationUrlfield changed
-
getProxyManualAddress
public Optional<String> getProxyManualAddress()
“IP Address or DNS hostname of the proxy server when manual configuration is selected.”- Returns:
- property proxyManualAddress
-
withProxyManualAddress
public MacOSWiFiConfiguration withProxyManualAddress(String proxyManualAddress)
Returns an immutable copy ofthiswith just theproxyManualAddressfield 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.“IP Address or DNS hostname of the proxy server when manual configuration is selected.”
- Parameters:
proxyManualAddress- new value ofproxyManualAddressfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproxyManualAddressfield changed
-
getProxyManualPort
public Optional<Integer> getProxyManualPort()
“Port of the proxy server when manual configuration is selected.”- Returns:
- property proxyManualPort
-
withProxyManualPort
public MacOSWiFiConfiguration withProxyManualPort(Integer proxyManualPort)
Returns an immutable copy ofthiswith just theproxyManualPortfield 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.“Port of the proxy server when manual configuration is selected.”
- Parameters:
proxyManualPort- new value ofproxyManualPortfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproxyManualPortfield changed
-
getProxySettings
public Optional<WiFiProxySetting> getProxySettings()
“Proxy Type for this Wi-Fi connection”- Returns:
- property proxySettings
-
withProxySettings
public MacOSWiFiConfiguration withProxySettings(WiFiProxySetting proxySettings)
Returns an immutable copy ofthiswith just theproxySettingsfield 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.“Proxy Type for this Wi-Fi connection”
- Parameters:
proxySettings- new value ofproxySettingsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproxySettingsfield 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 MacOSWiFiConfiguration 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<WiFiSecurityType> getWiFiSecurityType()
“Indicates whether Wi-Fi endpoint uses an EAP based security type.”- Returns:
- property wiFiSecurityType
-
withWiFiSecurityType
public MacOSWiFiConfiguration withWiFiSecurityType(WiFiSecurityType 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 MacOSWiFiConfiguration 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 MacOSWiFiConfiguration 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 MacOSWiFiConfiguration 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
-
-