Package odata.msgraph.client.beta.entity
Class AndroidVpnConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.AndroidVpnConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AndroidVpnConfiguration 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 VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidVpnConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected VpnAuthenticationMethodauthenticationMethodprotected StringconnectionNameprotected AndroidVpnConnectionTypeconnectionTypeprotected List<KeyValue>customDataprotected StringcustomDataNextLinkprotected List<KeyValuePair>customKeyValueDataprotected StringcustomKeyValueDataNextLinkprotected Stringfingerprintprotected 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 protectedAndroidVpnConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidVpnConfiguration.BuilderbuilderAndroidVpnConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<VpnAuthenticationMethod>getAuthenticationMethod()“Authentication method.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getConnectionName()“Connection name displayed to the user.”Optional<AndroidVpnConnectionType>getConnectionType()“Connection type.”com.github.davidmoten.odata.client.CollectionPage<KeyValue>getCustomData()“Custom data when connection type is set to Citrix.com.github.davidmoten.odata.client.CollectionPage<KeyValue>getCustomData(com.github.davidmoten.odata.client.HttpRequestOptions options)“Custom data when connection type is set to Citrix.com.github.davidmoten.odata.client.CollectionPage<KeyValuePair>getCustomKeyValueData()“Custom data when connection type is set to Citrix.com.github.davidmoten.odata.client.CollectionPage<KeyValuePair>getCustomKeyValueData(com.github.davidmoten.odata.client.HttpRequestOptions options)“Custom data when connection type is set to Citrix.Optional<String>getFingerprint()“Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.”AndroidCertificateProfileBaseRequestgetIdentityCertificate()“Identity certificate for client authentication when authentication method is certificate.”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()AndroidVpnConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidVpnConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidVpnConfigurationwithAuthenticationMethod(VpnAuthenticationMethod authenticationMethod)Returns an immutable copy ofthiswith just theauthenticationMethodfield changed.AndroidVpnConfigurationwithConnectionName(String connectionName)Returns an immutable copy ofthiswith just theconnectionNamefield changed.AndroidVpnConfigurationwithConnectionType(AndroidVpnConnectionType connectionType)Returns an immutable copy ofthiswith just theconnectionTypefield changed.AndroidVpnConfigurationwithCustomData(List<KeyValue> customData)Returns an immutable copy ofthiswith just thecustomDatafield changed.AndroidVpnConfigurationwithCustomKeyValueData(List<KeyValuePair> customKeyValueData)Returns an immutable copy ofthiswith just thecustomKeyValueDatafield changed.AndroidVpnConfigurationwithFingerprint(String fingerprint)Returns an immutable copy ofthiswith just thefingerprintfield changed.AndroidVpnConfigurationwithRealm(String realm)Returns an immutable copy ofthiswith just therealmfield changed.AndroidVpnConfigurationwithRole(String role)Returns an immutable copy ofthiswith just therolefield changed.AndroidVpnConfigurationwithServers(List<VpnServer> servers)Returns an immutable copy ofthiswith just theserversfield changed.AndroidVpnConfigurationwithUnmappedField(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
-
-
-
-
Field Detail
-
authenticationMethod
protected VpnAuthenticationMethod authenticationMethod
-
connectionName
protected String connectionName
-
connectionType
protected AndroidVpnConnectionType connectionType
-
customDataNextLink
protected String customDataNextLink
-
customKeyValueData
protected List<KeyValuePair> customKeyValueData
-
customKeyValueDataNextLink
protected String customKeyValueDataNextLink
-
fingerprint
protected String fingerprint
-
realm
protected String realm
-
role
protected String role
-
serversNextLink
protected String serversNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
builderAndroidVpnConfiguration
public static AndroidVpnConfiguration.Builder builderAndroidVpnConfiguration()
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
-
getAuthenticationMethod
public Optional<VpnAuthenticationMethod> getAuthenticationMethod()
“Authentication method.”- Returns:
- property authenticationMethod
-
withAuthenticationMethod
public AndroidVpnConfiguration 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 AndroidVpnConfiguration 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
-
getConnectionType
public Optional<AndroidVpnConnectionType> getConnectionType()
“Connection type.”- Returns:
- property connectionType
-
withConnectionType
public AndroidVpnConfiguration withConnectionType(AndroidVpnConnectionType connectionType)
Returns an immutable copy ofthiswith just theconnectionTypefield 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 type.”
- Parameters:
connectionType- new value ofconnectionTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theconnectionTypefield changed
-
getCustomData
public com.github.davidmoten.odata.client.CollectionPage<KeyValue> getCustomData()
“Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”- Returns:
- property customData
-
withCustomData
public AndroidVpnConfiguration withCustomData(List<KeyValue> customData)
Returns an immutable copy ofthiswith just thecustomDatafield 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 data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”
- Parameters:
customData- new value ofcustomDatafield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecustomDatafield changed
-
getCustomData
public com.github.davidmoten.odata.client.CollectionPage<KeyValue> getCustomData(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property customData
-
getCustomKeyValueData
public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getCustomKeyValueData()
“Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”- Returns:
- property customKeyValueData
-
withCustomKeyValueData
public AndroidVpnConfiguration withCustomKeyValueData(List<KeyValuePair> customKeyValueData)
Returns an immutable copy ofthiswith just thecustomKeyValueDatafield 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 data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”
- Parameters:
customKeyValueData- new value ofcustomKeyValueDatafield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecustomKeyValueDatafield changed
-
getCustomKeyValueData
public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getCustomKeyValueData(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property customKeyValueData
-
getFingerprint
public Optional<String> getFingerprint()
“Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.”- Returns:
- property fingerprint
-
withFingerprint
public AndroidVpnConfiguration withFingerprint(String fingerprint)
Returns an immutable copy ofthiswith just thefingerprintfield 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.“Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.”
- Parameters:
fingerprint- new value offingerprintfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefingerprintfield changed
-
getRealm
public Optional<String> getRealm()
“Realm when connection type is set to Pulse Secure.”- Returns:
- property realm
-
withRealm
public AndroidVpnConfiguration 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 AndroidVpnConfiguration 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 AndroidVpnConfiguration 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 AndroidVpnConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceConfiguration
-
getIdentityCertificate
public AndroidCertificateProfileBaseRequest getIdentityCertificate()
“Identity certificate for client authentication when authentication method is certificate.”- Returns:
- navigational property identityCertificate
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceConfiguration
-
patch
public AndroidVpnConfiguration 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 AndroidVpnConfiguration 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
-
-