Package odata.msgraph.client.beta.entity
Class VpnConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.VpnConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
AndroidDeviceOwnerVpnConfiguration
public class VpnConfiguration extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Base VPN Configuration profile.”
-
-
Field Summary
Fields Modifier and Type Field Description protected VpnAuthenticationMethodauthenticationMethodprotected StringconnectionNameprotected Stringrealmprotected Stringroleprotected 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 protectedVpnConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<VpnAuthenticationMethod>getAuthenticationMethod()“Authentication method.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getConnectionName()“Connection name displayed to the user.”Optional<String>getRealm()“Realm when connection type is set to Pulse Secure.”Optional<String>getRole()“Role when connection type is set to Pulse Secure.”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()VpnConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)VpnConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()VpnConfigurationwithAuthenticationMethod(VpnAuthenticationMethod authenticationMethod)Returns an immutable copy ofthiswith just theauthenticationMethodfield changed.VpnConfigurationwithConnectionName(String connectionName)Returns an immutable copy ofthiswith just theconnectionNamefield changed.VpnConfigurationwithRealm(String realm)Returns an immutable copy ofthiswith just therealmfield changed.VpnConfigurationwithRole(String role)Returns an immutable copy ofthiswith just therolefield changed.VpnConfigurationwithServers(List<VpnServer> servers)Returns an immutable copy ofthiswith just theserversfield changed.VpnConfigurationwithUnmappedField(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
-
getAuthenticationMethod
public Optional<VpnAuthenticationMethod> getAuthenticationMethod()
“Authentication method.”- Returns:
- property authenticationMethod
-
withAuthenticationMethod
public VpnConfiguration withAuthenticationMethod(VpnAuthenticationMethod authenticationMethod)
Returns an immutable copy ofthiswith just theauthenticationMethodfield 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.“Authentication method.”
- Parameters:
authenticationMethod- new value ofauthenticationMethodfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theauthenticationMethodfield changed
-
getConnectionName
public Optional<String> getConnectionName()
“Connection name displayed to the user.”- Returns:
- property connectionName
-
withConnectionName
public VpnConfiguration 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
-
getRealm
public Optional<String> getRealm()
“Realm when connection type is set to Pulse Secure.”- Returns:
- property realm
-
withRealm
public VpnConfiguration withRealm(String realm)
Returns an immutable copy ofthiswith just therealmfield 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.“Realm when connection type is set to Pulse Secure.”
- Parameters:
realm- new value ofrealmfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therealmfield changed
-
getRole
public Optional<String> getRole()
“Role when connection type is set to Pulse Secure.”- Returns:
- property role
-
withRole
public VpnConfiguration withRole(String role)
Returns an immutable copy ofthiswith just therolefield 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.“Role when connection type is set to Pulse Secure.”
- Parameters:
role- new value ofrolefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therolefield 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 VpnConfiguration 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 VpnConfiguration 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 VpnConfiguration 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 VpnConfiguration 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
-
-