Package odata.msgraph.client.beta.entity
Class WindowsVpnConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.WindowsVpnConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
Windows10VpnConfiguration,Windows81VpnConfiguration
public class WindowsVpnConfiguration extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Windows VPN configuration profile.”
-
-
Field Summary
Fields Modifier and Type Field Description protected StringconnectionNameprotected byte[]customXmlprotected List<VpnServer>serversprotected StringserversNextLink-
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 protectedWindowsVpnConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getConnectionName()“Connection name displayed to the user.”Optional<byte[]>getCustomXml()“Custom XML commands that configures the VPN connection.com.github.davidmoten.odata.client.CollectionPage<VpnServer>getServers()“List of VPN Servers on the network.com.github.davidmoten.odata.client.CollectionPage<VpnServer>getServers(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of VPN Servers on the network.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()WindowsVpnConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsVpnConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()WindowsVpnConfigurationwithConnectionName(String connectionName)Returns an immutable copy ofthiswith just theconnectionNamefield changed.WindowsVpnConfigurationwithCustomXml(byte[] customXml)Returns an immutable copy ofthiswith just thecustomXmlfield changed.WindowsVpnConfigurationwithServers(List<VpnServer> servers)Returns an immutable copy ofthiswith just theserversfield changed.WindowsVpnConfigurationwithUnmappedField(String name, String value)-
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
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
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
-
getConnectionName
public Optional<String> getConnectionName()
“Connection name displayed to the user.”- Returns:
- property connectionName
-
withConnectionName
public WindowsVpnConfiguration withConnectionName(String connectionName)
Returns an immutable copy ofthiswith just theconnectionNamefield 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.“Connection name displayed to the user.”
- Parameters:
connectionName- new value ofconnectionNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theconnectionNamefield changed
-
getCustomXml
public Optional<byte[]> getCustomXml()
“Custom XML commands that configures the VPN connection. (UTF8 encoded byte array )”- Returns:
- property customXml
-
withCustomXml
public WindowsVpnConfiguration withCustomXml(byte[] customXml)
Returns an immutable copy ofthiswith just thecustomXmlfield 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.“Custom XML commands that configures the VPN connection. (UTF8 encoded byte array )”
- Parameters:
customXml- new value ofcustomXmlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecustomXmlfield changed
-
getServers
public com.github.davidmoten.odata.client.CollectionPage<VpnServer> getServers()
“List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.”- Returns:
- property servers
-
withServers
public WindowsVpnConfiguration withServers(List<VpnServer> servers)
Returns an immutable copy ofthiswith just theserversfield 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.“List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.”
- Parameters:
servers- new value ofserversfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theserversfield changed
-
getServers
public com.github.davidmoten.odata.client.CollectionPage<VpnServer> getServers(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property servers
-
withUnmappedField
public WindowsVpnConfiguration 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 WindowsVpnConfiguration 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 WindowsVpnConfiguration 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
-
-